Export (0) Print
Expand All

ISpRecognizer2::EmulateRecognitionEx (SAPI 5.3)

Speech API 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

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGpPhase is invalid.
SP_NO_PARSE_FOUNDThe phrase did not match any active rules.
SP_RECOGNIZER_INACTIVERecognition is not currently active, so emulation cannot complete.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft