課程語音合成刪除細節

包含為何取消結果的詳細資訊。 已在1.4.0版中新增。

成員

原因

語法:public const CancellationReason & Reason;

取消結果的原因。

錯誤代碼

語法:public const CancellationErrorCode & ErrorCode;

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

ErrorDetails

語法:public const std::string ErrorDetails;

錯誤訊息,以防語音合成失敗(原因 設定為 Error)。

FromResult

語法:public inline static std::shared_ptr< SpeechSynthesisCancellationDetails > FromResult ( std::shared_ptr< SpeechSynthesisResult > result );

為取消的 SpeechSynthesisResult 建立 SpeechSynthesisCancellationDetails 對象的實例。

參數

  • result 取消的結果。

退貨

CancellationDetails 的共享指標。

FromStream

語法:public inline static std::shared_ptr< SpeechSynthesisCancellationDetails > FromStream ( std::shared_ptr< AudioDataStream > stream );

為取消的 SpeechSynthesisResult 建立 SpeechSynthesisCancellationDetails 對象的實例。

參數

  • stream 已取消的音訊數據流。

退貨

CancellationDetails 的共享指標。