码迷,mamicode.com
首页 > 系统相关 > 详细

reading words in your computer and changing to female voice, linux festival text2wave saving wav files

时间:2015-10-16 07:37:23      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:

on a brand new linux PC, e.g. ubuntu 14.04 amd64

To hear voice

sudo apt-get install festival -y

 

then try to hear some thing from your PC

echo "I am your computer." | festival --tts 
# or
echo "I am your computer." | festival --tts --pipe

you will hear something out.

 

Now replace the voice files, a better one.

Tutorial from https://www.youtube.com/watch?v=4eJTDpAeBSk

 

To replace voice

commands including:

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

Then go to command line

$~ festival
festival> (SayText "Hello world")

You will hear something different, a female voice would come out.

 

To save wave files

echo "Hello I am Lily. " > /tmp/one.txt
text2wave < /tmp/one.txt > /tmp/voice.wav
mplayer /tmp/voice.wav

Your voice file has been saved.

 

Happy hacking!

 

reading words in your computer and changing to female voice, linux festival text2wave saving wav files

标签:

原文地址:http://www.cnblogs.com/spaceship9/p/4884175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!