ASRCOMPILE

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

支持的脚本类型

Icon of purple telephone handset

电话

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

语法规则文件名称 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.
结果变量 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.

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

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.

脚本示例

这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。

在此示例脚本中,使用 Asrcompile 来编译语法规则文件。 成功会生成一个语法规则文件,该文件可供启用 ASRClosed 自动语音识别。允许联系人通过语音、按电话按键或两者结合的方式来响应提示。 的 IVRClosed 交互式语音应答。联系人通过语音或按键输入使用的自动电话菜单,用于获取信息、路由呼入语音通话,或兼具两者。 使用。 如果源文件存在问题,或出现处理错误,则脚本将按照 OnError 分支执行。 无论是成功还是失败,脚本都会通过 END 操作终止。

使用 ASR Compile 操作的示例脚本

下载此脚本。