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.DeletedVoiceProfileThis result reason is deprecated and not used anymore.EnrolledVoiceProfileThis result reason is deprecated and not used anymore.EnrollingVoiceProfileThis result reason is deprecated and not used anymore.NoMatchIndicates speech could not be recognized.RecognizedIntentThis result reason is deprecated and not used anymore.RecognizedKeywordIndicates that keyword recognition completed recognizing the given keyword.RecognizedSpeakerThis result reason is deprecated and not used anymore.RecognizedSpeakersThis result reason is deprecated and not used anymore.RecognizedSpeechIndicates the speech result contains final text that has been recognized.RecognizingIntentThis result reason is deprecated and not used anymore.RecognizingKeywordIndicates the speech result contains (unverified) keyword text.RecognizingSpeechIndicates the speech result contains hypothesis text.ResetVoiceProfileThis result reason is deprecated and not used anymore.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
This result reason is deprecated and not used anymore.
-
RecognizedIntent
public static final ResultReason RecognizedIntent
This result reason is deprecated and not used anymore.
-
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
This result reason is deprecated and not used anymore.
-
EnrolledVoiceProfile
public static final ResultReason EnrolledVoiceProfile
This result reason is deprecated and not used anymore.
-
RecognizedSpeakers
public static final ResultReason RecognizedSpeakers
This result reason is deprecated and not used anymore.
-
RecognizedSpeaker
public static final ResultReason RecognizedSpeaker
This result reason is deprecated and not used anymore.
-
ResetVoiceProfile
public static final ResultReason ResetVoiceProfile
This result reason is deprecated and not used anymore.
-
DeletedVoiceProfile
public static final ResultReason DeletedVoiceProfile
This result reason is deprecated and not used anymore.
-
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
-
-