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
ISpRecoResult2::CommitText
ISpRecoResult2::CommitText commits some new text for recognizer learning.
HRESULT CommitText(
ULONG ulStartElement,
ULONG cElements,
LPCWSTR pszCorrectedData,
DWORD eCommitFlags
);
Parameters
- ulStartElement
The first element to replace. - cElements
The number of elements to replace. - pszCorrectedData
The corrected text. - eCommitFlags
One or more values from the SPCOMMITFLAGS enumeration that indicate the nature of the correction.
Return values
Value |
S_OK |
E_INVALIDARG |