STSREngineState Constants Reference
| Declared in | STMediaParams_doc.h |
STSREngineState
This enumerator defines the real-time Speech Recognizer (SR) Engine State(SRES). An application accesses the speech recognizer via STMediaRunner module interface. During speech recognition and when the speech recognizer changes state, events describing its changed state are posted asynchronously and in real-time to the main thread of a registered client or application.
Definition
enum STSREngineState {
case SRES_NOT_VALID,
SRES_IDLE,
SRES_STARTING,
SRES_ACTIVE,
SRES_STOPPING,
SRES_FINISHING,
SRES_NOT_AVAILABLE
}
Constants
case SRES_NOT_VALID-
Speech Recognizer state is not valid. This is the initial state of the Speech Recognizer before it’s initialized.
Declared In
STMediaParams_doc.h. case SRES_IDLE-
Speech Recognizer state is idle. The Audio Recorder state must be ARS_IDLE for a request to recognize audio to be accepted.
Declared In
STMediaParams_doc.h. case SRES_STARTING-
Speech Recognizer state is starting. Speech Recognizer has accepted a request to recognize audio.
Declared In
STMediaParams_doc.h. case SRES_ACTIVE-
Speech Recognizer state is active. Speech Recognizer is recognizing recorded audio.
Declared In
STMediaParams_doc.h. case SRES_STOPPING-
Speech Recognizer state is stopping. Speech Recognizer transitions to this state after receiving a request to stop Speech Recognition. Speech Recognizer state then transitions from SRES_STOPPING to SRES_IDLE.
Declared In
STMediaParams_doc.h. case SRES_FINISHING-
Speech Recognizer state is finishing. Speech Recognizer transitions to this state after successfully recognizing audio. Speech Recognizer state then transitions from SRES_FINISHING to SRES_IDLE.
Declared In
STMediaParams_doc.h. case SRES_NOT_AVAILABLE-
Speech Recognizer state is not available.
Declared In
STMediaParams_doc.h.
Declared In
STMediaParams_doc.h