Skip to main content

Interface: SpeechOptions

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

Playback options for one spoken utterance.

Extended by​

Properties​

lang?​

optional lang: string

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

BCP-47 language tag, e.g. "en-US".


pitch?​

optional pitch: number

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

Voice pitch multiplier (1 = normal).


rate?​

optional rate: number

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

Speaking rate multiplier (1 = normal).


voice?​

optional voice: string

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

Name of a specific SpeechSynthesisVoice to use.


volume?​

optional volume: number

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

Output volume in the range [0, 1].