Browse
 
Tools
Rss Categories

LVSpeechPort::DeactivateGrammar

Reference Number: AA-00752 Views: 2156 0 Rating/ Voters

Remove a grammar from the set of active grammars.

Functions

  • int DeactivateGrammar(const char* gram_name)

Parameters

gram_name

The identifier for the grammar being deactivated. This is the same identifier that was given to the grammar when it was loaded.

Return Values

LV_SUCCESS

The grammar was successfully deactivated.

LV_FAILURE

The call failed because the port was shutting down.

LV_INVALID_GRAMMAR_LABEL

The grammar identified by gram_name was either not activated or was not loaded.

LV_INVALID_HPORT

The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

Unlike the speechport client, it is not necessary for all grammars to be deactivated before the termination of the program. Because of this, you only need to deactivate grammars to change how your interpretations are generated.

See Also