These functions remove a loaded grammar from a speech port object. The last function removes all loaded grammars from the speech port.
int UnloadGrammar(const char* gram_name);
int UnloadGrammar(int gram_name);
void UnloadGrammars();
gram_name
The identifier for the grammar being unloaded. This is the same identifier you gave the grammar when you loaded it. It can be a null terminated string, or an integer.
LV_SUCCESS
No errors; this grammar is removed.
LV_FAILURE
The grammar was not present. Nothing was removed.
Grammars that were activated and then unloaded are still active; they must be explicitly deactivated.
LVSpeechPort::IsGrammarLoaded functions
LVSpeechPort::UnloadGlobalGrammar functions
LVSpeechPort::LoadGrammar functions
LV_SRE_UnloadGrammar functions (C API)
Complete Help Topic List | Speech Engine Product Information