Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecoGrammar::GetRecoContext
ISpRecoGrammar::GetRecoContext retrieves the ISpRecoContext object that created this grammar. If this method succeeds, the application using this method must call Release() on the SpRecoContext object returned.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetRecoContext(</strong><a runat="server" href="jj127719(v=msdn.10).md"><strong>ISpRecoContext</strong></a> **<em>ppRecoCtxt</em> <strong>);</strong> </pre>
Parameters
- ppRecoCtxt
[out] Address of a pointer to an ISpRecoContext interface that receives the recognition context object pointer.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | ppRecoCtxt is invalid or bad. |