Browse
 
Tools
Rss Categories

LVSpeechPort::UnloadGlobalGrammar (Deprecated)

Reference Number: AA-00826 Views: 7294 0 Rating/ Voters

Removes a loaded grammar from the application level space of grammars.

Function

  • static int UnloadGlobalGrammar(const char* gram_name)

Parameters

gram_name

The identifier 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_GRAMMAR_LABEL

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

LV_EXCEPTION

An exception occurred while processing the request.


Remarks

NOTE: As of LumenVox version 12.1, the use of "Global" grammars, and related functions has been deprecated. There is no longer any benefit from using global grammars (assigned at the application level) due to the advanced grammar caching mechanism that has been in place for some time.  Users should adopt the use of port-assigned grammar functions (basically consisting of the same name, but without the 'Grammar' portion)

See Also