Share via


ISpRecognizer::CreateRecoContext (SAPI 5.4)

Microsoft Speech API 5.4

ISpRecognizer::CreateRecoContext

ISpRecognizer::CreateRecoContext creates a recognition context for this instance of an SR engine. The recognition context is used to load recognition grammars, start and stop recognition, and receive events and recognition results. 

Each application can have one or more recognition contexts, although normally each application will have only one. 

  
    HRESULT CreateRecoContext(ISpRecoContext   **ppNewContext
);

Parameters

  • ppNewContext
    [out] Address of a pointer to an ISpRecoContext interface receiving the recognition context.

Return values

Value
S_OK
E_POINTER
FAILED(hr)