ASRCOMPILE

Allows you to compile custom grammar files for use in ASRAutomated Speech Recognition; allows contacts to respond to recorded voice prompts by speaking, pressing keys on their phone, or a combination of both.-enabled IVRInteractive Voice Response; an automated phone menu that allows callers to interact through voice commands, key inputs, or both, to obtain information, route an inbound voice call, or both. scripts.

Grammar files are typically written in XML and saved as .grxml files. The Nuance ASR engine used by NICE inContact performs optimally with grammar files that are in .gram format. ASRCOMPILE provides a convenient way for you to compile your .grxml files into .gram files.

ASRCOMPILE is not used in production scripts, but rather, in a special use script that is run on an occasional or as-needed basis. When the script is run, a job is sent to the ASR grammar service via an HTTP request. The grammar service performs the request and then uploads the result to the location where your other NICE inContact are stored.

This action can be used in conjunction with ASRSQL to create a compiled grammar file from a database.

ASR actions appear only in the Framework tab, and only if ASR is enabled for your . ASR is an optional feature. Ask your account manager for more information.

Supported Script Types

Phone

Properties

GrammarFileName
The name of the grammar (.grxml) file you want to compile. You must upload this file in Studio prior to processing it with ASRCOMPILE. The newly-compiled file will have the same name, but with a .gram extension. After processing, the new file is stored with your other Studio files.
ResultVariable
Allows you to name a variable to be populated with the text of the output. If there is a problem with the source .grxml file, the variable is populated with information about the error.

Branches

Default
Branch taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the other branches are not defined.
OnError
Branch taken if there is a problem with the grammar file.

Phone Script Example Using ASRCOMPILE

In this sample script, ASRCOMPILE is used to compile the grammar file. Success results in a generated grammar file, which can be used by your ASR-enabled IVR. If there is a problem with the source file, or if a processing error occurs, the script follows the OnError branch. In either case, success or failure, the script terminates with the END action.

Would you like to download this script?