UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
93 lines (92 loc) 3.35 kB
/** * 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 translation result contains hypothesis text and its translation(s). * @member ResultReason.TranslatingSpeech */ TranslatingSpeech = 5, /** * 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 = 6, /** * Indicates the synthesized audio result contains a non-zero amount of audio data * @member ResultReason.SynthesizingAudio */ SynthesizingAudio = 7, /** * Indicates the synthesized audio is now complete for this phrase. * @member ResultReason.SynthesizingAudioCompleted */ SynthesizingAudioCompleted = 8, /** * Indicates the speech synthesis is now started * @member ResultReason.SynthesizingAudioStarted */ SynthesizingAudioStarted = 9, /** * Indicates synthesis voices list has been successfully retrieved. * @member ResultReason.VoicesListRetrieved */ VoicesListRetrieved = 10, /** * Indicates the transcription result contains hypothesis text and its translation(s) for * other participants in the conversation. * @member ResultReason.TranslatingParticipantSpeech */ TranslatingParticipantSpeech = 11, /** * 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 = 12, /** * <summary> * Indicates the transcription result contains the instant message and corresponding * translation(s). * @member ResultReason.TranslatedInstantMessage */ TranslatedInstantMessage = 13, /** * Indicates the transcription result contains the instant message for other participants * in the conversation and corresponding translation(s). * @member ResultReason.TranslatedParticipantInstantMessage */ TranslatedParticipantInstantMessage = 14 }