Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i own a translation service and now im wanting to implement a TTS solution. Do you know any software that can be executed from php to generate mp3s on the fly for a specific text?

share|improve this question
up vote 3 down vote accepted

There is an excellent TTS engine for Linux called festival

'yum install festival' or 'apt-get install festival'

As far as using PHP there should be no real issue with it. A quick search brings up a rather promising class

However festival will output to wav file. You will then need to convert it to mp3. Again another good tutorial is available at

share|improve this answer
+1 - Festival does a great job. – Evan Anderson Jul 18 '10 at 20:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.