SpeechSynthesisWordBoundaryEventArgs class

Defines contents of speech synthesis word boundary event.

Constructors

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

Creates and initializes an instance of this class.

Properties

audioOffset

Specifies the audio offset.

boundaryType

Specifies the boundary type.

duration

Specifies the duration, in ticks (100 nanoseconds).

text

Specifies the text of the word boundary event.

textOffset

Specifies the text offset.

wordLength

Specifies the word length

Constructor Details

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

Creates and initializes an instance of this class.

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

Parameters

audioOffset

number

The audio offset.

duration

number

The audio duration.

text

string

The text.

wordLength

number

The length of the word.

textOffset

number

The text offset.

boundaryType
SpeechSynthesisBoundaryType

The boundary type

Property Details

audioOffset

Specifies the audio offset.

number audioOffset

Property Value

number

the audio offset.

boundaryType

Specifies the boundary type.

SpeechSynthesisBoundaryType boundaryType

Property Value

the boundary type.

duration

Specifies the duration, in ticks (100 nanoseconds).

number duration

Property Value

number

Duration in 100 nanosecond increments.

text

Specifies the text of the word boundary event.

string text

Property Value

string

the text.

textOffset

Specifies the text offset.

number textOffset

Property Value

number

the text offset.

wordLength

Specifies the word length

number wordLength

Property Value

number

the word length