Grammar Search Algorithm

The script locates grammars by means of a standard language search algorithm based on the language context of the call.

For example, assuming a language context of {L[fr_FR_Judy], L[en_GB]}, a search will return the first grammar defined for the following directories:

  • ...\fr_FR_Judy

  • ...\fr_FR

  • ...\fr

  • ...\en_GB

  • ...\en

  • ...\default

This type of algorithm allows you to place grammars that are common to all languages in the “default” directory, or grammars that are common to all French languages in the “fr” directory. You can override these common grammars by placing a grammar with the same filename under a different directory, such as “fr_FR”.

Cisco Cisco Unified CCX supports the following file extensions:

  • .grxml—for MRCP grammars

    Note

    The Nuance Grammar language format extension, .gsl, is no longer supported.

  • .digit—for digit grammars
  • .jrx—for regex grammars used by the DTMF voice browser only
  • .tgl—for template grammars
Note

For more information on grammars algorithms and files, see the Cisco Unified Contact Center Express Scripting and Development Series: Volume 3, Expression Language Reference Guide.

If you do not provide an extension, the script locates the grammar file based on the media type of the call when referenced as a user grammar in a Cisco Unified CCX script:

  • All the supported extensions listed above.

  • The type of media supported by the call; if MRCP ASR is supported, the search starts with .grxml. Otherwise, the search starts with .digit.