These functions remove a grammar from the set of active grammars. The last function clears the active grammar set
BOOL LVCA_DeactivateSRGSGrammarA(HANDLE hCA, LPCSTR gram_name);
BOOL LVCA_DeactivateGrammars(HANDLE hCA);
hCA
The handle of the call for which you are activating the grammar.
gram_name
The identifier for the grammar being deactivated. This is the same identifier that was given to the grammar when it was loaded. This can be a string, or an integer ID if you use the *Idx version of the function call. The string "123" and the integer 123 are identical labels. Integer names are provided for backward compatibility.
If successful, LVCA_DeactivateGrammars returns true. If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.
Complete Help Topic List | Speech Platform Product Information