SpeechSynthesisWordBoundaryEventArgs class

Definiuje zawartość zdarzenia granicy słowa syntezy mowy.

Konstruktory

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

Tworzy i inicjuje wystąpienie tej klasy.

Właściwości

audioOffset

Określa przesunięcie audio.

boundaryType

Określa typ granicy.

duration

Określa czas trwania w kleszczach (100 nanosekund).

text

Określa tekst zdarzenia granicy słowa.

textOffset

Określa przesunięcie tekstu.

wordLength

Określa długość słowa

Szczegóły konstruktora

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

Tworzy i inicjuje wystąpienie tej klasy.

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

Parametry

audioOffset

number

Przesunięcie audio.

duration

number

Czas trwania dźwięku.

text

string

Tekst.

wordLength

number

Długość słowa.

textOffset

number

Przesunięcie tekstu.

boundaryType
SpeechSynthesisBoundaryType

Typ granicy

Szczegóły właściwości

audioOffset

Określa przesunięcie audio.

number audioOffset

Wartość właściwości

number

przesunięcie audio.

boundaryType

Określa typ granicy.

SpeechSynthesisBoundaryType boundaryType

Wartość właściwości

typ granicy.

duration

Określa czas trwania w kleszczach (100 nanosekund).

number duration

Wartość właściwości

number

Czas trwania w 100 nanosekundach przyrostowych.

text

Określa tekst zdarzenia granicy słowa.

string text

Wartość właściwości

string

tekst.

textOffset

Określa przesunięcie tekstu.

number textOffset

Wartość właściwości

number

przesunięcie tekstu.

wordLength

Określa długość słowa

number wordLength

Wartość właściwości

number

długość słowa