Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SPRULESTATE
SPRULESTATE lists the possible states of a grammar rule.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef enum SPRULESTATE</strong> <strong>{</strong> <strong>SPRS_INACTIVE,</strong> <strong>SPRS_ACTIVE,</strong> <strong>SPRS_ACTIVE_WITH_AUTO_PAUSE,</strong> <strong>SPRS_ACTIVE_USER_DELIMITED</strong> <strong>} SPRULESTATE</strong>; </pre>
Elements
- SPRS_INACTIVE
The grammar rule is inactive. - SPRS_ACTIVE
The grammar rule is active. - SPRS_ACTIVE_WITH_AUTO_PAUSE
The speech recognition (SR) engine will be placed in a paused state when the grammar rule is recognized. Also known as an "auto-pause" rule. - SPRS_ACTIVE_USER_DELIMITED
The audio will start when the user starts speaking and will end when the user stops speaking.