ASRCOMPILE
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
允许您编译自定义语法规则文档,以在支持 ASR Asrcompile 并不适合用于生产脚本中。 相反,您应该创建一个特殊用途的脚本,以便偶尔或根据需要运行。 运行脚本时,将通过 HTTP 请求向 ASR 语法规则服务发送作业。 语法规则服务执行请求并将结果上传到存储您其他Studio文档的位置(位于NiCE CXone中)。 该操作可以与Asrsql结合使用,以从数据库创建已编译的语法规则文件。 ASR 操作只在为您的组织启用 ASR 时出现。 ASR 是一项可选功能。 请咨询您的客户代表以获取更多信息。 |
支持的脚本类型
|
|
| 电话 |
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
| 语法规则文件名称 | 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 来编译语法规则文件。 成功会生成一个语法规则文件,该文件可供启用 ASR
自动语音识别。允许联系人通过语音、按电话按键或两者结合的方式来响应提示。 的 IVR
交互式语音应答。联系人通过语音或按键输入使用的自动电话菜单,用于获取信息、路由呼入语音通话,或兼具两者。 使用。 如果源文件存在问题,或出现处理错误,则脚本将按照 OnError 分支执行。 无论是成功还是失败,脚本都会通过 END 操作终止。