On 06/30/2012 06:06 PM, Raakesh kumar wrote:
Hi,
I am looking for a text to speech converter for my website with following
features -
1 - User will input text and click for preview.
2 - Once confirmed that audio file can be downloaded.
3 - Different audio formats should be allowed.
After googling, i found iSpeech converter but this API doesn't provide
preview support as i experienced. jTalk plugin is also there but for that
you need to submit your url, this means we can't test it on our local
machine.
Any help on this?
What you would need to effectively do this is
1. When the user inputs the text, pass it to the text to speech
converter. I've used festival for this using mbrola. You can use espeak
also. Specify the file format - .wav for instance as the output format
and generate the file on your web server.
2. Use swftools to convert the .wav to .swf and then play that swf on
your site within in iframe or as a pop-up or via ajax. You can show
'generating preview' till conversion to .wav and then to .swf is not
complete.
3. Once the user confirms, then use either ffmpeg or sox to convert the
.wav file and provide it as .ogg or whatever format you need. Or you can
provide it as .wav only.
Hope it helps.
Regards
Vivek Kapoor
http://exain.com
_______________________________________________
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd