Wednesday, May 19, 2010

Speechsynthesis using Espeak and Mbrola

Did this in Ubuntu 9.10
With Synaptic install Espeak and mbrola packages.

Now go to this site and download your favourite voice:
http://www.tcts.fpms.ac.be/synthesis/mbrola/mbrcopybin.html
I downloaded a Dutch voice
Unzipped it and created a folder named mbrola in usr/share/
Copied the big language file in the root of that folder usr/share/mbrola (in a subfolder it won't be found).

Now can we give espeak teh command to read it.
Open the terminal in a folder where you have a txt file to be spoken:
espeak -v mb-nl2 -f test.txt | mbrola -e /usr/share/mbrola/nl2 - - | aplay -r16000 -fS16

To make a wav file of it:
espeak -v mb-nl2 -f test.txt | mbrola -e /usr/share/mbrola/nl2 - test.wav

No comments:

Blog Archive