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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are in an environment where you can make system calls, you could pipe the output of Festival into lame like so:
If you want to do further processing as well as the conversion, you can pipe the output of text2wave to SoX instead, which can also do the conversion for you:
The default Festival voice seems to be a bit pants though, so this article might be worth investigating, but I haven’t actually tried it myself.
I know you aren’t using ubuntu but for others who might find this answer helpful, there is a problem where even after you install all the “ugly” plugins, SoX still cannot output MP3 files. You have to manually dismantle the .deb and modify the debian/rules file to remove –without-lame from DEB_CONFIGURE_EXTRA_FLAGS.