![]() |
12 years ago | |
---|---|---|
.settings | 12 years ago | |
.tx | 12 years ago | |
android | 12 years ago | |
dictsource | 12 years ago | |
docs | 12 years ago | |
espeak-data | 12 years ago | |
phsource | 12 years ago | |
platforms | 12 years ago | |
praat-mod | 12 years ago | |
src | 12 years ago | |
ucd-tools @ 2d982956a5 | 12 years ago | |
.gitignore | 12 years ago | |
.gitmodules | 12 years ago | |
COPYING | 12 years ago | |
Makefile.am | 12 years ago | |
README.md | 12 years ago | |
autogen.sh | 12 years ago | |
configure.ac | 12 years ago | |
mkdictlist | 12 years ago | |
shadowdir | 13 years ago |
This branch contains the files needed to build espeak on the android platform. It is derived from the eyes-free project.
To build eSpeak for Android, you need to have the following installed and configured correctly:
android/res/raw/espeakdata.zip
)If you are building with Eclipse, you will also need:
If you are building on the command line, you will also need:
sudo apt-get install ant
on a Debian-based distribution)The Android port uses the ucd-tools
submodule. You can fetch this by running:
$ git submodule init
$ git submodule update
Build the libttsespeak.so
file by running:
$ cd android
$ ndk-build
Build the android/res/raw/espeakdata.zip
file by running:
$ ./autogen.sh
$ ./configure --prefix=/usr
$ make android
The generated eSpeakActivity.apk
can be installed like any other apk build
via eclipse, such as by using the Run
menu option.
Update the project using the Android utility which is part of the SDK:
$ cd android
$ android update project -s -t 1 -p .
Build the package.
$ ant release
In order to install the built bin/eSpeakActivity-release-unsigned.apk
APK,
you need to self-sign the package. You can do this by:
Creating a certificate, if you do not already have one:
$ keytool -genkey -keystore [YOUR_CERTIFICATE] -alias [ALIAS]
Sign the package using your certificate:
$ jarsigner -sigalg MD5withRSA -digestalg SHA1 \
-keystore [YOUR_CERTIFICATE] \
bin/eSpeakActivity-release-unsigned.apk [ALIAS]
Align the apk using the zipalign tool.
$ zipalign 4 bin/eSpeakActivity-release-unsigned.apk \
bin/eSpeakActivity-release-signed.apk
Now, you can install the APK using the adb
tool:
$ adb install -r bin/eSpeakActivity-release-signed.apk
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:
Text-to-Speech settings
UI;eSpeak TTS
in the Engines
section;eSpeak TTS
as the default engine;Listen to an example
option to check if everything is working.