Share via


Note

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

Microsoft Speech Platform

ISpRecoContext2::SetGrammarOptions

ISpRecoContext2::SetGrammarOptions specifies the kinds of grammars that can be loaded into a grammar object.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetGrammarOptions(</strong> <strong> DWORD</strong> <em>eGrammarOptions</em> <strong>);</strong> </pre>

Parameters

  • eGrammarOptions
    Controls what kinds of grammars can be loaded into the grammar object.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG Invalid parameter.
FAILED(hr) Appropriate error message.