Package edu.tufts.hrilab.sphinx4
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 Summary
Modifier and TypeMethodDescriptionvoid
Accept last recognition result and pass to parser.void
Clear recognition queue.get current control state, one of {CONFIRM, ACCEPT, REJECT}.Get the next recognition result from the recognition queue while in CONFIRM control state.void
Reject last recognition result.void
void
Set control state to one of {CONFIRM, ACCEPT, REJECT}.void
setGrammar
(String path)
-
Method Details
-
setGrammar
-
setConfig
-
setControlState
Set control state to one of {CONFIRM, ACCEPT, REJECT}. GUI only method.- Parameters:
state
- one of {"CONFIRM", "ACCEPT", "REJECT"}
-
getControlState
Sphinx4Component.ControlState 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.
-