ASRMENU
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
添加一个选项菜单,用户可以在播放消息的同时从其中进行选择。 此操作通常用于允许联系人提供信息,以指导如何处理交互。 例如,您的 Asrmenu 操作可能会这样说:要与客户经理说话,请说“销售”。 要获取技术支持,请说“支持”。 在这种情况下,根据联系人提供的信息,Asrmenu 操作将导致不同的分支。 Asrmenu 和 菜单 在用途和使用方面非常相似。 Asrmenu 允许呼叫者口头回应菜单选项以引导呼叫。 它还会将话语存储在可以用于其他目的脚本变量中。 ASR 操作也可以用于创建自定义的 ASR Asrmenu 操作中使用的消息可以是预先录制的音频文件、脚本中所提供值的文本到语音转换 (TTS) 呈现,或上述项目的组合。 ASR 操作只在为您的组织启用 ASR 时出现。 ASR 是一项可选功能。 请咨询您的客户代表以获取更多信息。 |
支持的脚本类型
|
|
| 电话 |
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
| 序列 |
定义操作播放的提示符。 提示可以是预先录制的 WAV 音频文件,也可以是文本到语音转换 如果提示为音频文件,请输入用双引号括起来的文件名。 例如,"greeting.wav"。 如果音频文件位于不同的文件夹中,请包含该文件的路径。 例如,如果脚本位于根文件夹中,而音频文件位于下两级子文件夹中,则输入 "Subfolder\Subfolder2\Audio-file.wav"。 如果脚本位于根目录下一级的子文件夹中,而音频文件位于同一级别的另一个子文件夹中,请输入 "\..\Subfolder\Audio-file.wav". 如果提示是文本到语音转换,请输入您希望 TTS "%您的帐户余额是""silence.wav" "${accountBalance}"
|
| 短语 |
使用此属性来记录提示包含的文本。 此属性并未由该脚本使用。 因为有些提示可能很复杂,并且包含多个片段,所以包含没有按照序列字段要求的格式编写的文本可能会很有帮助。 |
| 最低置信度 |
定义识别匹配的最低可接受置信度百分比。 如果识别百分比小于该值,则采用 OnNoConfidence 分支。 要进行更改,请输入一个 1 到 100 之间的整数。 对于小菜单,默认值为 40;对于大菜单,默认值为 50。 |
| 超时秒数 |
确定 IVR 重要信息 仅当提示完全结束后,计时器才会启动。 但是,系统设置了内置的两分钟(120 秒)的限制,包括提示的持续时间。 如果在某个操作过程中达到此限制,则任何活动中的提示都会中止,并且脚本会采用 OnError 分支。 因此,您应该了解提示的持续时间,并为该字段设置一个值,以确保该操作的活跃时间小于两分钟。 |
| 结果变量名称 | Determines the name of the variable that holds the recognized result of the contact's spoken or manually entered input. For example, if the prompt asked the contact to say or enter their date of birth, the result would be stored in the variable defined by this property. The default value is the name of the action + "Result" (for example, ASRDIGITSResult). If the contact provides spoken input and the ASR engine fails to find a match, this variable is not populated. Note that if the action has an OnDTMF branch, you must use a Capture action to pull a variable value out of the buffer (DTMF values are automatically stored in a buffer). |
| 信任变量名称 | Determines the name of the variable that holds the confidence percentage returned by the ASR engine. The default value is ASRConf. |
| 检测 DTMF |
允许您配置 IVR 脚本以处理口头以及手动输入的 DTMF 如果值为 True 如果值为False 在值模式下: 单击是以启用 DTMF 检测。 在表达式模式下:输入 True 启用 DTMF 检测。 由于此操作没有 OnDTMF 分支,Dtmf 值将存储在 ResultVarName 中指定的结果变量中。 |
| 清除数字 |
当联系人按下电话按键盘上的某个键时,生成的 DTMF 音会存储在缓冲区中。 当清除数字设置为 是/True 是默认值。 \t 在值模式下:单击否可启用。 在表达式模式下:输入 False 可启用。 |
| 数字间超时 | The amount of time after the contact enters a digit that the system waits to see if the contact enters another digit. You must create scripting logic to handle a timeout. |
| 内容类型 |
Specifies how the ASR engine should identify utterances provided by callers during this action. The ASR engine compares the caller's utterance to the values in the specified content type. If a match is detected, the engine returns the match and a percentage value indicating its confidence in the accuracy of the match. Choose one of the following from the drop-down: |
| 语法规则文件 |
允许您提供在 ContentType 属性中指定的语法规则文件 |
| 期限数字 | Allows you to specify a way for the contact to indicate they are done providing information by entering a terminator digit. The most common value is # (that is, the caller presses the pound key on their phone). The default TermDigits value is an at symbol ( @ ). |
| 最大位数 |
用户为该操作可提供的最大数字位数;例如,如果提示请求人员社会安全号码的后四位,请将此值设置为4。
默认值为 1 当达到最大数字值时,脚本将继续沿MaxDigits分支执行(如果已连接)。 |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
| 默认 | 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. |
| 终止器 | Path taken when the caller provides the value specified in the property. |
| 最大数字 | Path taken when the caller's input reaches the MaxDigits value. |
| NoConfidence | Path taken if the recognition percentage returned by the ASR engine is less than the MinConfidence value. |
| 超时 | Path taken if there is no response for the number of seconds specified. |
| 错误 | Path taken when there is an unexpected problem (for example, poor connectivity, syntax errors, and so forth). The _ERR variable should be populated with a condensed explanation of the problem. |
| OnInterDigitTimeout | Path taken when the time specified in the InterDigitTimeout property is exceeded during the caller's DTMF response to a prompt. |
| 添加自定义条件 |
Paths created and taken when connecting to secondary actions using Variable Branch Conditions. Click the ellipsis to open the |
配置自定义案例
通过使用集合编辑器窗口,您可以为操作中的选择设置自定义分支,并可选择为语音识别建立分支变量。
该选项目前在 Studio 中不可用。 要配置自定义案例,您必须使用 Desktop Studio。
脚本示例
这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。
Asrmenu 提供了一种轻松创建 ASR 驱动菜单系统的方法。 它使用常见的分支,例如 OnNoConfidence 和 OnTimeout,但也允许您为特定短语指定您自己的分支。
在此脚本中,Asrmenu操作使用自定义连接器,根据联系人可能发出的三种不同话语
联系人所说或输入的内容。来路由呼叫:Sales、Service 或 Repeat。这些值被定义为自定义连接器条件,用于识别联系人的应答。
第二个示例脚本使用号码捕获联系人的响应。系统会提示联系人说出与他们想要的选项对应的号码,例如说 1 以接通销售部门。
如果将 检测 DTMF 设置为启用,则不必在菜单上将变量路径拼写为 "one" 和 "1"。语音引擎会将单词 "one" 识别为分支条件值 1。脚本应如下所示:
提示和技巧
- 您可以从 Voiceparams 操作传递 languageLocale 变量,该变量设置该操作将检测的语言。
- DTMF 音存储在缓冲区中。 如果此操作包含 OnDTMF 或 OnDigits 分支,则必须使用 Capture 操作将 DTMF 值从缓冲区中拉出。
- 如果您希望捕获多个 DTMF 按下动作,此操作会在按下第一个 DTMF(包括 * 和 #)时立即采用 OnDTMF 分支。 在这种情况下,您必须使用 Capture 操作捕获多个按下动作。
- 如果缓冲区中存在任何 DMTF,且 ClearDigits 未设置为 True,则会立即执行 OnDTMF 分支,并需要执行 Capture 操作。