Interface Sphinx4Interface

All Known Implementing Classes:
Sphinx4Component

public interface Sphinx4Interface
Defines a standard set of methods that must be defined in an DIARCComponent that utilizes Sphinx4 speech recognition.
  • Method Details

    • setGrammar

      void setGrammar(String path)
    • setConfig

      void setConfig(String path)
    • setControlState

      void setControlState(Sphinx4Component.ControlState state)
      Set control state to one of {CONFIRM, ACCEPT, REJECT}. GUI only method.
      Parameters:
      state - one of {"CONFIRM", "ACCEPT", "REJECT"}
    • getControlState

      get current control state, one of {CONFIRM, ACCEPT, REJECT}. GUI only method.
    • acceptUtterance

      void acceptUtterance()
      Accept last recognition result and pass to parser. This is only for the CONFIRM control state.
    • rejectUtterance

      void rejectUtterance()
      Reject last recognition result. This is only for the CONFIRM control state.
    • getOnDeckText

      String getOnDeckText()
      Get the next recognition result from the recognition queue while in CONFIRM control state.
    • clearRecogntionHistory

      void clearRecogntionHistory()
      Clear recognition queue. Only for use while in CONFIRM control state.