LVCA_UnloadSRGSGrammar

These functions removes a loaded grammar from the application level space of grammars.  The third and fourth functions remove all grammars.  If you unload a global grammar it is removed for all calls.

Functions

BOOL LVCA_UnloadSRGSGrammarA(HANDLE hCA, LPCSTR gram_name);

BOOL LVCA_UnloadSRGSGlobalGrammarA(LPCSTR gram_name);

BOOL LVCA_UnloadSRGSGrammars(HANDLE hCA);

BOOL LVCA_UnloadSRGSGlobalGrammars();

 

Parameters

hCA

Handle to the call to remove the grammar from

gram_name

The identifier for the grammar being unloaded.  This is the same identifier you gave the grammar when you loaded it.

Return Values

If successful, LVCA_UnloadSRGSGrammar returns true.  If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.

Remarks

Grammars that were activated and then unloaded are still active; they must be explicitly deactivated.


Complete Help Topic List | Speech Platform Product Information