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
ISpGrammarBuilder::Commit
ISpGrammarBuilder::Commit performs consistency checks of the grammar structure, creates the serialized format, saves the grammar structure, or reloads the grammar structure.
The grammar structure may be saved it to the stream provided by SetSaveObjects, or reloaded into the SR engine. Commit must be called before any changes to the grammar can take effect.
HRESULT Commit(
DWORD dwReserved
);
Parameters
- dwReserved
Reserved. Must be zero.
Return values
| Value |
| S_OK |
| E_INVALIDARG |
| SPERR_UNINITIALIZED |
| SPERR_NO_RULES |
| SPERR_NO_TERMINATING_RULE_PATH |
| SPERR_CIRCULAR_RULE_REF |
| SPERR_STATE_WITH_NO_ARCS |
| SPERR_EXPORT_DYNAMIC_RULE |