CallMediaRecognizeOptions interface
設定辨識作業的選項。
- Extends
屬性
| initial |
提示之後等候第一個輸入的時間。 |
| interrupt |
如果設定辨識可以禁止進入其他現有的佇列/目前處理要求。 |
| interrupt |
判斷我們是否中斷提示並開始辨識。 |
| operation |
設定回呼 URL,以覆寫 CreateCall/AnswerCall 為此作業所設定的預設回呼 URL。 此設定是個別動作。 如果未設定,則會使用 CreateCall/AnswerCall 所設定的預設回呼 URI。 |
| operation |
識別作業內容的值。 |
| play |
要播放以進行辨識的音訊來源。 |
| play |
要播放以進行辨識之音訊的清單來源。 |
| stop |
繼承的屬性
| abort |
可用來中止要求的訊號。 |
| on |
每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。 |
| request |
建立和傳送此作業之 HTTP 要求時所使用的選項。 |
| serializer |
覆寫串行化/取消串行化行為的選項。 |
| tracing |
啟用追蹤時所使用的選項。 |
屬性詳細資料
initialSilenceTimeoutInSeconds
提示之後等候第一個輸入的時間。
initialSilenceTimeoutInSeconds?: number
屬性值
number
interruptCallMediaOperation
如果設定辨識可以禁止進入其他現有的佇列/目前處理要求。
interruptCallMediaOperation?: boolean
屬性值
boolean
interruptPrompt
判斷我們是否中斷提示並開始辨識。
interruptPrompt?: boolean
屬性值
boolean
operationCallbackUrl
設定回呼 URL,以覆寫 CreateCall/AnswerCall 為此作業所設定的預設回呼 URL。 此設定是個別動作。 如果未設定,則會使用 CreateCall/AnswerCall 所設定的預設回呼 URI。
operationCallbackUrl?: string
屬性值
string
operationContext
識別作業內容的值。
operationContext?: string
屬性值
string
playPrompt
要播放以進行辨識的音訊來源。
playPrompt?: FileSource | TextSource | SsmlSource
屬性值
playPrompts
要播放以進行辨識之音訊的清單來源。
playPrompts?: (FileSource | TextSource | SsmlSource)[]
屬性值
(FileSource | TextSource | SsmlSource)[]
stopCurrentOperations
警告
此 API 現已淘汰。
Not in use, instead use interruptCallMediaOperation for similar functionality
stopCurrentOperations?: boolean
屬性值
boolean
繼承的屬性詳細資料
abortSignal
onResponse
每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。
onResponse?: RawResponseCallback
屬性值
繼承自 OperationOptions.onResponse
requestOptions
建立和傳送此作業之 HTTP 要求時所使用的選項。
requestOptions?: OperationRequestOptions
屬性值
繼承自 OperationOptions.requestOptions
serializerOptions
覆寫串行化/取消串行化行為的選項。
serializerOptions?: SerializerOptions
屬性值
繼承自 OperationOptions.serializerOptions
tracingOptions
啟用追蹤時所使用的選項。
tracingOptions?: OperationTracingOptions
屬性值
繼承自 OperationOptions.tracingOptions