次の方法で共有


class SpeechSynthesisCancellationDetails

結果が取り消された理由に関する詳細情報が含まれます。 バージョン 1.4.0 で追加されました。

メンバー

理由

構文: public const CancellationReason & Reason;

結果が取り消された理由。

エラーコード

構文: public const CancellationErrorCode & ErrorCode;

音声合成が失敗した場合のエラー コード (理由 が Error に設定されています)。 Reason が Error でない場合、ErrorCode は NoError に設定されます。

ErrorDetails

構文: public const std::string ErrorDetails;

音声合成が失敗した場合のエラー メッセージ (理由 が [エラー] に設定されています)。

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 への共有ポインター。