microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
134 lines (133 loc) • 4.72 kB
TypeScript
/**
* Defines the possible reasons a recognition result might be generated.
* @class ResultReason
*/
export declare enum ResultReason {
/**
* Indicates speech could not be recognized. More details
* can be found in the NoMatchDetails object.
* @member ResultReason.NoMatch
*/
NoMatch = 0,
/**
* Indicates that the recognition was canceled. More details
* can be found using the CancellationDetails object.
* @member ResultReason.Canceled
*/
Canceled = 1,
/**
* Indicates the speech result contains hypothesis text.
* @member ResultReason.RecognizedSpeech
*/
RecognizingSpeech = 2,
/**
* Indicates the speech result contains final text that has been recognized.
* Speech Recognition is now complete for this phrase.
* @member ResultReason.RecognizedSpeech
*/
RecognizedSpeech = 3,
/**
* Indicates the speech result contains a finalized acceptance of a provided keyword.
* Speech recognition will continue unless otherwise configured.
* @member ResultReason.RecognizedKeyword
*/
RecognizedKeyword = 4,
/**
* Indicates the intent result contains hypothesis text and intent.
* @member ResultReason.RecognizingIntent
*/
RecognizingIntent = 5,
/**
* Indicates the intent result contains final text and intent.
* Speech Recognition and Intent determination are now complete for this phrase.
* @member ResultReason.RecognizedIntent
*/
RecognizedIntent = 6,
/**
* Indicates the translation result contains hypothesis text and its translation(s).
* @member ResultReason.TranslatingSpeech
*/
TranslatingSpeech = 7,
/**
* Indicates the translation result contains final text and corresponding translation(s).
* Speech Recognition and Translation are now complete for this phrase.
* @member ResultReason.TranslatedSpeech
*/
TranslatedSpeech = 8,
/**
* Indicates the synthesized audio result contains a non-zero amount of audio data
* @member ResultReason.SynthesizingAudio
*/
SynthesizingAudio = 9,
/**
* Indicates the synthesized audio is now complete for this phrase.
* @member ResultReason.SynthesizingAudioCompleted
*/
SynthesizingAudioCompleted = 10,
/**
* Indicates the speech synthesis is now started
* @member ResultReason.SynthesizingAudioStarted
*/
SynthesizingAudioStarted = 11,
/**
* Indicates the voice profile is being enrolled and customers need to send more audio to create a voice profile.
* @member ResultReason.EnrollingVoiceProfile
*/
EnrollingVoiceProfile = 12,
/**
* Indicates the voice profile has been enrolled.
* @member ResultReason.EnrolledVoiceProfile
*/
EnrolledVoiceProfile = 13,
/**
* Indicates successful identification of some speakers.
* @member ResultReason.RecognizedSpeakers
*/
RecognizedSpeakers = 14,
/**
* Indicates successfully verified one speaker.
* @member ResultReason.RecognizedSpeaker
*/
RecognizedSpeaker = 15,
/**
* Indicates a voice profile has been reset successfully.
* @member ResultReason.ResetVoiceProfile
*/
ResetVoiceProfile = 16,
/**
* Indicates a voice profile has been deleted successfully.
* @member ResultReason.DeletedVoiceProfile
*/
DeletedVoiceProfile = 17,
/**
* Indicates synthesis voices list has been successfully retrieved.
* @member ResultReason.VoicesListRetrieved
*/
VoicesListRetrieved = 18,
/**
* Indicates the transcription result contains hypothesis text and its translation(s) for
* other participants in the conversation.
* @member ResultReason.TranslatingParticipantSpeech
*/
TranslatingParticipantSpeech = 19,
/**
* 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
*/
TranslatedParticipantSpeech = 20,
/**
* <summary>
* Indicates the transcription result contains the instant message and corresponding
* translation(s).
* @member ResultReason.TranslatedInstantMessage
*/
TranslatedInstantMessage = 21,
/**
* Indicates the transcription result contains the instant message for other participants
* in the conversation and corresponding translation(s).
* @member ResultReason.TranslatedParticipantInstantMessage
*/
TranslatedParticipantInstantMessage = 22
}