Files
espeak-ng/README.md
T
Reece H. Dunn 932907ddc6 Don't check in espeakdata.zip to version control every time it changes.
The espeakdata.zip file is a generated file that can be recreated
by running the `make android` command. It takes up ~ 900 Kb of space
and changes significantly every time it is built.
2013-03-03 12:25:23 +00:00

54 lines
1.5 KiB
Markdown

# Android Port of eSpeak Text-to-Speech
This branch contains the files needed to build espeak on the android platform.
It is derived from the eyes-free project.
## Prerequisits
To build eSpeak for Android, you need to have the following installed and
configured correctly:
1. Android SDK
2. Android NDK
3. Eclipse
4. Android Developer Tools (ADT) for Eclipse
5. wxWidgets 2.8 (for espeakedit when building `android/res/raw/espeakdata.zip`)
## Fetching the Sources
The Android port uses the `ucd-tools` submodule. You can fetch this by running:
$ git submodule init
$ git submodule update
## Building
1. Build the `libttsespeak.so` file by running:
$ cd android
$ ndk-build
2. Build the `android/res/raw/espeakdata.zip` file by running:
$ ./autogen.sh
$ ./configure --prefix=/usr
$ make android
3. Open Eclipse.
4. Create a new workspace.
5. Import the espeak folder as an exising Android project.
6. Build the espeak apk within Eclipse.
## Installing
The generated `eSpeakActivity.apk` can be installed like any other apk build
via eclipse, such as by using the `Run` menu option.
After running, `eSpeakActivity` will extract the `espeakdata.zip` file into its
own data directory to set up the available voices.
To enable eSpeak, you need to:
1. go into the Android `Text-to-Speech settings` UI;
2. enable `eSpeak TTS` in the `Engines` section;
3. select `eSpeak TTS` as the default engine;
4. use the `Listen to an example` option to check if everything is working.