Remove a grammar from the set of active grammars.
- int LV_SRE_DeactivateGrammar(HPORT hport, const char* gram_name)
The handle of the speech port for which you are deactivating the grammar.
The identifier for the grammar being deactivated. This is the same identifier that was given to the grammar when it was loaded.
The grammar was successfully deactivated.
The call failed because the port was shutting down.
The grammar identified by gram_name was either not activated or was not loaded.
The input hport is not a valid one.
An exception occurred while processing the request.
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.