DEV Community

Discussion on: Text To Speech In 3 Lines Of JavaScript

Collapse
 
simplifycomplexity profile image
Kiran Randhawa

I can do it one in one line of code:

window.speechSynthesis.speak(new SpeechSynthesisUtterance("Hello World"));
🙊