I need to play Google text-to-speech in JavaScript. The idea is to use the web service:
http://translate.google.com/translate_t
Here is the code snippet I found:
var audio = new Audio(); audio.src ='http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=Hello%20World.'; audio.play();