Speech Synthesis
Text-to-Speech
An interface for generating speech through the SpeechSynthesis API: text, language, voice, rate, and pitch. The voices are those available on your system or browser, not a neural model belonging to the plugin.
Learning Objective
Try the effect of punctuation, rate, and voice on pronunciation, and understand the difference between a system engine and neural TTS.
Experiment
Audio is processed inside your browser and is not sent to the server. The microphone is opened only when you press it.
Experiment Details
Prerequisites
- A browser that supports speechSynthesis and a voice for the requested language (varies from device to device)
Inputs
Text you type.
Method
A SpeechSynthesisUtterance is created, lang, voice, rate, and pitch are set, then speak() is called. The voice list comes from getVoices().
Results
Immediate audio playback. SpeechSynthesis output cannot be recorded from the page, and MOS is not computed.
Charts
—
Scientific Interpretation
Whether an Arabic voice exists depends on the operating system; a warning appears if there is no voice for the language.
Questions for Reflection
- What is the difference between system TTS and neural TTS such as VITS?
- How does a question mark change the intonation (Prosody)?
References
Audio processing in the experiments takes place inside your browser. Audio, texts, and conversations are not saved on the server. Privacy Policy
