Class SpeechSynthesisWordBoundaryEventArgs
class SpeechSynthesisWordBoundaryEventArgs
: public EventArgs
语音合成单词边界事件参数的类。 在版本 1.7.0 中添加。
成员
ResultId
语法:public const std::string & ResultId;
唯一的结果 ID。在版本 1.25.0 中添加。
AudioOffset
语法:public uint64_t AudioOffset;
Word 边界音频偏移量。
持续时间
语法:public const std::chrono::milliseconds & Duration;
音频的持续时间。 在版本 1.21.0 中添加。
TextOffset
语法:public uint32_t TextOffset;
字边界文本偏移量。
WordLength
语法:public uint32_t WordLength;
字边界字长度。
文本
语法:public const std::string & Text;
文本。 在版本 1.21.0 中添加。
BoundaryType
语法:public const SpeechSynthesisBoundaryType & BoundaryType;
Word 边界类型。 在版本 1.21.0 中添加。
SpeechSynthesisWordBoundaryEventArgs
语法:public inline explicit SpeechSynthesisWordBoundaryEventArgs ( SPXEVENTHANDLE hevent );
构造 函数。
参数
-
hevent
事件句柄
~SpeechSynthesisWordBoundaryEventArgs
语法:public inline virtual ~SpeechSynthesisWordBoundaryEventArgs ( );