ASRDIGITS

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

支持的脚本类型

Icon of purple telephone handset

电话

输入属性

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

属性

说明

添加说明文字

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

序列

定义操作播放的提示符。 提示可以是预先录制的 WAV 音频文件,也可以是文本到语音转换Closed 允许用户将录制的提示作为文本 Enter,并使用计算机生成的语音来说话该内容。(TTS)。

如果提示为音频文件,请输入用双引号括起来的文件名。 例如,"greeting.wav"。 如果音频文件位于不同的文件夹中,请包含该文件的路径。 例如,如果脚本位于根文件夹中,而音频文件位于下两级子文件夹中,则输入 "Subfolder\Subfolder2\Audio-file.wav"。 如果脚本位于根目录下一级的子文件夹中,而音频文件位于同一级别的另一个子文件夹中,请输入 "\..\Subfolder\Audio-file.wav".

如果提示是文本到语音转换,请输入您希望 TTSClosed 允许用户将录制的提示作为文本 Enter,并使用计算机生成的语音来说话该内容。 服务读出的文本。 每个片段必须用双引号括起来,并包含一个字符串引用字符,以标识其信息类型。 例如:

"%您的帐户余额是""silence.wav" "${accountBalance}"

For more information about formatting prompts in this property, including the string reference prefix characters to use, see the Prompts page. Some actions with the Sequence property have access to the sequence editor, which is a graphical interface you can use to create prompts. This action doesn't access this editor. However you can use the sequence editor from an action that supports it, such as Play. Add Play to your script and create your prompt sequence. Paste the sequence text from the Sequence field in Play into this action and then delete Play.

短语

使用此属性来记录提示包含的文本。 此属性并未由该脚本使用。 因为有些提示可能很复杂,并且包含多个片段,所以包含没有按照序列字段要求的格式编写的文本可能会很有帮助。

高置信度 When the ASR engine recognizes a phrase spoken by a caller, it also returns a percentage that indicates how confident it is in a voice recognition match. The script compares this recognition percentage to the value in this property, and if the percentage is equal or greater to the value, the OnHighConfidence branch is taken. Enter a whole number between the MinConfidence value and 100.

默认值为 72。

最低置信度 Defines the minimum acceptable confidence percentage for a recognition match. If the recognition percentage is between this value and the HighConfidence value, the OnMedConfidence branch is taken, which typically lets the contact confirm the ASR understanding of an utterance. If the recognition percentage is less than this value, the OnNoConfidence branch is taken. Enter a whole number between 1 and the HighConfidence value.

默认值为 51。

超时秒数

确定 IVRClosed 交互式语音应答。联系人通过语音或按键输入使用的自动电话菜单,用于获取信息、路由呼入语音通话,或兼具两者。 在执行 OnTimeout 分支之前等待输入(语音输入或按键输入)的时长。 这是在线上完全沉默的阈值。 默认值为 10(秒)。 如需更改,请输入一个整数。

重要信息 仅当提示完全结束后,计时器才会启动。 但是,系统设置了内置的两分钟(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 脚本以处理口头以及手动输入的 DTMFClosed 是当联系人按下电话键盘上某个钥匙时产生的信令音。 输入。

如果值为 True 或 是,则同时接受语音和 DTMF 输入。 如果联系人按下 DTMF 数字,则脚本会立即停止任何正在进行的提示序列,并采用 OnDTMF 分支。 在该操作持续期间,任何口头表达都不会被考虑。

如果值为False或No,则即使联系人按下某个键,系统也不会识别 DTMF 输入。 尽管在操作期间按下的任何 DTMF 数字都保存在 DTMF 缓冲区中,但该操作仍将采用 NoConfidence 分支。

在值模式下: 单击是以启用 DTMF 检测。

在表达式模式下:输入 True 启用 DTMF 检测。

由于此操作没有 OnDTMF 分支,Dtmf 值将存储在 ResultVarName 中指定的结果变量中。

清除数字

当联系人按下电话按键盘上的某个键时,生成的 DTMF 音会存储在缓冲区中。 当清除数字设置为 是 或 True时,该缓冲区将在此操作开始时被清除。 如果设置为 False 并且 DTMF 铃声被转移到缓冲区中的此操作,则会立即检测到 DTMF 铃声。 该操作随后会调用 OnDigit 或 OnDTMF 分支,即使按键与较早的操作相关联。

是/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.
最小位数 Determines the minimum number of digits that must be received by this action for the script to continue. For example, if the prompt asks for the contact's social security number, this value should be set to 9. The default value is 1. If the prompt requests a response that always has the same number of digits, set this property to the same value as MaxDigits.
最大位数

用户为该操作可提供的最大数字位数;例如,如果提示请求人员社会安全号码的后四位,请将此值设置为4。 默认值为 11。 如果提示需要一个终止符(例如井号或 #),则必须在 MaxDigits 值中予以说明。 例如,如果录制的 Menu 消息要求输入社会安全号码的后 4 位数字,然后输入井号键,请将该值设置为 5。

当达到最大数字值时,脚本将继续沿MaxDigits分支执行(如果已连接)。

Term Digit 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 ( @ ).

结果分支条件

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

条件

说明

默认 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.
HighConfidence Path taken if confidence levels are above the value set in the High Confidence property.
MedConfidence Branch taken if the recognition percentage returned by the ASR engine is between the HighConfidence value and the MinConfidence value. This branch is often used to allow a caller to confirm the information provided using an ASRYESNO action.
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.
最大数字 Path taken when the caller's input reaches the MaxDigits value.
终止器 Path taken when the caller provides the value specified in the property.
内部数字超时 Path taken when the time specified in the InterDigitTimeout property is exceeded during the caller's DTMF response to a prompt.

提示和技巧

  • 您可以从 Voiceparams 操作中传递 languageLocale 变量,该变量设置操作将检测的语言。
  • 在读出数字时,“负数”将被硬编码。
  • 在读出数字时,“小数点”将被硬编码。
  • 有关更多信息,请参阅 ASR 概述。
  • DTMF 音存储在缓冲区中。 如果此操作包含 OnDTMF 或 OnDigits 分支,则必须使用 Capture 操作将 DTMF 值从缓冲区中拉出。
  • 如果您希望捕获多个 DTMF 按下动作,此操作会在按下第一个 DTMF(包括 * 和 #)时立即采用 OnDTMF 分支。 在这种情况下,您必须使用 Capture 操作捕获多个按下动作。
  • 如果缓冲区中存在任何 DMTF,且 ClearDigits 未设置为 True,则会立即执行 OnDTMF 分支,并需要执行 Capture 操作。

脚本示例

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

在此示例脚本中,呼叫者的账号在呼叫连接到坐席之前获取。 使用 Asrdigits 操作,IVR 请求呼叫者输入一个账号,该账号最少为六位,最多为十二位数字。 如果识别百分比达到或超过 HighConfidence 值,则会播放一条消息,且呼叫将路由到坐席。 如果提供了 TermDigit 值,或如果 InterDigitTimeout 发生,则呼叫也会遵循此路径。

如果系统无法确定输入内容(即识别百分比介于HighConfidence和MinConfidence值之间),则OnMedConfidence分支将使用Asryesno操作播放捕获的输入内容,并要求呼叫者以“是”或“否”的方式进行确认。 “是”回应将导致呼叫进入 OnHighConfidence 分支。 无响应将使呼叫者返回到 Asrdigits 操作,以重新输入号码。 三次尝试失败后,Loop 操作将要求联系人回呼,然后挂断呼叫。 此呼叫流程通过 Asrdigits 与 Asryesno 之间双向的连接来启用。

如果输入不可能正确(例如,呼叫者给出非数字回应),系统将采用 OnNoConfidence 分支,并使呼叫者返回 Asrdigits 操作以重新输入数字。 三次尝试失败后,Loop 操作将要求联系人回呼,并挂断呼叫。

使用 ASR Digits 操作的示例脚本

下载此脚本。