I found this question in stackoverflow. I tried to do the same but it does not work.
<html>
<body>
<script type="text/javascript">
var audio = new Audio();
audio.src ='https://translate.google.com/translate_tts?ie=utf-8&tl=en&q=Hello%20World';
audio.play();
</script>
</body>
</html>
Could you tell me what was wrong?