ISpRecognizer2::EmulateRecognitionEx (SAPI 5.3)
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) |