ISpPhraseAlt::Commit (Windows Embedded CE 6.0)
1/6/2010
This method replaces a section of the parent phrase to which the alternate corresponds. After an alternate has been committed, the parent phrase will be modified to reflect the substitution.
On committing the alternate phrase, the SR engine also has the ability to update its language model to improve future recognitions of the same, or similar, phrases (see ISpSRAlternates::Commit).
Syntax
HRESULT Commit(void);
Parameters
None
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
SPERR_NOT_FOUND |
The alternate object is not related to a valid parent phrase object. |
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |