The espeak-ng sources contain the code for the Android™ port of the application. This is published as the eSpeak for Android program on the Google Play store. It is based on the eyes-free port of eSpeak to the Android platform. This code was originally maintained in a separate branch when the repository tracked eSpeak releases.
In order to build the Android APK file, you need:
- the Android SDK with API 21 support;
- the Android NDK;
- Gradle 2.1 or later.
In order to use Android Studio, you will also need:
- Android Studio.
Building with Gradle
Set the location of the Android SDK:
$ export ANDROID_HOME=<path-to-the-android-sdk>
Build the project:
$ ./configure --with-gradle=<path-to-gradle>
$ make apk-release
This will create an
Signing the APK
In order to install the built 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] \
Align the apk using the zipalign tool.
$ zipalign 4 android/build/outputs/apk/espeak-release-unsigned.apk \
Now, you can install the APK using the
$ adb install -r android/build/outputs/apk/espeak-release-signed.apk
eSpeakActivity will extract the
espeakdata.zip file into its own data directory to set up the available voices.
To enable eSpeak, you need to:
- go into the Android
Text-to-Speech settings UI;
eSpeak TTS in the
eSpeak TTS as the default engine;
- use the
Listen to an example option to check if everything is working.
The documentation for eSpeak NG provides:
- a user guide;
- a guide for language and voice authors; and
- details for developers.
The espeak-ng and speak-ng command-line documentation provide a reference of the different command-line options available to these commands with example usage.
The espeak-ng binaries use the same command-line options as espeak, with several additions to provide new functionality from espeak-ng such as specifying the output audio device name to use. The build creates symlinks of
speak_lib.h include file is located in
espeak-ng/speak_lib.h with an optional symlink in
espeak/speak_lib.h. This file contains the espeak 1.48.15 API, with a change to the
ESPEAK_API macro to fix building on Windows and some minor changes to the documentation comments. This C API is API and ABI compatible with espeak.
espeak-data data has been moved to
espeak-ng-data to avoid conflicts with espeak. There have been various changes to the voice, dictionary and phoneme files that make them incompatible with espeak.
The espeak-ng project does not include the espeakedit program. It has moved the logic to build the dictionary, phoneme and intonation binary files into the
libespeak-ng.so file that is accessible from the
espeak-ng command line and C API.
The historical branch contains the available older releases of the original eSpeak that are not contained in the subversion repository.
1.24.02 is the first version of eSpeak to appear in the subversion repository, but releases from 1.05 to 1.24 are available at http://sourceforge.net/projects/espeak/files/espeak/.
These early releases have been checked into the historical branch, with the 1.24.02 release as the last entry. This makes it possible to use the replace functionality of git to see the earlier history:
git replace 8d59235f 63c1c019
NOTE: The source releases contain the
windows_sapi folders. These do not appear in the source repository until later releases, so have been excluded from the historical commits to align them better with the 1.24.02 source commit.
Test latest development version at eSpeakNG online.
Report bugs to the espeak-ng issues page on GitHub.
Look at and subscribe to eSpeakNG mailing list to view and discuss other related topics.
eSpeak NG Text-to-Speech is released under the GPL version 3 or later license.
ieee80.c implementation is taken directly from ToFromIEEE.c.txt which has been made available for use in Open Source applications per the license statement on http://www.realitypixels.com/turk/opensource/. The only modifications made to the code is to comment out the
TEST_FP define to make it useable in the eSpeak NG library, and to fix compiler warnings.
getopt.c compatibility implementation for getopt support on Windows is taken from the NetBSD
getopt_long implementation, which is licensed under a 2-clause BSD license.
Android is a trademark of Google Inc.