I am trying to develop an extension for Chrome. I can access the audio content at translate.google.com, but I want the content to play in a loop. I am using the Audio element in HTML5. I can't get it to loop using event handlers for "ended" event, or the simple loop attribute, unless I download the mp3. I noticed that even a url like: http://translate.google.com/translate_tts?q=sweet+ness in its native form has trouble replaying (Once the audio stops, try moving the slider all the way back and hit play again. It doesn't work, not for me anyway.) Does anyone know what causes that? Just curious.
Either way, I shouldn't be hitting Google's servers in a loop for the same request. How could I download the mp3 file from the extension? The text for the audio will change often enough that I can't download all the files manually.
Thanks!