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.
  • Enum Constant Details

    • KASRRecognizerStateNeedsDecodingGraph

      public static final KASRRecognizer.KASRRecognizerState KASRRecognizerStateNeedsDecodingGraph
      Log debug messages and higher
    • KASRRecognizerStateReadyToListen

      public static final KASRRecognizer.KASRRecognizerState KASRRecognizerStateReadyToListen
      Recognizer is ready to start listening
    • KASRRecognizerStateListening

      public static final KASRRecognizer.KASRRecognizerState KASRRecognizerStateListening
      Recognizer is actively listening. Any calls to startListening will be ignored
    • KASRRecognizerStateFinalProcessing

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

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