Export (0) Print
Expand All

ISpSREngine::OnCreateRecoContext (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngine::OnCreateRecoContext

ISpSREngine::OnCreateRecoContext notifies the engine that a recognition context is being created.

HRESULT OnCreateRecoContext(
   SPRECOCONTEXTHANDLE   hSAPIRecoContext,
   void                **ppvEngineContext
);

Parameters

hSAPIRecoContext
[in] Unique handle to the recognition context.
ppvEngineContext
[out] The engine should set the contents of this to a pointer to any engine-specific information it wishes to associate with this context.

Return values

ValueDescription
NOERRORNo error is possible with this function.

Each application connected with the SR engine can have one or more recognition contexts. The engine can associate a pointer with each recognition context that is then passed back to the engine in other methods using this context.

Show:
© 2014 Microsoft