LV_SRE_DeactivateGrammar

Remove a grammar from the set of active grammars.

Function

Parameters

hport

The handle of the speech port for which you are deactivating 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.

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 input hport is not a valid one.

LV_EXCEPTION

An exception occured while processing the request.

See Also

© 2012 LumenVox LLC. All rights reserved.