September 13th, 2007

How to convert text to speech with PHP

I think it would be pretty darn cool to build a speech recognition website. I mean, I'm not sure that it's all that useful though. However, I guess it is useful in cases like where your visitors can't read your CAPTCHA block, so they click "read text". Anyhow, if you want to do either of those, you can use this PHP class to convert text to speech, by leveraging the Expressivo site speech translation service.

You can supply any text string in either English, Polish or Romanian as a parameter. The class will then submit a request to the Expressivo text, which will synthesize the speech audio for the given text, and return it in an MP3 stream! Cool……

Leave a reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image