SpeechSynthesisWordBoundaryEventArgs 類別

語音合成字界限事件引數的類別。

注意

已在 1.21.0 版中更新。

內部使用的建構函式。

繼承
builtins.object
SpeechSynthesisWordBoundaryEventArgs

建構函式

SpeechSynthesisWordBoundaryEventArgs(handle: c_void_p)

參數

名稱 Description
handle
必要

屬性

audio_offset

Word刻度中的界限音訊位移。 一刻度代表 100 毫微秒,即一千萬分之一秒。

boundary_type

Word界限類型。

注意

已在 1.21.0 版中新增。

duration

音訊的時間持續時間。

注意

已在 1.21.0 版中新增。

result_id

合成結果唯一識別碼。

注意

已在 1.25.0 版中新增。

text

文字。

注意

已在 1.21.0 版中新增。

text_offset

Word字元的界限文字位移。

word_length

Word字元的界限字長度。