ISpRecognizer::CreateRecoContext (SAPI 5.3)
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 );
- [out] Address of a pointer to an ISpRecoContext interface receiving the recognition context.
|S_OK||Function completed successfully.|
|E_POINTER||ppNewContext is invalid or bad.|
|FAILED(hr)||Appropriate error message.|