LV_SRE_DeactivateGrammar functions

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

Functions

int LV_SRE_DeactivateGrammar(HPORT hport, const char* gram_name);

int LV_SRE_DeactivateGrammarIdx(HPORT hport, int gram_name);

int LV_SRE_DeactivateGrammars(HPORT hport);

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 if you use the *Idx version of the function call. 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

LV_SRE_ActivateGrammar functions

LV_SRE_ActivateGlobalGrammar

LVSpeechPort::DeactivateGrammar (C++ API)


Complete Help Topic List | Speech Engine Product Information