LVCA_AddStandardGrammar

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 will add one of the built in grammars to the recognizer

LVCA_API BOOL WINAPI LVCA_AddStandardGrammar(HANDLE hCA, LONG Grammar The Grammar contains the words and phrases Phrases are all the individual ways that a Concept could be described and are the words and phrases for which the program will listen. Phrases are marked with a double quote. Each individual Phrase that makes up the Phrases is marked by a single quote. for which the program will listen A Listen tells the program to listen to the caller. It will then try to match what they say to the information you enter in the Grammar. A Listen is a Terminal Action. This means it will be the last Action in an Actions List. in a given Module Modules are the individual elements you use to create your Information System. When you create an Information System, you are crafting a conversation between a computer and a live person. Each Module represents a single, distinct portion of that conversation. The different types of Modules are: Start, List, Multilevel, Overview, Yes/No, Goto, Hangup, Transfer, Global, Global Yes/No and Goto Project. Each Module has its own unique function and symbol.. Concepts, Phrases, Confirmations, Responses, and the Phrase Library are all part of the Grammar List.);

Return Value:

This function return true if successful, otherwise false will be returned.  Call LVCA_GetLastCallError to retrieve the error An Error is anything within the system itself that creates a glitch in the Speech Driven Information System An Information System is a general term used to describe the product you are designing with this software. This could be any type of system in which you can give information to your callers, such as a Virtual Customer Service Center, a Virtual Technical Support Center, or a Virtual Help Desk., such as a missing Vox A Vox is an Action that plays a sound file. You can record a Vox in your own voice directly from the Speech Driven Information System. You can also use the Audio Manager to import recordings or sound effects that you have obtained from other sources. or a Goto A Goto is an Action that sends callers to another Module. A Goto is a Terminal Action. This means it will be the last Action in an Actions List. that doesn't go anywhere. 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 A Concept is a general idea used to describe a group of Phrases. Phrases are the words for which the program will listen. For example, "Locations," "Your location," "Where you're located," and "Your address" are all Phrases that could be used within the Concept of "Locations."

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 A No Match occurs when the caller says something the system doesn't recognize. For example, if the system asks the caller "Do you prefer coffee or tea?" and they reply "Juice," their response A Response gives your customers an answer to their question or directs them to another Module that has the information they need. A Response can contain as many Voxes as you would like AND/OR a Goto OR a Transfer OR a Hangup. would be considered 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