ISpRecognizer::CreateRecoContext (Windows Embedded CE 6.0)
1/6/2010
This method creates a recognition context for the SR engine. The recognition context is used to load recognition grammars, start and stop recognition, and receive events and recognition results.
Typically each application uses only one recognition context. However, an application can have more more than one context in certain circumstances.
Syntax
HRESULT CreateRecoContext(
ISpRecoContext** ppNewContext
);
Parameters
- ppNewContext
[out] Address of a pointer to an object implementing the ISpRecoContext interface.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
E_POINTER |
ppNewContext is invalid or bad. |
FAILED(hr) |
Appropriate error message. |
Example
SDK: Coffee0, Coffee1, Coffee2.
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |