Export (0) Print
Expand All

ISpRecognizer::CreateRecoContext (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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

ValueDescription
S_OKFunction completed successfully.
E_POINTERppNewContext is invalid or bad.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft