ISpRecognizer::CreateRecoContext (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_POINTER ppNewContext is invalid or bad.
FAILED(hr) Appropriate error message.