DeactivateGrammar functions

These functions remove a grammar from the set of active grammars.  The last function clears the active grammar set

Functions

int DeactivateGrammar(const char* gram_name);

int DeactivateGrammar(int gram_name);

int DeactivateGrammars();

Parameters

hport

The handle of the speech port for which you are activating the grammar.

gram_name

The identifier for the grammar being deactivated. This is the same identifier that was given to the grammar when it was loaded. This can be a string, or an integer ID. The string "123" and the integer 123 are identical labels. Integer names are provided for backward compatibility.

Return Values

LV_SUCCESS

No errors; this grammar is no longer active.

LV_FAILURE

This grammar could not be deactivated, because it was never successfully activated.

See Also

LVSpeechPort::ActivateGrammar functions

LV_SRE_DeactivateGrammar functions (C++ API)


Complete Help Topic List | Speech Engine Product Information