This page explains the steps to build dhvani from the source code.
Getting the source code
Get the latest code from the dhvani SVN by doing a chckout on sourceforge cvs repository.
svn co https://dhvani.svn.sourceforge.net/svnroot/dhvani/trunk dhvani
Compiling
Prerequisites
For compiling, you need the following dev libraries.
- GSM Sound compression library - Install libgsm1 libgsm1-dev packages using your package manager
- 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
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.
Compiling without ogg vorbis support
If your system doesnot have ogg vorbis encoding libraries , use --with-oggvorbis=no option for configure
Compiling without soundtouch support
If your system doesnot have soundtouch encoding libraries , use --with-soundtouch=no option for configure