This page explains the steps to build dhvani from the source code.
Getting the source code
Get the latest code from the dhvani cvs by doing a chckout on sourceforge cvs repository.
cvs -z3 -d:pserver:anonymous@dhvani.cvs.sourceforge.net:/cvsroot/dhvani co -P dhvani
Compiling
Prerequisites
For compiling, you need the following dev libraries.
- ALSA development libraries - For sound playback- Install libasound-dev package using your package manager
- Ogg vorbis dev libraries - For oggvoribis encoding of the generated speech- Install libvorbis-dev package using your package manager. Required only for compiling with --with--oggvorbis
- Soundtouch dev libraries - For applying pitch and tempo. Install libsoundtouch-dev using your packagemanager.Required only for compiling with --with--soundtouch
The default steps for building is
./configure --with-oggvorbis --with-soundtouch
make
sudo make install
Configure options
Enabling debugging
To enable the debug of the code(ie, to get debug messages while running the program) use --with-debug option with configure.
./configure --with-debug
The log messages will be appended to /tmp/dhvani.log file. You may change this file modifying src/debug.c file and rebuilding.
./configure --with-soundtouch
This will add pitch and speed control for dhvani.
./configure --with-oggvorbis
If you compile dhvani with option, you can save the speech files in Ogg-vorbis format.
Compiling without ogg vorbis support
If your system doesnot have ogg vorbis encoding libraries , don't use --with-oggvorbis option for configure
Compiling without soundtouch support
If your system doesnot have soundtouch encoding libraries , don't use --with-soundtouch option for configure