ASRCOMPILE

This help page is for Studio. This information is also available for Desktop Studio.

Supported Script Types

Icon of purple telephone handset

Phone

Input Properties

These properties define data that the action uses when executing.

Property

Description

Add Caption

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon.

Grammar File Name 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.
Result Variable The variable name that is created and holds returned information. For example, if the contact enters their account number as 123456, then the variable holds 123456.

Result Branch Conditions

Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.

Condition

Description

Default

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.

Error

Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.

Script Example

This is an example to show how this action can be used in scripts. It is not intended to be a complete script. Additional scripting may be required.

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 ASRClosed Automatic Speech Recognition. Allows contacts to respond to prompts by speaking, pressing phone keys, or both.-enabled IVRClosed Interactive Voice Response. Automated phone menu contacts use via voice or key inputs to obtain information, route an inbound voice call, or both.. 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.

Example script using the ASR Compile action

Download this script.