Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecoContext::GetContextState
ISpRecoContext::GetContextState retrieves the state of the recognition context.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetContextState(</strong><a runat="server" href="jj127457(v=msdn.10).md"><strong>SPCONTEXTSTATE</strong></a> *<em>peContextState</em> <strong>);</strong> </pre>
Parameters
- peContextState
[out] Address of the SPCONTEXTSTATE enumeration that receives the context state information.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | One of the pointers is invalid or bad. |
FAILED(hr) | Appropriate error message. |
Remarks
The default recognition context state for an ISpRecoContext object is SPCS_ENABLED.
Applications can use ISpRecoContext::SetContextState to set the context state.