Tell me more ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Just wondering whether anyone has got a Text to Speech engine installed on the Pi?It would make a great addition to almost any programming project to make it talk to the user!

share|improve this question
The MagPi 3rd Edition with listing of games and apps mentions a TextToSpeech engine. – ppumkin Aug 5 '12 at 7:42

5 Answers

up vote 9 down vote accepted

Yes it is possible; I saw a YouTube video of the Pi reading the news using festival.

Use the following command to install festival using Debian

$ sudo apt-get install festival festival-freebsoft-utils

To make it speak simply pipe it the text or file you want it to read, like so

echo  "Hello World"| festival --tts

References:

  1. http://forums.debian.net/viewtopic.php?f=16&t=40548
share|improve this answer
Thanks Steve! Not sure your reference is working... – Alex Chamberlain Jul 12 '12 at 7:23
@AlexChamberlain fixed – Steve Robillard Jul 12 '12 at 7:28

Or install espeak:

$ sudo apt-get install espeak # For Debian
$ sudo pacman -S espeak # For Arch Linux

And to make it speak:

$ espeak "Hello World" # Replace Hello World with your text, must be enclosed by ""
$ espeak -f <file> # Read out file <file>
share|improve this answer

flite is a cut-down version of festival which I have found to work very well on small ARM hosts.

share|improve this answer

I'm not sure if you are looking for a premium solution, but Cepstral just released their Callie voice for use on the Raspberry Pi. You have to call them atm to get pricing info etc, but if you don't mind paying something, just wanted to put it out there as an option.

http://www.cepstral.com/en/raspberrypi

share|improve this answer

Acapela works quite well on similar devices. Not free, though.

share|improve this answer

Your Answer

 
discard

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.