Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SPCONTEXTSTATE
SPCONTEXTSTATE lists controls for setting and restoring recognition states on a per-context basis.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef enum SPCONTEXTSTATE</strong> <strong>{</strong> <strong>SPCS_DISABLED,</strong> <strong>SPCS_ENABLED</strong> <strong>} SPCONTEXTSTATE;</strong> </pre>
Elements
- SPCS_DISABLED
Specifies that grammars associated with this recognition context are disabled. When an application sets the context state to SPCS_DISABLED, all rules in all grammars owned by that context are disabled, even if the grammar state is set to exclusive. - SPCS_ENABLED
Specifies that grammars associated with this recognition context are enabled. By default recognition contexts are created with SPCS_ENABLED.