metalx1000

Google text to speech api HTML5 audio element

Nov 7th, 2014
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.     <script>
  4.         var audio = new Audio();
  5.         audio.src ='http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=Hello%20World.';
  6.         audio.play();
  7.     </script>
  8. </head>
  9. <body>
  10. </body>
  11. </html>
Add Comment
Please, Sign In to add comment