Package com.keenresearch.keenasr
Enum Class KASRRecognizer.KASRVadParameter
java.lang.Object
java.lang.Enum<KASRRecognizer.KASRVadParameter>
com.keenresearch.keenasr.KASRRecognizer.KASRVadParameter
- All Implemented Interfaces:
Serializable
,Comparable<KASRRecognizer.KASRVadParameter>
,Constable
- Enclosing class:
- KASRRecognizer
These constants correspond to different Voice Activity Detection parameters
that are used for endpointing during recognition.
You can change values of these parameters using setVadParameter method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTimeout after this many seconds if we had any match (even if final state has not been reached).Timeout after this many seconds if we had a good (high probability) match to the final state.Timeout after this many seconds even if nothing has been recognized.Timeout after this many seconds regardless of what has been recognized. -
Method Summary
Modifier and TypeMethodDescriptionint
intValue()
Returns the enum constant of this class with the specified name.static KASRRecognizer.KASRVadParameter[]
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
-
KASRVadTimeoutForNoSpeech
Timeout after this many seconds even if nothing has been recognized. Default is 10 seconds. -
KASRVadTimeoutEndSilenceForGoodMatch
Timeout after this many seconds if we had a good (high probability) match to the final state. Default is 1 second. -
KASRVadTimeoutEndSilenceForAnyMatch
Timeout after this many seconds if we had any match (even if final state has not been reached). Default is 2 seconds. -
KASRVadTimeoutMaxDuration
Timeout after this many seconds regardless of what has been recognized. This is effectively upper bound on the duration of recognition. Default value is 20 seconds.
-
-
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.
-