I'm trying to write a js function that can speak certain text, like this"
function SpeakText(text) {
......
}
I found this tread: http://stackoverflow.com/questions/3341575/how-to-create-a-button-that-plays-a-mp3-google-tts that seems to do what I want. But I tried the solutions but doesn't work. Maybe it requires html5 to work?
Is there a simple javascript function that can simply speak certain text that I input to it?