Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.3
ISpRecognizer2::EmulateRecognitionEx
ISpRecognizer2::EmulateRecognitionEx emulates a recognition from a specified phrase rather than from spoken content and extends the functionality of ISpRecognizer::EmulateRecognition.
HRESULT EmulateRecognitionEx(ISpPhrase *pPhrase,
DWORD dwCompareFlags
);
Parameters
- pPhrase
The phrase containing the words to emulate (that is, pretend the user said this string). - dwCompareFlags
Determines whether the comparison is case sensitive or case insensitive.
Return values
Value |
S_OK |
E_INVALIDARG |
SP_NO_PARSE_FOUND |
SP_RECOGNIZER_INACTIVE |
FAILED(hr) |