ISpSREngine::OnCreateRecoContext (SAPI 5.4)

Microsoft Speech API 5.4

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
NOERROR

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.