Howto: Text to Speech with Festival or espeek w/ extra voice

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Howto: Text to Speech with Festival or espeek w/ extra voice

Postby grimdestripador on Mon Feb 09, 2009 12:33 am

espeek is simple,crude and pretty techno speek. install with
Code: Select all
sudo apt-get install espeek


Festival is the ubuntu Text to speech application. Its a pain to configure in ubuntu, but seems to work out of the box in mint.
Code: Select all
sudo apt-get install festival


Festival can be fitted with more voices. I didthis
The CMU Arctic (http://festvox.org/cmu_arctic/) voices sound magnitudes better than the standard Festival voices. They use prerecorded utterances from Project Gutenberg. The voices can be downloaded from here. (http://www.speech.cs.cmu.edu/cmu_arctic/packed/) Each voice is around 120 MB. For a description of each voice visit the CMU Arctic (http://festvox.org/cmu_arctic/) page. To hear them visit the voice demo page. (http://festvox.org/voicedemos.html)

Code: Select all

cd /usr/share/festival/voices/english/
sudo wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_clb_arctic-0.95-release.tar.bz2
sudo tar jxf cmu_us_clb_arctic-0.95-release.tar.bz2
sudo ln -s cmu_us_clb_arctic cmu_us_clb_arctic_clunits
sudo cp /usr/share/festival/festival.scm /usr/share/festival/festival.scm.bk
sudo su
echo "(set! voice_default 'voice_cmu_us_clb_arctic_clunits)" >> /usr/share/festival/festival.scm
exit
sudo echo "(set! voice_default 'voice_cmu_us_clb_arctic_clunits)" >> /usr/share/festival/festival.scm
rm /usr/share/festival/voices/english/cmu_us_clb_arctic-0.95-release.tar.bz2

If you install another one comment out the first voice_default line in /etc/festival.scm with 2 semi-colons.
Code: Select all
;;(set! voice_default 'voice_cmu_us_clb_arctic_clunits)



More Voices: not yet working exactally to procedure (imitate from above)
Code: Select all
mkdir morevoices
cd morevoices
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_awb_arctic_hts-2.0.1.tar.bz2
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_bdl_arctic_hts-2.0.1.tar.bz2
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_clb_arctic_hts-2.0.1.tar.bz2
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_rms_arctic_hts-2.0.1.tar.bz2
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_slt_arctic_hts-2.0.1.tar.bz2
wget http://hts.sp.nitech.ac.jp/archives/2.0.1/festvox_nitech_us_jmk_arctic_hts-2.0.1.tar.bz2

for t in `ls festvox_nitech_us_*` ; do tar xvf $t ; done

sudo mv lib/voices/us/nitech_us_* /usr/share/festival/voices/english/
sudo mv lib/hts.scm /usr/share/festival/hts.scm
cd ..
rm -R -v morevoices

Last edited by grimdestripador on Wed Feb 11, 2009 3:31 pm, edited 1 time in total.
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am

Linux Mint is funded by ads and donations.
 

Re: Howto: Text to Speech with Festival or espeek w/ extra voice

Postby Husse on Wed Feb 11, 2009 10:17 am

cd ..
rm -R -v rm morevoices

Is that right?
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Howto: Text to Speech with Festival or espeek w/ extra voice

Postby grimdestripador on Wed Feb 11, 2009 3:30 pm

Good eye. Will edit
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am


Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 8 guests