LVCA_AddConcept

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.

 

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

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

 

Return Value

 

These functions return true if successful, otherwise false will be returned.  Call LVCA_GetLastCallError to retrieve the error code and message.

 

Parameters

 

hCA

The handle given by the event callback.

 

Concept

A pointer to a string containing the to add.

 

Phrase

The pointer to the phrase to add to the concept.

 

Remarks

 

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.


Complete Help Topic List | Speech Platform Product Information