SpeechSynthesisCancellationDetails クラス

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

メンバー

理由

構文: public const CancellationReason & Reason;

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

ErrorCode

構文: public const CancellationErrorCode & ErrorCode;

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

ErrorDetails

構文: public const std::string ErrorDetails;

音声合成が失敗した場合のエラー メッセージ (Reason は 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 への共有ポインター。