Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecoContext2::GetGrammarOptions
ISpRecoContext2::GetGrammarOptions returns the options that the current grammar supports.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetGrammarOptions(</strong> <strong> DWORD</strong> *<em>peOptions</em> <strong>);</strong> </pre>
Parameters
- peOptions
Returns the current grammar options.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | peOptions is invalid. |
E_FAILED(hr) | Appropriate error message. |