how to do text to speech in javascript
snippet in javascript

how to do text to speech in javascript

user3902

var msg = new SpeechSynthesisUtterance();
msg.text = "Hello World";
window.speechSynthesis.speak(msg);