Class SpeechSynthesisCancellationDetails
包含有关取消结果的原因的详细信息。 在版本 1.4.0 中添加。
成员
原因
语法:public const CancellationReason & Reason;
取消结果的原因。
ErrorCode
语法:public const CancellationErrorCode & ErrorCode;
如果语音合成失败(原因 设置为“错误”),则错误代码。 如果 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 的共享指针。