PHP Code

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……

Share

4 Comments

  1. Does it put a load on the server at all?

  2. Was hoping this would be a text to speech implementation in PHP instead of a webservice.

  3. need the code for converting text to speech

  4. sir i have a qhestion plz give solution for that
    in search engine if u get result for the concerned query that answer should come with voice …so plz i need code for this problem in php script plz help me in that…

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image