CallMediaRecognizeSpeechOrDtmfOptions interface
語音或 Dtmf 的辨識組態
- Extends
屬性
| end |
當使用者停止說話和 cogservice 傳送回應時,結束無聲的長度。 |
| inter |
DTMF 輸入之間等候的時間,以停止辨識。 |
| kind | |
| max |
要收集的 DTMF 音調數目上限。 |
| speech |
要辨識的語音語言,如果未設定預設值,則會 en-US |
| speech |
部署自定義模型的端點。 |
| stop |
將會停止辨識的音調清單。 |
繼承的屬性
| abort |
可用來中止要求的訊號。 |
| initial |
提示之後等候第一個輸入的時間。 |
| interrupt |
如果設定辨識可以禁止進入其他現有的佇列/目前處理要求。 |
| interrupt |
判斷我們是否中斷提示並開始辨識。 |
| on |
每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。 |
| operation |
設定回呼 URL,以覆寫 CreateCall/AnswerCall 為此作業所設定的預設回呼 URL。 此設定是個別動作。 如果未設定,則會使用 CreateCall/AnswerCall 所設定的預設回呼 URI。 |
| operation |
識別作業內容的值。 |
| play |
要播放以進行辨識的音訊來源。 |
| play |
要播放以進行辨識之音訊的清單來源。 |
| request |
建立和傳送此作業之 HTTP 要求時所使用的選項。 |
| serializer |
覆寫串行化/取消串行化行為的選項。 |
| stop |
|
| tracing |
啟用追蹤時所使用的選項。 |
屬性詳細資料
endSilenceTimeoutInSeconds
當使用者停止說話和 cogservice 傳送回應時,結束無聲的長度。
endSilenceTimeoutInSeconds?: number
屬性值
number
interToneTimeoutInSeconds
DTMF 輸入之間等候的時間,以停止辨識。
interToneTimeoutInSeconds?: number
屬性值
number
kind
kind: "callMediaRecognizeSpeechOrDtmfOptions"
屬性值
"callMediaRecognizeSpeechOrDtmfOptions"
maxTonesToCollect
要收集的 DTMF 音調數目上限。
maxTonesToCollect?: number
屬性值
number
speechLanguage
要辨識的語音語言,如果未設定預設值,則會 en-US
speechLanguage?: string
屬性值
string
speechRecognitionModelEndpointId
部署自定義模型的端點。
speechRecognitionModelEndpointId?: string
屬性值
string
stopDtmfTones
繼承的屬性詳細資料
abortSignal
可用來中止要求的訊號。
abortSignal?: AbortSignalLike
屬性值
initialSilenceTimeoutInSeconds
提示之後等候第一個輸入的時間。
initialSilenceTimeoutInSeconds?: number
屬性值
number
interruptCallMediaOperation
如果設定辨識可以禁止進入其他現有的佇列/目前處理要求。
interruptCallMediaOperation?: boolean
屬性值
boolean
interruptPrompt
onResponse
每次從伺服器收到回應時,要呼叫的函式,同時執行要求的作業。 可以多次呼叫。
onResponse?: RawResponseCallback
屬性值
operationCallbackUrl
設定回呼 URL,以覆寫 CreateCall/AnswerCall 為此作業所設定的預設回呼 URL。 此設定是個別動作。 如果未設定,則會使用 CreateCall/AnswerCall 所設定的預設回呼 URI。
operationCallbackUrl?: string
屬性值
string
operationContext
playPrompt
要播放以進行辨識的音訊來源。
playPrompt?: FileSource | TextSource | SsmlSource
屬性值
playPrompts
要播放以進行辨識之音訊的清單來源。
playPrompts?: (FileSource | TextSource | SsmlSource)[]
屬性值
(FileSource | TextSource | SsmlSource)[]
requestOptions
建立和傳送此作業之 HTTP 要求時所使用的選項。
requestOptions?: OperationRequestOptions
屬性值
serializerOptions
覆寫串行化/取消串行化行為的選項。
serializerOptions?: SerializerOptions
屬性值
stopCurrentOperations
警告
此 API 現已淘汰。
Not in use, instead use interruptCallMediaOperation for similar functionality
stopCurrentOperations?: boolean
屬性值
boolean
tracingOptions
啟用追蹤時所使用的選項。
tracingOptions?: OperationTracingOptions