Removes a loaded grammar from a speech port.
- int LV_SRE_UnloadGrammar(HPORT hport, const char* gram_name)
The handle for the speech port which holds the grammar you want to unload.
A null-terminated string identifying for the grammar being unloaded. This is the same identifier you gave the grammar when you loaded it.
No errors; this grammar is removed.
The input hport is not a valid one.
The operation failed because the port was shutting down.
The grammar identified by gram_name was not present. Nothing was removed.
An exception occurred while processing the request.
When you unload a grammar that has been activated, it will automatically be deactivated.