|
Text to speech convertors are more common on windows. However Linux has a very
good open source package. FESTIVAL. This article will show you how to
setup and use Festival, a great software from the University of Edinburgh.
The Festival home page is located here. Even thought it is in BETA stage, I found it to be both stable and effective. It has options to implement voices, but i could execute only one as you see it here.
Installing the Festival RPM with yum
If you aren't sure if Festival is already installed on your system you can check using the which command or with rpm.
which
If festival is not installed you can use yum to install it.
yum install festival
yum will communicate with the CentOS repository, resolve any dependencies Festival may have with your system, and prompt you to download and install the Festival RPM. Enter y for yes and hit enter. The Festival RPM is 18 megs so you may want to get up and stretch while it downloads. Once Festival is downloaded to your drive, you don't need to manually install it, yum will do it for you. There, you're done installing Festival. Next we'll play with it and make the computer do the talking for us.
Installing LAME MP3 Encoder
To install Lame you first need to make sure you have the development tools like gcc installed on your system. If you don't have them then you can install them using yum (yum install gcc) along with all the dependencies. There may be some other packages not listed so you'll have to figure out which ones they are. Lame 3.97beta2 is provided as source (get it from sourceforge) and there may be RPM's available out there, but for this tutorial we'll be compiling the source to create our binaries. Make sure you're logged in as root and in your home directory, download the source package using wget, extract the gzipped tarball, move into the extracted lame-3.97 directory, run the configure script, make, and install the compiled binaries.
su -
[enter root password]
cd ~
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97b2.tar.gz
tar zxvf lame-3.97b2.tar.gz
cd lame-3.97
./configure --prefix=/usr
make
make install
If LAME compiled without problems then running it from the command line
(lame) should give you this.
LAME
Using LAME is very straightforward. All your do is pass it the WAV file name and give it a MP3 output file name. I won't go in to all the LAME options but you can read up on them from the man page (man lame). Now we'll take our three examples from before and convert those WAV files to MP3.
If LAME compiled without problems then running it from the command line
(lame) should give you this.
lame beautiful_day.wav beautiful_day.mp3
lame date.wav date.mp3
lame rand.wav rand.mp3
Check out AT&T
Labs Natural Voices Text-to-Speech Engine and try out their demo.
It's of commercial quality and it sounds really good, the only problem
is it isn't free like Festival.
|