ISpRecoResult2::CommitText (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_INVALIDARG One of the parameters is invalid.