Browse
 
Tools
Rss Categories

LV_SRE_UnloadGrammar

Reference Number: AA-00738 Views: 2351 0 Rating/ Voters

Removes a loaded grammar from a speech port.

Function

  • int LV_SRE_UnloadGrammar(HPORT hport, const char* gram_name)

Parameters

hport

The handle for the speech port which holds the grammar you want to unload.

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

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