Skip to main content

Interface: SpeechBoundaryInfo

Defined in: src/audio/speechSynthesizer.ts:39

A word- or sentence-boundary event raised while an utterance is spoken. Fields mirror the Web Speech API SpeechSynthesisEvent.

Properties​

charIndex​

charIndex: number

Defined in: src/audio/speechSynthesizer.ts:43

Character index into the spoken text the engine has reached.


charLength?​

optional charLength: number

Defined in: src/audio/speechSynthesizer.ts:45

Length of the current chunk, when the engine reports it.


elapsedTime​

elapsedTime: number

Defined in: src/audio/speechSynthesizer.ts:47

Milliseconds elapsed since the utterance started.


name​

name: string

Defined in: src/audio/speechSynthesizer.ts:41

Boundary kind reported by the engine ("word" or "sentence").