Enum ResultReason
- java.lang.Object
-
- java.lang.Enum<ResultReason>
-
- com.microsoft.cognitiveservices.speech.ResultReason
-
- All Implemented Interfaces:
Serializable,Comparable<ResultReason>
public enum ResultReason extends Enum<ResultReason>
Defines the possible reasons a recognition result might be generated. Changed in version 1.7.0.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CanceledIndicates that the recognition was canceled.DeletedVoiceProfileIndicates a voice profile has been deleted successfully.EnrolledVoiceProfileThe voice profile has been enrolled.EnrollingVoiceProfileIndicates the voice profile is being enrolling and customers need to send more audio to create a voice profile.NoMatchIndicates speech could not be recognized.RecognizedIntentIndicates the intent result contains final text and intent.RecognizedKeywordIndicates that keyword recognition completed recognizing the given keyword.RecognizedSpeakerIndicates successfully verified one speaker.RecognizedSpeakersIndicates successful identification of some speakers.RecognizedSpeechIndicates the speech result contains final text that has been recognized.RecognizingIntentIndicates the intent result contains hypothesis text and intent.RecognizingKeywordIndicates the speech result contains (unverified) keyword text.RecognizingSpeechIndicates the speech result contains hypothesis text.ResetVoiceProfileIndicates a voice profile has been reset successfully.SynthesizingAudioIndicates the synthesized audio result contains a non-zero amount of audio dataSynthesizingAudioCompletedIndicates the synthesized audio is now complete for this phrase.SynthesizingAudioStartedIndicates the speech synthesis is now started Added in version 1.7.0TranslatedInstantMessageIndicates the transcription result contains the instant message and corresponding translation(s).TranslatedParticipantInstantMessageIndicates the transcription result contains the instant message for other participants in the conversation and corresponding translation(s).TranslatedParticipantSpeechIndicates the transcription result contains final text and corresponding translation(s) for other participants in the conversation.TranslatedSpeechIndicates the translation result contains final text and corresponding translation(s).TranslatingParticipantSpeechIndicates the transcription result contains hypothesis text and its translation(s) for other participants in the conversation.TranslatingSpeechIndicates the translation result contains hypothesis text and its translation(s).VoicesListRetrievedIndicates the voices list has been retrieved successfully.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static ResultReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NoMatch
public static final ResultReason NoMatch
Indicates speech could not be recognized. More details can be found in the NoMatchDetails object.
-
Canceled
public static final ResultReason Canceled
Indicates that the recognition was canceled. More details can be found using the CancellationDetails object.
-
RecognizingSpeech
public static final ResultReason RecognizingSpeech
Indicates the speech result contains hypothesis text.
-
RecognizedSpeech
public static final ResultReason RecognizedSpeech
Indicates the speech result contains final text that has been recognized. Speech Recognition is now complete for this phrase.
-
RecognizingIntent
public static final ResultReason RecognizingIntent
Indicates the intent result contains hypothesis text and intent.
-
RecognizedIntent
public static final ResultReason RecognizedIntent
Indicates the intent result contains final text and intent. Speech Recognition and Intent determination are now complete for this phrase.
-
TranslatingSpeech
public static final ResultReason TranslatingSpeech
Indicates the translation result contains hypothesis text and its translation(s).
-
TranslatedSpeech
public static final ResultReason TranslatedSpeech
Indicates the translation result contains final text and corresponding translation(s). Speech Recognition and Translation are now complete for this phrase.
-
SynthesizingAudio
public static final ResultReason SynthesizingAudio
Indicates the synthesized audio result contains a non-zero amount of audio data
-
SynthesizingAudioCompleted
public static final ResultReason SynthesizingAudioCompleted
Indicates the synthesized audio is now complete for this phrase.
-
RecognizingKeyword
public static final ResultReason RecognizingKeyword
Indicates the speech result contains (unverified) keyword text. Added in version 1.3.0
-
RecognizedKeyword
public static final ResultReason RecognizedKeyword
Indicates that keyword recognition completed recognizing the given keyword. Added in version 1.3.0
-
SynthesizingAudioStarted
public static final ResultReason SynthesizingAudioStarted
Indicates the speech synthesis is now started Added in version 1.7.0
-
TranslatingParticipantSpeech
public static final ResultReason TranslatingParticipantSpeech
Indicates the transcription result contains hypothesis text and its translation(s) for other participants in the conversation. Added in version 1.12.0
-
TranslatedParticipantSpeech
public static final ResultReason TranslatedParticipantSpeech
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. Added in version 1.12.0
-
TranslatedInstantMessage
public static final ResultReason TranslatedInstantMessage
Indicates the transcription result contains the instant message and corresponding translation(s). Added in version 1.12.0
-
TranslatedParticipantInstantMessage
public static final ResultReason TranslatedParticipantInstantMessage
Indicates the transcription result contains the instant message for other participants in the conversation and corresponding translation(s). Added in version 1.12.0
-
EnrollingVoiceProfile
public static final ResultReason EnrollingVoiceProfile
Indicates the voice profile is being enrolling and customers need to send more audio to create a voice profile. Added in version 1.16.0
-
EnrolledVoiceProfile
public static final ResultReason EnrolledVoiceProfile
The voice profile has been enrolled. Added in version 1.16.0
-
RecognizedSpeakers
public static final ResultReason RecognizedSpeakers
Indicates successful identification of some speakers. Added in version 1.16.0
-
RecognizedSpeaker
public static final ResultReason RecognizedSpeaker
Indicates successfully verified one speaker. Added in version 1.16.0
-
ResetVoiceProfile
public static final ResultReason ResetVoiceProfile
Indicates a voice profile has been reset successfully. Added in version 1.16.0
-
DeletedVoiceProfile
public static final ResultReason DeletedVoiceProfile
Indicates a voice profile has been deleted successfully. Added in version 1.16.0
-
VoicesListRetrieved
public static final ResultReason VoicesListRetrieved
Indicates the voices list has been retrieved successfully. Added in version 1.16.0
-
-
Method Detail
-
values
public static ResultReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResultReason c : ResultReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-