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

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
User avatar
grimdestripador
Level 6
Level 6
Posts: 1051
Joined: Fri Feb 16, 2007 2:26 am

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

Post by grimdestripador »

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.
Husse

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

Post by Husse »

cd ..
rm -R -v rm morevoices
Is that right?
User avatar
grimdestripador
Level 6
Level 6
Posts: 1051
Joined: Fri Feb 16, 2007 2:26 am

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

Post by grimdestripador »

Good eye. Will edit
Post Reply

Return to “Tutorials”