ConversationTranscriptionCanceledEventArgs class

定義 RecognitionErrorEvent 的內容。

Extends

CancellationEventArgsBase

建構函式

ConversationTranscriptionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, number, string)

建立並初始化這個類別的實例。

屬性

errorCode

發生失敗作業時的錯誤碼。

errorDetails

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

offset

表示訊息位移

reason

辨識已取消的原因。

sessionId

表示會話識別碼。

建構函式詳細資料

ConversationTranscriptionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, number, string)

建立並初始化這個類別的實例。

new ConversationTranscriptionCanceledEventArgs(reason: CancellationReason, errorDetails: string, errorCode: CancellationErrorCode, offset?: number, sessionId?: string)

參數

reason
CancellationReason

取消原因。

errorDetails

string

如果有,錯誤詳細資料。

offset

number

位移。

sessionId

string

會話識別碼。

屬性詳細資料

errorCode

發生失敗作業時的錯誤碼。

CancellationErrorCode errorCode

屬性值

表示錯誤原因的錯誤碼。

errorDetails

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

string errorDetails

屬性值

string

String,表示錯誤詳細資料。

offset

表示訊息位移

number offset

屬性值

number

reason

辨識已取消的原因。

CancellationReason reason

屬性值

指定取消的原因。

sessionId

表示會話識別碼。

string sessionId

屬性值

string

表示會話識別碼。