Audium Knowledge Base

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Jump to ID Browse by Category
How can I specify grammar weights in a Form element?
Categories: Audium Studio (3.4.x)
Article ID: 141
Last updated: February 28, 2006
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
SUMMARY

This article explains how to specify grammar weights for grammars used in a Form element.  These grammar weights are analagous to the weight attribute of a <grammar> element in VoiceXML.

SYMPTOMS

Developer has more than one voice grammar specified in a Form element, and would like to assign each grammar a weight.

RESOLUTION

Audium Studio and Call Services support grammar weight attributes for external and inline speech grammars used by Form elements.  Note that a tooltip for the Form element in Audium Studio also has information about the usage of this attribute.  The grammar weight attribute can be used in Voice Grammar and Voice Keyword settings, which represent external and internal grammars respectively.

1. "Voice Grammar":

This setting defines an external voice grammar for a Form element, in a string delimited with semicolons specifying three values in the following order:

1) the grammar weight (optional);
2) the grammar type (optional);
3) URL of the grammar file (required).

Note that if one of the two optional values (weight or type) is defined, the same number of delimiters (i.e. two semicolons) must be used. Sample configuration values are:

1) 0.6;application/srgs+xml;http://www.vxml.com/mygrammar.grxml
2) ;application/srgs+xml;http://www.vxml.com/mygrammar.grxml
3) 0.6;;http://www.vxml.com/mygrammar.grxml
4) http://www.vxml.com/mygrammar.grxml

2. "Voice Keyword":

This setting defines an inline voice grammar for the Form, with each configuration of this repeatable setting specifying one option for the grammar.  The valid format is a string separated with a semicolon specifying two values in the following order:

1) the weight of the grammar item (optional);
2) the grammar item (required).

Note that the grammar item may either contain the input itself followed by an optional return value, or just the input.  Sample configurations values are:

1) 0.6; news report [news]
2) 0.6; news report
3) news report [news]
4) news report

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.

Copyright (c) 2005 Audium Corporation. All rights reserved.
Audium Home | Audium Support Center Home | Audium Customer Care Home