![]() |
|
![]() ![]() ![]() |
Importing Built-in Grammar
A built-in grammar requires the columns name, mode, type, subtype, followed (optionally) by options. For example:
test9|dtmf|builtin|digits|minlength=4;maxlength=6
Here, column descriptions are:
name- grammar name
mode - dtmf or voice
type - external or builtin
subtype - is the builtin grammar type of number, time, date, digits, Boolean, phone, or currency.
options - options specific to the builtin grammar. Refer to the VXML specification for builtin grammar options.
The delimiter used in the text file can be a Tab, or another consistently used character in your file that does not conflict with the data content; for example, a pipe symbol (" | ") or comma.
Following is an example of a vertical bar delimited grammar file for built-in grammar:
# comment dtmf builtin
#
# name|mode|type|subtype|[options]
#
test5|dtmf|builtin|number
test6|dtmf|builtin|time
test7|dtmf|builtin|date
test8|dtmf|builtin|digits
test9|dtmf|builtin|digits|minlength=4;maxlength=6
test10|dtmf|builtin|digits|length=6
test11|dtmf|builtin|boolean|y=1;n=2
test12|dtmf|builtin|phone
test13|dtmf|builtin|currency
The column "options" after the "subtype" column in the delimited text file is optional
Following is an example of a vertical bar delimited grammar file for external grammar:
# comment external voice, default media type is application/srgs+xml
#
# name|mode|type|url|mediatype|[slotname] [slotname]...
#
# testa|voice|external|http://localhost:8080/xxxxzzz|xxx/srgs+xml|
# testb|voice|external|http://localhost:8080/eeeeezz|application/srgs+xml|slota slotb
The column "slotname" after the column "mediatype" is optional.
To import a delimited grammar import data file, follow these steps:
![]() ![]() ![]() |
©2009, Avaya Inc. All rights reserved.
|