Microsoft Speech Platform
SPRECOEVENTFLAGS
SPRECOEVENTFLAGS lists the states of the SR engine. When a recognition event is raised, the wParam of SPEVENT or SPEVENTEX will contain a value from SPRECOEVENTFLAGS indicating the state of the SR engine.
typedef enum SPRECOEVENTFLAGS
{
SPREF_AutoPause,
SPREF_Emulated,
SPREF_SMLTimeout,
SPREF_ExtendableParse,
SPREF_Hypothesis,
SPREF_FalseRecognition
} SPRECOECOEVENTFLAGS;
Elements
- SPREF_AutoPause
- Indicates that the engine is in the auto-paused state.
- SPREF_Emulated
- Indicates that the engine is in emulation.
- SPREF_SMLTimeout
- Indicates there was a timeout generating the SML and hence no SML will be returned.
- SPREF_ExtendableParse
- The user said something that was a valid path through the grammar, but it is possible they could be about to say something else. For example, if the grammar contains "play the ace" and "play the ace of spades" and the user says "play the ace", this flag is set.
- SPREF_Hypothesis
- Indicates the result is a partial recognition. For example, if the grammar contains "play the ace of spades" and the user says "play the ace", then it is a hypothesis.
- SPREF_FalseRecognition
- Indicates the recognizer rejected the recognition because of low confidence score.