23

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!

SlySven
  • 3,621
  • 1
  • 18
  • 45
Alex Chamberlain
  • 15,530
  • 14
  • 67
  • 113

6 Answers6

14

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
Alex Chamberlain
  • 15,530
  • 14
  • 67
  • 113
Steve Robillard
  • 34,687
  • 17
  • 103
  • 109
11

You could install espeak:

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

To make it speak:

$ espeak "Hello World" # Replace Hello World with your text, must be enclosed by ""
$ espeak -f <file> # Read out file <file>
chipuba
  • 111
  • 5
8

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

scruss
  • 9,068
  • 1
  • 24
  • 35
0

You can always use googles API the drawback is that you need an internet connection but the result is probable the best you are going to get.

javirs
  • 660
  • 1
  • 6
  • 19
0

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

0

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

James Bennet
  • 291
  • 1
  • 2