Browse
 
Tools
Rss Categories

LVSpeechPort::UnloadGrammar

Reference Number: AA-00827 Views: 8197 0 Rating/ Voters

Removes a loaded grammar from the speech port.

Function

  • int UnloadGrammar(const char* gram_name)

Parameters

gram_name

A null-terminated string identifying for the grammar being unloaded. This is the same identifier you gave the grammar when you loaded it.

Return Values

LV_SUCCESS

No errors; this grammar is removed.

LV_INVALID_HPORT

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

LV_FAILURE

The operation failed because the port was shutting down.

LV_INVALID_GRAMMAR_LABEL

The grammar identified by gram_name was not present. Nothing was removed.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

When you unload a grammar that has been activated, it will automatically be deactivated.

See Also