Specify grammars for commands
In a project meant to support a VoiceXML application, specify any required speech or DTMF grammar references for your global commands. An external DTMF grammar is required if you want your VoiceXML application to support sequences of digits, or dynamic DTMF options.
Note:
Applications using Nuance Recognizer as a Service (NRaaS) don’t use external grammar references from Mix.dialog. For grammars used by NRaaS, refer to the NRaaS documentation.- In the Project Settings panel, expand All channels, and click Global commands.
- Scroll down to the Grammars section.
- Turn on the desired option: Reference speech grammar, or Reference DTMF grammar.
A new field appears. - Expand the field, and:
- Enter the name of the desired grammar file, including the extension (for example, my-command-grammar.grxml).
- Choose the variable that is meant to hold a dynamic grammar reference at runtime.
Tip: Use the search field to narrow down the list if needed. If the variable you want to use is missing, you can create it on the fly, and then use it immediately.
- (Optional) Export the grammar specification document, to be used by the VoiceXML application, if desired.
Notes:
- Like the global command entity itself, command grammars you specify in your project settings have a global scope.
- Since question and answer nodes cannot use the NLU model and speech grammars concurrently, at the collection turn, make sure you also specify a speech grammar for the entity in focus, at every question and answer node that must support command entity values.
This limitation only applies to speech grammars—a question and answer node can use the NLU model and DTMF grammars concurrently. - Best practice: If you specified DTMF mappings for values of your global command entity, clear them. This will facilitate maintenance, and prevent conflicts with the external DTMF grammar.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.