Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

SPRECOEVENTFLAGS

SPRECOEVENTFLAGS lists the states of the speech recognition (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,

<strong>SPREF_Hypothesis,</strong>
<strong>SPREF_FalseRecognition</strong>

} 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 Semantic Markup Language (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.

Remarks

For more information about SML, see Semantic Markup Language Reference (Microsoft.Speech).