Enum NoMatchReason
- java.lang.Object
-
- java.lang.Enum<NoMatchReason>
-
- com.microsoft.cognitiveservices.speech.NoMatchReason
-
- All Implemented Interfaces:
Serializable,Comparable<NoMatchReason>
public enum NoMatchReason extends Enum<NoMatchReason>
Defines the possible reasons a recognition result might not be recognized.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EndSilenceTimeoutIndicates that the audio stream contained only silence after the last recognized phrase.InitialBabbleTimeoutIndicates that the start of the audio stream contained only noise, and the service timed out waiting for speech.InitialSilenceTimeoutIndicates that the start of the audio stream contained only silence, and the service timed out waiting for speech.KeywordNotRecognizedIndicates that the spotted keyword has been rejected by the keyword verification service.NotRecognizedIndicates that speech was detected, but not recognized.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the internal value property idstatic NoMatchReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static NoMatchReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NotRecognized
public static final NoMatchReason NotRecognized
Indicates that speech was detected, but not recognized.
-
InitialSilenceTimeout
public static final NoMatchReason InitialSilenceTimeout
Indicates that the start of the audio stream contained only silence, and the service timed out waiting for speech.
-
InitialBabbleTimeout
public static final NoMatchReason InitialBabbleTimeout
Indicates that the start of the audio stream contained only noise, and the service timed out waiting for speech.
-
KeywordNotRecognized
public static final NoMatchReason KeywordNotRecognized
Indicates that the spotted keyword has been rejected by the keyword verification service. Added in version 1.5.0.
-
EndSilenceTimeout
public static final NoMatchReason EndSilenceTimeout
Indicates that the audio stream contained only silence after the last recognized phrase.
-
-
Method Detail
-
values
public static NoMatchReason[] 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 (NoMatchReason c : NoMatchReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoMatchReason 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
-
getValue
public int getValue()
Returns the internal value property id- Returns:
- the speech property id
-
-