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

public static enum KASRRecognizer.KASRVadParameter extends Enum<KASRRecognizer.KASRVadParameter>
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.
  • Enum Constant Details

    • KASRVadTimeoutForNoSpeech

      public static final KASRRecognizer.KASRVadParameter KASRVadTimeoutForNoSpeech
      Timeout after this many seconds even if nothing has been recognized. Default is 10 seconds.
    • KASRVadTimeoutEndSilenceForGoodMatch

      public static final KASRRecognizer.KASRVadParameter KASRVadTimeoutEndSilenceForGoodMatch
      Timeout after this many seconds if we had a good (high probability) match to the final state. Default is 1 second.
    • KASRVadTimeoutEndSilenceForAnyMatch

      public static final KASRRecognizer.KASRVadParameter KASRVadTimeoutEndSilenceForAnyMatch
      Timeout after this many seconds if we had any match (even if final state has not been reached). Default is 2 seconds.
    • KASRVadTimeoutMaxDuration

      public static final KASRRecognizer.KASRVadParameter 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

      public static KASRRecognizer.KASRVadParameter[] 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

      public static KASRRecognizer.KASRVadParameter valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • intValue

      public int intValue()
      Returns:
      integer value of the enum.