Speech Synthesis in JavaScript
Convert text to speech
BeginnerBrowser APIExample 12 of 15
speech-synthesis.js
1const utterance = new SpeechSynthesisUtterance('Hello World');2speechSynthesis.speak(utterance);
Output
// Speaks "Hello World"
What's going on
Speech Synthesis converts text to speech.