共用方式為


CallMediaRecognizeOptions interface

設定辨識作業的選項。

Extends

屬性

initialSilenceTimeoutInSeconds

提示之後等候第一個輸入的時間。

interruptCallMediaOperation

如果設定辨識可以禁止進入其他現有的佇列/目前處理要求。

interruptPrompt

判斷我們是否中斷提示並開始辨識。

operationCallbackUrl

設定回呼 URL,以覆寫 CreateCall/AnswerCall 為此作業所設定的預設回呼 URL。 此設定是個別動作。 如果未設定,則會使用 CreateCall/AnswerCall 所設定的預設回呼 URI。

operationContext

識別作業內容的值。

playPrompt

要播放以進行辨識的音訊來源。

playPrompts

要播放以進行辨識之音訊的清單來源。

stopCurrentOperations

繼承的屬性

abortSignal

可用來中止要求的訊號。

onResponse

每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。

requestOptions

建立和傳送此作業之 HTTP 要求時所使用的選項。

serializerOptions

覆寫串行化/取消串行化行為的選項。

tracingOptions

啟用追蹤時所使用的選項。

屬性詳細資料

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)[]

屬性值

stopCurrentOperations

警告

此 API 現已淘汰。

Not in use, instead use interruptCallMediaOperation for similar functionality

stopCurrentOperations?: boolean

屬性值

boolean

繼承的屬性詳細資料

abortSignal

可用來中止要求的訊號。

abortSignal?: AbortSignalLike

屬性值

繼承自 OperationOptions.abortSignal

onResponse

每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。

onResponse?: RawResponseCallback

屬性值

繼承自 OperationOptions.onResponse

requestOptions

建立和傳送此作業之 HTTP 要求時所使用的選項。

requestOptions?: OperationRequestOptions

屬性值

繼承自 OperationOptions.requestOptions

serializerOptions

覆寫串行化/取消串行化行為的選項。

serializerOptions?: SerializerOptions

屬性值

繼承自 OperationOptions.serializerOptions

tracingOptions

啟用追蹤時所使用的選項。

tracingOptions?: OperationTracingOptions

屬性值

繼承自 OperationOptions.tracingOptions