Partager via


ISpRecoResult2::CommitText (SAPI 5.3)

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