LVCA_AddStandardGrammar

This function will add one of the built in grammars to the recognizer

LVCA_API BOOL WINAPI LVCA_AddStandardGrammar(HANDLE hCA, LONG Grammar);

Return Value:

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

Supported on Events:

CAMSG_ENTERMODULE

Params:

hCA (IN) Call handle passed into function

Grammar (IN) The grammar to add to the recognition engine.

CA_GRAMMAR_DIGITS This grammar adds 0-9 and will return all digits recognized as one concept

CA_GRAMMAR_MONEY This grammar will return any money recognized as a numeric value in a single concept

CA_GRAMMAR_NUMBER Any natural number recognized will be returned as a numeric number in a single concept

Notes:

These values will need to be intercepted by LVCA_GetRawConcept and use either a LVCA_SetGoto or LVCA_SetTransfer.  If this is not done the value will be rejected as a no match.

When using CA_GRAMMAR_DIGITS, no additional concepts may be added with LVCA_AddConcept


Complete Help Topic List | Speech Platform Product Information