Grammar Template

Cisco Unified CCX 4.0 and after adds support for a new type of grammar file to the user and system grammars already available. This 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, Cisco Unified CCX 4.0 and after adds 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. Effective with Cisco Unified CCX 3.0, when referencing a user or system prompt, the extension of the file was optional and a search among valid extensions was performed to locate a file in the grammar repository. Effective with Cisco Unified CCX 4.0, the search order is: .grxml, .gsl, .digit, and .tgl .

When a user or system 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 About Prompt Templates.