ISpPhraseAlt::Commit (Windows CE 5.0)
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).
HRESULT Commit(void);
Parameters
None
Return Values
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
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpPhraseAlt | SAPI Interfaces
Send Feedback on this topic to the authors