ISpSREngine::OnCreateRecoContext

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

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

Value Description
NOERROR No 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.