TTS
Day 18: Text-to-Speech Converter
Convert text to speech using the Web Speech API. Choose a voice, adjust rate/pitch, then Play.
Ready.
How it works (short)
The script populates available voices (async), creates a SpeechSynthesisUtterance for the text, sets voice, rate, pitch and volume, and uses speechSynthesis.speak(). Pause/resume/stop use the API methods. Some browsers require a user gesture to start audio.