SpeechSynthesisCancellationDetails 類別

包含為何取消結果的詳細資訊。

繼承
builtins.object
SpeechSynthesisCancellationDetails

建構函式

SpeechSynthesisCancellationDetails(result: SpeechSynthesisResult = None, stream: AudioDataStream = None)

參數

名稱 Description
result
預設值: None
stream
預設值: None

屬性

error_code

如果語音合成失敗,錯誤碼 (Reason 會設定為 Error) 。 如果 Reason 不是 Error,ErrorCode 會設定為 NoError。

error_details

如果語音合成失敗,錯誤訊息 (Reason 會設定為 Error)

reason

取消結果的原因。