萬法唯心 - Impermanence

Text to Speech (Text Reader) - Linux

February 28, 2007 11:57 am

This morning, Terry ask me how we get Linux to do read out a paragraph or sentence. I guess this is because he want to read Kamil’s blog on QuGee Friends but finding it too long. We did it before, but forgot how to do it, so after we found out how to do it I decided we will blog it for future reference or anyone else why want to try it. We are using Ubuntu, but similar for other Linux distribution.

We first need to get the software festival:

  • sudo apt-get install festival

Once it’s installed, it’s very easy, there are two ways to do it:

To read from a text file (in the directory):

  • festival –tts yourfile.txt

Or you can run festival first (type festival in the terminal) and then

  • festival> (SayText “Hello word!”)

or read out a text file:

  • festival> (tts “yourfile.txt” nil)

Enjoy!

No Responses to “Text to Speech (Text Reader) - Linux”

Leave a comment

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