If you wish to use a loaded SRGS grammar for decode, you need to activate it for the call that is running.
BOOL LVCA_ActivateSRGSGrammar(HANDLE hCA, const char* gram_name);
BOOL LVCA_ActivateGlobalGrammar(HANDLE hCA,const char* gram_name);
hCA
The handle of the call which you are activating the grammar.
gram_name
The identifier for the grammar being activated. This is the same identifier that was given to the grammar when it was loaded.
If successful, LVCA_ActivateSRGSGrammar returns true. If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.
Complete Help Topic List | Speech Platform Product Information