PreviousNextIndex
Working with Grammars > Using the Grammar File Wizard to Create Grammar Files > New Grammar Page
 
New Grammar Page

Configure the following fields and options within the New Grammar Page of the Grammar File.

Grammar File Wizard-New Grammar Page 

Field or Option

Description

Available Projects

Select the project in which the grammar file will be used.

File Name

Name to identify the grammar.

Note: Grammar names must follow Java naming conventions (see Naming Java Components).

CAUTION: Do not use double-byte or extended ASCII characters when naming the grammar file.

Type

Select a Type of the grammar to be created. Possible types are:

  • Static - A grammar with a limited number of entries. The most common type of grammar, static grammars have a .gram assigned to their filenames. See Editing Static Grammars.
  • Dynamic - A Java class grammar that uses an API to build the elements that make up a grammar. At run-time, a dynamic grammar (the Java class) generates the appropriate grammar content dynamically, by retrieving values from a data source such as a database, an LDAP, or a Web service.
  • When clicking Finish to create the grammar file, Dialog Designer automatically opens a Java class editor that is populated with sample code to help get started.
  • External - An external grammar is one that is created, defined, and maintained outside of Dialog Designer. To use an external grammar, you must know the name and path to the grammar file, and what domain host the grammar file resides on.
  • External grammars can be relative to the application and also the parameter substitution. The following variables are allowed in the URL and replaced at runtime (however, when using these, you cannot use the Test button):
  • %DDVAR_<variablename>%
  • %runtime_Platform%
  • %runtime_ASR%

Note:

Both Media Type and URL fields support variable "%DDVAR_<variablename>%" substitution.

Mode

Indicates the mode of the grammar. Options are: DTMF or Voice.

Note: Only available for a Static Type.

Style

Indicates whether Custom or Built-in grammars are used

Built-in grammars have a .gram-builtin extension assigned to their filenames. See Selecting Built-in Grammar Types.

Note: Only available for a Static Type.

Number of rows

For each caller response to be defined for recognition, a row must be accounted for in the grammar. Enter the number of rows anticipated for the grammar. See Editing Static Grammars.

Tip: Rows are automatically added to the bottom of a row by pressing the [Return] key.

Number of columns

Each column in a static grammar table represents a potential system response to a caller utterance. Enter the number of columns anticipated for the grammar. See Editing Static Grammars.

Open file for editing when done

To ensure that the Dialog Designer opens the Grammar File Editor when you have finished creating the grammar file, select this option.

See Using the Grammar File Editor.

Note: Only available for Static or External Types.

Generate sample grammar

To ensure that the Dialog Designer creates a simple populated grammar as a starting point for help in defining the grammar, select this option.


When configuring the fields, perform one of the following actions:


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.