Thursday, December 26, 2019

Make your browser talk

I am trying to come up with a spelling bee quiz in javascript and see if I can find a little API that can do text-to-speech for me. Chrome can do this right out of the box!

2 lines:

var msg = new SpeechSynthesisUtterance("hello my friend");
speechSynthesis.speak(msg);