These functions removes a loaded grammar from the application level space of grammars. The second function removes all application-level grammars.
int LV_SRE_UnloadGlobalGrammar(const char* gram_name);
void LV_SRE_UnloadGlobalGrammars(void);
gram_name
The identifier for the grammar being unloaded. This is the same identifier you gave the grammar when you loaded it.
LV_SUCCESS
No errors; this grammar is removed.
LV_GLOBAL_GRAMMAR_TRANSACTION_ERROR
Fail to unload the grammar on all servers.
LV_GLOBAL_GRAMMAR_TRANSACTION_PARTIAL_ERROR
Fail to unload the grammar on some of the servers.
A global grammar is unloaded on the server only when users have called unload functions on all labels that are associated with the grammar.
LV_SRE_UnloadGrammar functions
LV_SRE_IsGlobalGrammarLoaded functions
LV_SRE_LoadGlobalGrammar functions
LVSpeechPort::UnloadGlobalGrammar functions (C++ API)
Complete Help Topic List | Speech Engine Product Information