How to use audio tag in jsp with a web source

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to use audio tag in jsp with a web source

johan micoud
<audio autoplay="" src="http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=hello%20world"></audio>

This works fine in html, but not in a gsp.


Feedback: GET http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=hello%20world 404 (Not Found)

Curious: if i use the url (direct) one time, the received mp3 (from google) is in cache and it works.
This works too (in jsp):
<iframe src="http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=hello%20world"></iframe>