UnloadGrammar functions

These functions remove a loaded grammar from a speech port object.  The last function removes all loaded grammars from the speech port.

Functions

int UnloadGrammar(const char* gram_name);

int UnloadGrammar(int gram_name);

void UnloadGrammars();

Parameters

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.

Return Values

LV_SUCCESS

No errors; this grammar is removed.

LV_FAILURE

The grammar was not present.  Nothing was removed.

Remarks

Grammars that were activated and then unloaded are still active; they must be explicitly deactivated.

See Also


Complete Help Topic List | Speech Engine Product Information