magic tts code for console

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

Your email address will not be published. Required fields are marked *

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