|
txt2pho and mbrola install howto
Mbrola is a multilingual speech synthesizer. This describes how to use mbrola to generate german-speaking text to speech. First you need to download the mbrola-binary and a voice as well as txt2pho, the German TTS front end for the MBROLA synthesizer.
Download the following files from the mbrola website:
http://tcts.fpms.ac.be/synthesis/mbrola.html
download the mbrola binary and a voice. A recommended voice is this
install mbrola binary
mkdir /usr/local/mbrola
cp mbr301h.zip /usr/local/mbrola/
unzip mbr301h.zip
ln -s mbrola-linux-i386 mbrola
ln -s /usr/local/mbrola/mbrola /usr/bin/mbrola
install the voices:
mkdir /usr/local/mbrola/voices
cd /usr/local/mbrola/voices/
cp your_path_to_downloaded_file/de7.zip .
Mkdir de7
cp de7.zip de7
unzip de7.zip
install txt2pho:
Download txt2pho from
cp txt2pho.zip /usr/local/
cd /usr/local
unzip txt2pho.zip
ln -s /usr/local/txt2pho/txt2pho /usr/bin/
cp /usr/local/txt2pho/txt2phorc /etc/txt2pho
txt2pho will not work if you do not adjust the DATAPATH and the INVPATH to /usr/local/txt2phi/data in /etc/txt2pho
that's it!
Example commands:
(send to file)
echo "hallo, wie geht du ?" | txt2pho | mbrola /usr/local/mbrola/voices/de7/de7 - /tmp/test.wav
(send to /dev/dsp)
echo 'wärmer wärmer wärmerwärmer '.$cam1_string | txt2pho -f | mbrola /usr/local/mbrola/voices/de1/de1 - -- > /dev/dsp
|