Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old January 24th, 2008   #1
patrock
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 3
Howto: Setup more realistic voices in Festival.

The 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. Each voice is around 120 MB. For a description of each voice visit the CMU Arctic page. To hear them visit the voice demo page.

Here's an example of howto install one.

If it's not already installed you'll need to get festlex-cmu:
Code:
sudo apt-get install festlex-cmu
Then:
Code:
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 /etc/festival.scm /etc/festival.scm.backup
sudo echo "(set! voice_default 'voice_cmu_us_clb_arctic_clunits)" >> /etc/festival.scm
Test it out:
Code:
echo "This is a test." | festival --tts
You can delete the voice's .tar.bz2 file once it's unpacked.
Code:
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:
;;(set! voice_default 'voice_cmu_us_clb_arctic_clunits)

Last edited by patrock; January 25th, 2008 at 12:04 AM..
patrock is offline   Reply With Quote
Old January 24th, 2008   #2
PinkFloyd102489
Has an Ubuntu Drip
 
PinkFloyd102489's Avatar
 
Join Date: Nov 2007
Location: NC, USA
Beans: 760
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to PinkFloyd102489
Re: Howto: Setup more realistic voices in Festival.

SIOD ERROR: could not open file /usr/share/festival/dicts/cmu/cmulex.scm
closing a file left open: /usr/share/festival/voices/english/cmu_us_clb_arctic_clunits/festvox/cmu_us_clb_arctic_lexicon.scm
closing a file left open: /usr/share/festival/voices/english/cmu_us_clb_arctic_clunits/festvox/cmu_us_clb_arctic_clunits.scm
closing a file left open: /usr/share/festival/init.scm
festival: fatal error exiting.
PinkFloyd102489 is offline   Reply With Quote
Old January 25th, 2008   #3
PinkFloyd102489
Has an Ubuntu Drip
 
PinkFloyd102489's Avatar
 
Join Date: Nov 2007
Location: NC, USA
Beans: 760
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to PinkFloyd102489
Re: Howto: Setup more realistic voices in Festival.

You also included a female voice in the install process. Might want to post both male and female, as Im now removing the female and installing male.
PinkFloyd102489 is offline   Reply With Quote
Old January 25th, 2008   #4
patrock
First Cup of Ubuntu
 
Join Date: Jan 2008
Beans: 3
Re: Howto: Setup more realistic voices in Festival.

The male voices sound good too. The HTS voices sound better but I haven't gotten them working yet. You can hear them on the demo page.
patrock is offline   Reply With Quote
Old April 10th, 2008   #5
MonkeeSage
A Carafe of Ubuntu
 
MonkeeSage's Avatar
 
Join Date: Oct 2007
Beans: 127
Re: Howto: Setup more realistic voices in Festival.

Quote:
Originally Posted by patrock View Post
The male voices sound good too. The HTS voices sound better but I haven't gotten them working yet. You can hear them on the demo page.
I got the HTS voices working by doing the following (not sure, but they may depend on the CMU Arctic voices being installed (edit: they don't), which I already have — they are way smaller):

(NOTE: I've started a HOWTO with detailed instructions on how to install all of the available English voices for festival: MBROLA, CMU Arctic, and Nitech HTS. HOWTO.)

Firstly, downloaded them to a tmp dir:

Code:
mkdir hts_tmp
cd hts_tmp/
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

Extracted them:

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

Made a dir for them to live in:

Code:
sudo mkdir /usr/share/festival/voices/us

Moved them there:

Code:
sudo mv lib/voices/us/nitech_us_* /usr/share/festival/voices/us/

Move the hts.scm file into festival's home dir (may not be necessary, but can't hurt):

Code:
sudo mv lib/hts.scm /usr/share/festival/hts.scm

Cleaned up:

Code:
cd ../
rm -rf hts_tmp/

That's it. :)


Ps. Like I said, I haven't tried them without having the CMU Arctic voices installed as described above, so that may also be a prerequisite. (edit: They work fine by themselves.)

Pss. Festvox also has some HTS voices on their site. I'm not sure, but they look like they may just be copies or older versions of the nitech ones. Not sure though.
__________________
[People] are usually satisfied with bad argument only when their convictions rest on other grounds. (John Oman, Grace and Personality [New York: Macmillan, 1925], p. 38).

Last edited by MonkeeSage; April 11th, 2008 at 02:18 PM.. Reason: link to HOWTO
MonkeeSage is offline   Reply With Quote
Old November 6th, 2008   #6
wersdaluv
May the Ubuntu Be With You!
 
wersdaluv's Avatar
 
Join Date: Dec 2006
Location: Pilipinas kong Mahal
Beans: 1,684
Ubuntu 9.04 Jaunty Jackalope
Re: Howto: Setup more realistic voices in Festival.

Quote:
Originally Posted by MonkeeSage View Post
I got the HTS voices working by doing the following (not sure, but they may depend on the CMU Arctic voices being installed (edit: they don't), which I already have — they are way smaller):

(NOTE: I've started a HOWTO with detailed instructions on how to install all of the available English voices for festival: MBROLA, CMU Arctic, and Nitech HTS. HOWTO.)

Firstly, downloaded them to a tmp dir:

Code:
mkdir hts_tmp
cd hts_tmp/
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

Extracted them:

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

Made a dir for them to live in:

Code:
sudo mkdir /usr/share/festival/voices/us

Moved them there:

Code:
sudo mv lib/voices/us/nitech_us_* /usr/share/festival/voices/us/

Move the hts.scm file into festival's home dir (may not be necessary, but can't hurt):

Code:
sudo mv lib/hts.scm /usr/share/festival/hts.scm

Cleaned up:

Code:
cd ../
rm -rf hts_tmp/

That's it.


Ps. Like I said, I haven't tried them without having the CMU Arctic voices installed as described above, so that may also be a prerequisite. (edit: They work fine by themselves.)

Pss. Festvox also has some HTS voices on their site. I'm not sure, but they look like they may just be copies or older versions of the nitech ones. Not sure though.
Man, this is great! Can you suggest more voices?
wersdaluv is offline   Reply With Quote
Old February 14th, 2008   #7
dchurch24
Way Too Much Ubuntu
 
Join Date: Nov 2006
Beans: 232
Re: Howto: Setup more realistic voices in Festival.

I cannot get Festival to work at all - it worked fine in Feisty, but in Gusty I get the following error:

SIOD ERROR: could not open file /usr/share/festival/voices/english/cmu_us_clb_arctic_clunits/festvox/cmu_us_clb_arctic_clunits.scm
closing a file left open: /usr/share/festival/init.scm
festival: fatal error exiting.


I have no idea where to go or what to do next! Please help!
dchurch24 is offline   Reply With Quote
Old February 14th, 2008   #8
peabody
Extra Foam Sugar Free Ubuntu
 
peabody's Avatar
 
Join Date: Jul 2006
Beans: 809
Re: Howto: Setup more realistic voices in Festival.

First I would try and see if I could get it working with the packaged voices in fiesty. Install the festvox-rablpc16k and put this in your festival.scm:

(set! default_voice 'voice_rab_diphone)
peabody is offline   Reply With Quote
Old February 29th, 2008   #9
joerite
First Cup of Ubuntu
 
joerite's Avatar
 
Join Date: Jul 2006
Beans: 6
Ubuntu 7.04 Feisty Fawn
Re: Howto: Setup more realistic voices in Festival.

Thanks for this. Is there one similar to GLaDOS. I would make it if I knew how
joerite is offline   Reply With Quote
Old March 15th, 2008   #10
unimatrix
Gee! These Aren't Roasted!
 
Join Date: Feb 2007
Location: Slovenia
Beans: 187
Ubuntu Karmic Koala (testing)
Wink Re: Howto: Setup more realistic voices in Festival.

If somebody is getting this error:
Quote:
lexicon english_poslex not defined
It means you need to:
Code:
sudo apt-get install festlex-poslex
Just had to write this down here, because I couldn't find any solutions elsewhere.
unimatrix is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:55 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry