SpeechSynthesisWordBoundaryEventArgs class

定義語音合成文字界限事件的內容。

建構函式

SpeechSynthesisWordBoundaryEventArgs(number, number, string, number, number, SpeechSynthesisBoundaryType)

建立並初始化這個類別的實例。

屬性

audioOffset

指定音訊位移。

boundaryType

指定界限類型。

duration

指定持續時間,以刻度為單位, (100 奈秒) 。

text

指定文字界限事件的文字。

textOffset

指定文字位移。

wordLength

指定字長度

建構函式詳細資料

SpeechSynthesisWordBoundaryEventArgs(number, number, string, number, number, SpeechSynthesisBoundaryType)

建立並初始化這個類別的實例。

new SpeechSynthesisWordBoundaryEventArgs(audioOffset: number, duration: number, text: string, wordLength: number, textOffset: number, boundaryType: SpeechSynthesisBoundaryType)

參數

audioOffset

number

音訊位移。

duration

number

音訊持續時間。

text

string

文字。

wordLength

number

字組的長度。

textOffset

number

文字位移。

boundaryType
SpeechSynthesisBoundaryType

界限類型

屬性詳細資料

audioOffset

指定音訊位移。

number audioOffset

屬性值

number

音訊位移。

boundaryType

指定界限類型。

SpeechSynthesisBoundaryType boundaryType

屬性值

界限類型。

duration

指定持續時間,以刻度為單位, (100 奈秒) 。

number duration

屬性值

number

以 100 奈秒為單位的持續時間。

text

指定文字界限事件的文字。

string text

屬性值

string

文字。

textOffset

指定文字位移。

number textOffset

屬性值

number

文字位移。

wordLength

指定字長度

number wordLength

屬性值

number

字長度