How to install festival for Linux/Ubuntu

Installation

Install Festival by typing the following command in a Terminal:

[cc lang=”php” tab_size=”2″ lines=”40″]
sudo apt-get install festival
[/cc]

Note: Additional voices are available in the Ubuntu repositories. Type “festvox” in Synaptic Package Manager for a list of language packages.

Testing

Test your setup by typing in a Terminal

[cc lang=”php” tab_size=”2″ lines=”40″]
festival
[/cc]

You will be presented with a > prompt. Type

[cc lang=”php” tab_size=”2″ lines=”40″]
(SayText “Hello”)
[/cc]

The computer should say “hello”.
To listen to a text file named FILENAME, type

[cc lang=”php” tab_size=”2″ lines=”40″]
(tts “FILENAME” nil)
[/cc]

Note FILENAME must be in quote marks.
Tagged , , , , , , ,

Leave a Reply