LVCA_AddConceptA/LVCA_AddConceptW

Note: As of July 2007, all functions relating to concept/phrase grammars have been deprecated in favor of SRGS grammars. These functions are subject to being removed in a future release. Please update your applications accordingly. See Using SRGS Grammars for more information on working with SRGS grammars.

This function adds concepts and phrases to recognize.

LVCA_API BOOL WINAPI LVCA_AddConceptA(HANDLE hCA, LPCSTR Concept, LPCSTR Phrase) ;

LVCA_API BOOL WINAPI LVCA_AddConceptW(HANDLE hCA, LPCWSTR Concept, LPCWSTR Phrase) ;

Defined as:

LVCA_AddConcept

Return Value:

If successful,LVCA_AddConceptA/LVCA_AddConceptW 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

Concept (IN) A pointer to a string containing the Concept.

Phrase (IN) The pointer to the Phrase to add to the Concept.

Notes:

This function can be used to add new concepts or add phrases to an existing concept.  If a new concept is added it will need to be intercepted on the 'Before Confirmation Event' and extracted with the LVCA_GetRawConcept function.  When a concept is added and not intercepted the Platform call engine will consider it a nomatch since there will not be a response for it in the project.

This function can be called multiple times with the same concept but a different Phrase.  Each Phrase is the word sequence, which will trigger the concept to be recognized.

Concepts not found in the Platform Module in the Platform Project will need to be handled during the CAMSG_REC_BEFORE_CONFIRM event or it will be treated as a NoMatch.


Complete Help Topic List | Speech Platform Product Information