LV_SRE_UnloadGlobalGrammar

These functions removes a loaded grammar from the application level space of grammars.  The second function removes all application-level grammars.

Functions

int LV_SRE_UnloadGlobalGrammar(const char* gram_name);

void LV_SRE_UnloadGlobalGrammars(void);

Parameters

gram_name

The identifier for the grammar being unloaded.  This is the same identifier you gave the grammar when you loaded it.

Return Values

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.

Remarks

A global grammar is unloaded on the server only when users have called unload functions on all labels that are associated with the grammar.

See Also


Complete Help Topic List | Speech Engine Product Information