Compiling
=========

The  src  directory contains a simple  makefile  that compiles all the
source files in the directory and produces a  speak  binary.

When run, it expects to find the  espeak-data  directory either in the
user's home directory, or if not there, in /use/share


Portaudio.
========== 

eSpeak uses the PortAudio sound interface library.  There are two versions,
V18 and V19, which are used by different Linux distributions, and their APIs
are different.

To compile to use a particular version of the PortAudio library, first copy
either  portaudio18.h  or  portaudio19.h  to  portaudio.h.

If you don't need eSpeak to output sound, but only to produce WAV files,
then you can remove or comment out the following line in  speech.h.
This will mean that eSpeak doesn't use any PortAudion functions.
 #define  USE_PORTAUDIO


Library Version.
================

eSpeak can be used as a library rather than as a separate process.  The API
is described in the file:  speak_lib.h.

For a library version, remove the source file:  speak.cpp  and instead use
the source file:  speak_lib.cpp (which can be found in the  library-version
directory).

I haven't compiled it as a Linux shared library yet, because I'm not sure
how to do that.


Compiling Data
==============

You can modifiy spelling-to-phoneme rules and exceptions and re-compile this
data with the  speak  program (see  docs/dictionary.html).

In order to modify the sounds or other characteristics of phonemes, or
to add additional phonemes, another program, espeakedit, is needed, which
is not part of this package.
