cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
108
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 15-07-2005 12:15:28 AM
I see that the standard form element supports item lists as inline grammars throught the "Voice Keywords" setting in the Form element. I'd like to go one step further than this and include a custom inline grammar (either in the ABNF or GRXML format) into my form.

The question I have are as follows:

1. Is this possible in include inline grammars using the standard Form element?

2. Is it possible to extend the standard Form element and use VFC to add in-line grammars. I really don't want to have to re-implement the standard form functionality...

Subject: RE: Adding inline grammars using the Form element
Replied by: Vance Vagell on 15-07-2005 02:45:28 PM
Hi Mark,

Voice Keyword and DTMF Keypress settings are the mechanism by which inline grammars can be specified in the built-in Form element. At runtime, these settings will be used to generate the inline grammar for the Form. Note that you can add multiple Voice Keywords and/or DTMF Keypresses by right-clicking on the setting name, and choosing "Add Voice Keyword" or "Add DTMF Keypress" (respectively).

If you wish to use a more complex grammar for a Form element, it is recommended that you use an external grammar. External grammars can be specified in the Voice Grammar and DTMF Grammar settings.

If this functionality does not meet your needs, could you please clarify the situation in which you need to use a more complex inline grammar, so that I can provide an appropriate solution?

Regards,
Vance

Subject: RE: Adding inline grammars using the Form element
Replied by: null on 16-07-2005 06:17:21 AM
Vance,

Thanks for your reply. The inline keywords are too basic for my problem which is this: I have "store name" grammars which are complex enough to require external grammar files. The problem I am trying to solve is this: what can I do if a new store is added to the application and no external grammar file is provided (an oversight of the administrator, but nonetheless something we want cater for in our application).

What I was hoping to do in this case is to generate a "standard" store name grammar and include it into the VXML page in the <grammar> tag.

Any ideas?

Tks,
Mark

Subject: RE: Adding inline grammars using the Form element
Replied by: Vance Vagell on 19-07-2005 03:48:37 PM
Hi Mark,

You could create a JSP page that generates a dynamic grammar at runtime. In this solution, the list of store names (and any other utterances you wish to catch) is maintained in a database, and the JSP page accesses the data at runtime to generate a dynamic grammar. You can then reference this page as an external grammar from within Audio Builder for Studio, and it will generate an up-to-date grammar each time it is accessed. In this solution, you do not need to create/maintain grammar files for each store, you simply need to maintain a database.

If this solution does not seem appropriate for your problem, you could modify it to only be used in those cases where an external grammar file is not present for a given store. For example, you could set a Dynamic Configuration class on the Form element that needs the grammar, and if the grammar is not present, refer to a JSP page that will put a "stock" grammar together, based on the store name.

Note that you can use any web language that allows you to substitute dynamic information (e.g. PHP, etc.), not just JSP.

Hope this helps,
Vance
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links