views:

31

answers:

1

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?

A: 

yes, you're right. it's working with html5. the problem is that some browsers (firefox, opera and explorer) doesn't render mp3, so, this is not the best solution.

i'm looking for a way to do the same with flash, but i cannot find enough information. if i find the way to do it, i'll post it here.

btw, i know that you're looking for a javascript to do this, but i found this text to speech flash utility that maybe fits in what you need:

http://active.tutsplus.com/freebies/exclusive/exclusive-freebie-text-to-speech-utility/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+flashtuts-freebies+%28Activetuts%2B+Freebies%29

good luck!

sOle

sole