I'm trying to use text-to-speech on a website using HTML5 and Google Translate.
Getting speech from Google is as easy as a GET request to: http://translate.google.com/translate_tts?tl=en&q=hello
In order to play that file I'm using the audio-tag:
<audio id="speech" src="http://translate.google.com/translate_tts?tl=en&q=hello" controls="controls" autoplay="autoplay">Your browser does not support the audio element.</audio>
That works perfectly when I try to open the html file locally using Chrome 11, but doesn't work at all when I open the html from my server... It just doesn't do anything (the play button flashes for a second, but nothing happens).
You can find the file here: http://www.announcify.com/chrome/background.html
Any ideas? :)
Tom
rel=noreferrer
. No success either... Is that what you mean? – Beria