Grammar Template File Types and Template Enhancements
There are some grammar definition and syntax changes. The Speech Recognition Grammar Specification (SRGS), the Speech Synthesis Markup Language Specification (SSML) MRCP grammars, and the Cisco DTMF RegEx specification replace the Nuance Grammar Specification Language (GSL).
There is also added support for a new type of grammar file to the user and system grammars already available. This new file has the filename extension.tgl and can be referenced in a script just like other grammar files.
In addition, not related to the expression, there is added support for
one new grammar file
extension:.grxml
. Files ending with this extension are
expected to be text files written as SRGS (Speech Recognition Grammar
Specification) grammars. Since Cisco CRS 3.0, when referencing a user grammar,
the extension of the file was optional and a search among valid extensions was
performed to locate a file in the grammar repository. The search order is:
.grxml,.gsl,.digit
and .tgl
.
When a user grammar with the
.tgl
extension is located, it is loaded as a text file
and parsed, and the result is a grammar object. The expression specified in the
text file does not have access to script variables. However, if defined using a
complex block expression, the block can be parameterized like a method
declaration, allowing for scripts to customize the evaluation of the
expression. This is similar in concept to the prompt template file described in
Prompt Templates.