ASRSQL
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
允许您从组织所使用的 SQL 数据库创建自定义语法规则文件。 例如,您可能需要根据说出的部件号或员工姓氏来为客户规划路线。语法规则文档采用 GRXML 格式。 Asrsql 不用于生产性脚本,而是用于偶尔或按需运行的专用脚本。 当脚本运行时,该操作将使用 DB Connector 连接到您的外部数据库,并根据您提供的查询提取一个值文件。 该操作通常与 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. |
| 拼写规则项 |
Formats the detected utterance to each individual character of what was spoken instead of the whole word. This would be used when pulling account numbers or part numbers so each character is individual. The formatting adds a space between each of the characters. For example, ABC12345 would be A B C 1 2 3 4 5.
The default is 在值模式下: 单击否,禁用。 在表达式模式下: 输入假,禁用。 |
| 输出是否已格式化 |
Formats the GRXML file so it is easier to read. It is formatted similarly to XML. The default is 在值模式下: 单击否,禁用。 在表达式模式下: 输入假,禁用。 |
| SQL 查询 |
获取用于构建 GRXML 文件的数据的 SQL。 SELECT 语句的第一个返回值将是 ASR 引擎检测以查找匹配项的话语。 例如:
SELECT[Name] ,[Address] ,[Phone_Number] FROM [dbo].[User_Table] WHERE[ID]>0 在上例中,SELECT 中的第一个返回值是Name,因此该语法规则的构建可能是为了检测人员的姓名。 如果存在匹配项,则对应的姓名、地址和电话号码将与该记录一起返回。 |
| 超时秒数 |
确定 IVR 重要信息 仅当提示完全结束后,计时器才会启动。 但是,系统设置了内置的两分钟(120 秒)的限制,包括提示的持续时间。 如果在某个操作过程中达到此限制,则任何活动中的提示都会中止,并且脚本会采用 OnError 分支。 因此,您应该了解提示的持续时间,并为该字段设置一个值,以确保该操作的活跃时间小于两分钟。 |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
| 默认 | 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. |
| NoRecords | Path taken when the query submitted to the database does not return results. |
| 错误 | 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 if there is no response for the number of seconds specified. |
提示与技巧
您可以从 Voiceparams 操作传递 languageLocale 变量,该变量设置此操作将检测的语言。