IRecognizeAction interface
识别操作允许捕获语音识别输出或从 Skype 用户拨号盘收集数字。
- 扩展
属性
| action | 操作类型。 |
| barge |
指示是否允许 Skype 用户在提示完成之前输入选择。 默认值为 true。 |
| choices | 用于听写可识别选项的 RecognitionOption 对象列表。 选项可以是语音或拨号盘数字。 必须指定 collectDigits 或 选项,但不能同时指定两者。 |
| collect |
CollectDigits 将导致从 Skype 用户拨号盘收集数字作为识别的一部分。 必须指定 collectDigits 或 选项,但不能同时指定两者。 |
| culture | 区域性是一个枚举,指示语音识别器应使用哪种区域性。 默认值为“en-US”。 目前支持的唯一区域性是 en-US。 |
| initial |
在开始录制操作之前允许的最大初始静音。 默认值为 5 秒。 |
| interdigit |
拨号盘数字之间的最大允许时间。 默认值为 1 秒。 |
| operation |
用于将结果与 ConversationResult 中的操作相关联。 |
| play |
识别开始前要播放的提示。 |
属性详细信息
action
操作类型。
action: string
属性值
string
bargeInAllowed
指示是否允许 Skype 用户在提示完成之前输入选择。 默认值为 true。
bargeInAllowed?: boolean
属性值
boolean
choices
用于听写可识别选项的 RecognitionOption 对象列表。 选项可以是语音或拨号盘数字。 必须指定 collectDigits 或 选项,但不能同时指定两者。
choices?: IRecognitionChoice[]
属性值
collectDigits
CollectDigits 将导致从 Skype 用户拨号盘收集数字作为识别的一部分。 必须指定 collectDigits 或 选项,但不能同时指定两者。
collectDigits?: ICollectDigits
属性值
culture
区域性是一个枚举,指示语音识别器应使用哪种区域性。 默认值为“en-US”。 目前支持的唯一区域性是 en-US。
culture?: string
属性值
string
initialSilenceTimeoutInSeconds
在开始录制操作之前允许的最大初始静音。 默认值为 5 秒。
initialSilenceTimeoutInSeconds?: number
属性值
number
interdigitTimeoutInSeconds
拨号盘数字之间的最大允许时间。 默认值为 1 秒。
interdigitTimeoutInSeconds?: number
属性值
number
operationId
用于将结果与 ConversationResult 中的操作相关联。
operationId: string
属性值
string