var msg = new SpeechSynthesisUtterance(‘Hello World’);
window.speechSynthesis.speak(msg);

https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.