TextToSpeechSettingsModel
6 Jul 20261 minute to read
Interface for a class TextToSpeechSettings
Properties
inputText string
Specifies the text content to be converted into speech.
Accepts plain string input for synthesis.
language string
Specifies the language used for text-to-speech synthesis.
Accepts valid ISO language codes such as ‘en-US’, ‘fr-FR’, or ‘de-DE’.
speechPitch number
Specifies the pitch of the synthesized voice.
Accepts numeric values typically between 0 (low) and 2 (high).
speechRate number
Specifies the speaking rate of the synthesized voice.
Accepts numeric values typically between 0.1 (slow) and 10 (fast).
voice SpeechSynthesisVoice
Specifies the voice used for speech synthesis.
Must be a valid SpeechSynthesisVoice from speechSynthesis.getVoices().
volume number
Specifies the volume level of the synthesized voice.
Accepts numeric values between 0 (mute) and 1 (maximum).