microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
101 lines (99 loc) • 4.5 kB
JavaScript
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResultReason = void 0;
/**
* Defines the possible reasons a recognition result might be generated.
* @class ResultReason
*/
var ResultReason;
(function (ResultReason) {
/**
* Indicates speech could not be recognized. More details
* can be found in the NoMatchDetails object.
* @member ResultReason.NoMatch
*/
ResultReason[ResultReason["NoMatch"] = 0] = "NoMatch";
/**
* Indicates that the recognition was canceled. More details
* can be found using the CancellationDetails object.
* @member ResultReason.Canceled
*/
ResultReason[ResultReason["Canceled"] = 1] = "Canceled";
/**
* Indicates the speech result contains hypothesis text.
* @member ResultReason.RecognizedSpeech
*/
ResultReason[ResultReason["RecognizingSpeech"] = 2] = "RecognizingSpeech";
/**
* Indicates the speech result contains final text that has been recognized.
* Speech Recognition is now complete for this phrase.
* @member ResultReason.RecognizedSpeech
*/
ResultReason[ResultReason["RecognizedSpeech"] = 3] = "RecognizedSpeech";
/**
* Indicates the speech result contains a finalized acceptance of a provided keyword.
* Speech recognition will continue unless otherwise configured.
* @member ResultReason.RecognizedKeyword
*/
ResultReason[ResultReason["RecognizedKeyword"] = 4] = "RecognizedKeyword";
/**
* Indicates the translation result contains hypothesis text and its translation(s).
* @member ResultReason.TranslatingSpeech
*/
ResultReason[ResultReason["TranslatingSpeech"] = 5] = "TranslatingSpeech";
/**
* Indicates the translation result contains final text and corresponding translation(s).
* Speech Recognition and Translation are now complete for this phrase.
* @member ResultReason.TranslatedSpeech
*/
ResultReason[ResultReason["TranslatedSpeech"] = 6] = "TranslatedSpeech";
/**
* Indicates the synthesized audio result contains a non-zero amount of audio data
* @member ResultReason.SynthesizingAudio
*/
ResultReason[ResultReason["SynthesizingAudio"] = 7] = "SynthesizingAudio";
/**
* Indicates the synthesized audio is now complete for this phrase.
* @member ResultReason.SynthesizingAudioCompleted
*/
ResultReason[ResultReason["SynthesizingAudioCompleted"] = 8] = "SynthesizingAudioCompleted";
/**
* Indicates the speech synthesis is now started
* @member ResultReason.SynthesizingAudioStarted
*/
ResultReason[ResultReason["SynthesizingAudioStarted"] = 9] = "SynthesizingAudioStarted";
/**
* Indicates synthesis voices list has been successfully retrieved.
* @member ResultReason.VoicesListRetrieved
*/
ResultReason[ResultReason["VoicesListRetrieved"] = 10] = "VoicesListRetrieved";
/**
* Indicates the transcription result contains hypothesis text and its translation(s) for
* other participants in the conversation.
* @member ResultReason.TranslatingParticipantSpeech
*/
ResultReason[ResultReason["TranslatingParticipantSpeech"] = 11] = "TranslatingParticipantSpeech";
/**
* Indicates the transcription result contains final text and corresponding translation(s)
* for other participants in the conversation. Speech Recognition and Translation are now
* complete for this phrase.
* @member ResultReason.TranslatedParticipantSpeech
*/
ResultReason[ResultReason["TranslatedParticipantSpeech"] = 12] = "TranslatedParticipantSpeech";
/**
* <summary>
* Indicates the transcription result contains the instant message and corresponding
* translation(s).
* @member ResultReason.TranslatedInstantMessage
*/
ResultReason[ResultReason["TranslatedInstantMessage"] = 13] = "TranslatedInstantMessage";
/**
* Indicates the transcription result contains the instant message for other participants
* in the conversation and corresponding translation(s).
* @member ResultReason.TranslatedParticipantInstantMessage
*/
ResultReason[ResultReason["TranslatedParticipantInstantMessage"] = 14] = "TranslatedParticipantInstantMessage";
})(ResultReason = exports.ResultReason || (exports.ResultReason = {}));
//# sourceMappingURL=ResultReason.js.map