VoiceProfileCancellationDetails class

Extends

屬性

ErrorCode

如果辨識失敗,則為錯誤碼。 已在 1.1.0 版中新增。

errorDetails

如果辨識失敗,請提供發生錯誤的詳細資料。

reason

辨識已取消的原因。

方法

fromResult(VoiceProfileResult)

為已取消的 VoiceProfileResult 建立 VoiceProfileCancellationDetails 物件的實例。

屬性詳細資料

ErrorCode

如果辨識失敗,則為錯誤碼。 已在 1.1.0 版中新增。

CancellationErrorCode ErrorCode

屬性值

表示錯誤原因的錯誤碼。

errorDetails

如果辨識失敗,請提供發生錯誤的詳細資料。

string errorDetails

屬性值

string

String,表示錯誤詳細資料。

reason

辨識已取消的原因。

CancellationReason reason

屬性值

指定取消的原因。

方法詳細資料

fromResult(VoiceProfileResult)

為已取消的 VoiceProfileResult 建立 VoiceProfileCancellationDetails 物件的實例。

static function fromResult(result: VoiceProfileResult): VoiceProfileCancellationDetails

參數

result
VoiceProfileResult

已取消的結果。

傳回

正在建立的取消詳細資料物件。