Enum Class Recognizer.EventCode

java.lang.Object
java.lang.Enum<Recognizer.EventCode>
com.vivoka.vsdk.asr.Recognizer.EventCode
All Implemented Interfaces:
Serializable, Comparable<Recognizer.EventCode>, Constable
Enclosing class:
Recognizer

public static enum Recognizer.EventCode extends Enum<Recognizer.EventCode>
Represents event codes for the ASR recognizer. These events can be used to notify listeners about various asr recognizer states.
  • Enum Constant Details

    • RECOGNIZER_STARTED

      public static final Recognizer.EventCode RECOGNIZER_STARTED
      Event indicating that the recognizer has started successfully.
    • RECOGNIZER_STOPPED

      public static final Recognizer.EventCode RECOGNIZER_STOPPED
      Event indicating that the recognizer has stopped.
    • SPEECH_DETECTED

      public static final Recognizer.EventCode SPEECH_DETECTED
      Event indicating that speech has been detected.
    • SILENCE_DETECTED

      public static final Recognizer.EventCode SILENCE_DETECTED
      Event indicating that silence has been detected.
    • AUDIO_FINISHED

      public static final Recognizer.EventCode AUDIO_FINISHED
      Event indicating that audio input has finished.
  • Method Details

    • values

      public static Recognizer.EventCode[] 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 Recognizer.EventCode 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