Package com.keenresearch.keenasr
Enum Class KASRRecognizer.KASRRecognizerState
java.lang.Object
java.lang.Enum<KASRRecognizer.KASRRecognizerState>
com.keenresearch.keenasr.KASRRecognizer.KASRRecognizerState
- All Implemented Interfaces:
Serializable
,Comparable<KASRRecognizer.KASRRecognizerState>
,Constable
- Enclosing class:
- KASRRecognizer
public static enum KASRRecognizer.KASRRecognizerState
extends Enum<KASRRecognizer.KASRRecognizerState>
These constants indicate different states recognizer can assume.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRecognizer is not acquiring incoming audio any more, it is processing the final result.Recognizer is actively listening.Log debug messages and higherRecognizer is ready to start listening -
Method Summary
Modifier and TypeMethodDescriptionint
intValue()
Returns the enum constant of this class with the specified name.static KASRRecognizer.KASRRecognizerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
KASRRecognizerStateNeedsDecodingGraph
Log debug messages and higher -
KASRRecognizerStateReadyToListen
Recognizer is ready to start listening -
KASRRecognizerStateListening
Recognizer is actively listening. Any calls to startListening will be ignored -
KASRRecognizerStateFinalProcessing
Recognizer is not acquiring incoming audio any more, it is processing the final result. Note that in realistic scenarios recognizer is not likely to be in this state for a long time (usuaully 200-300ms). Long processing times may indicate that the SDK is running on devices which cannot keep up with the processing, or some type of misconfiguration.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
intValue
public int intValue()- Returns:
- integer value of the enum.
-