IRecognizeAction interface
辨識動作可讓您擷取語音辨識輸出,或從Skype使用者撥號鍵台收集數位。
- Extends
屬性
| 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