Step 6: Localize universal commands
By default, Voice Platform provides North American English built-in grammars for the standard VoiceXML universal commands, help, cancel, exit, and the Nuance extension, operator. The universals are located in %SWISRSDK%\config\en.us\version\sources, where %SWISRSDK% is the Recognizer location.
You must provide localized grammars in all languages for the universals you intend to use, then incorporate them in your VoiceXML application. You can create separate files and invoke them or use inline grammars. These instructions show you how to create separate grammar files.
- Copy the en-US universal grammars to a temporary location.
- Keep the same filenames as the defaults, for example, help.xml, cancel.xml, exit.xml, operator.xml.
- Translate the universal command.
- Incorporate the new grammars into your VoiceXML application with the <grammar> element, for example,
<grammar src="path_to_file/help.xml" />.As described in Step 5: Localize the default system prompts, Voice Platform provides default prompts to play when events are not handled by the platform or application. You can create custom handlers instead.