包含有关文本到语音合成的结果的信息。 在版本 1.4.0 中添加。
成员
ResultId
语法:public const std::string & ResultId;
唯一的结果 ID。
原因
语法:public const ResultReason & Reason;
合成结果的原因。
AudioDuration
语法:public const std::chrono::milliseconds & AudioDuration;
合成音频的持续时间,仅对已完成的合成器有效。 在版本 1.21.0 中添加。
性能
语法:public const PropertyCollection & Properties;
其他 SpeechSynthesisResult 属性的集合。
SpeechSynthesisResult
语法:public inline explicit SpeechSynthesisResult ( SPXRESULTHANDLE hresult );
使用提供的句柄创建新实例。
参数
-
hresult
结果句柄。
GetAudioLength
语法:public inline uint32_t GetAudioLength ( );
获取合成音频的大小(以字节为单位)。
退货
合成音频的长度
GetAudioData
语法:public inline std::shared_ptr< std::vector< uint8_t > > GetAudioData ( );
获取合成的音频。
退货
合成的音频数据
运算符 SPXRESULTHANDLE
语法:public inline explicit operator SPXRESULTHANDLE ( );
显式转换运算符。
退货
句柄。
~SpeechSynthesisResult
语法:public inline ~SpeechSynthesisResult ( );
析构函数。