類別 SpeechSynthesisWordBoundaryEventArgs

class SpeechSynthesisWordBoundaryEventArgs
  : public EventArgs

語音合成字邊界事件自變數的類別。 已在1.7.0版中新增。

成員

結果編號

語法:public const std::string & ResultId;

唯一的結果標識碼。已在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 ( );