|
|
|
|
|
|
|
|
|
|
|
|
|
|
- [Build Dependencies](#build-dependencies) |
|
|
- [Build Dependencies](#build-dependencies) |
|
|
- [Debian](#debian) |
|
|
- [Debian](#debian) |
|
|
- [Building with Gradle](#building-with-gradle) |
|
|
|
|
|
- [Building with Eclipse](#building-with-eclipse) |
|
|
|
|
|
- [Building with Ant](#building-with-ant) |
|
|
|
|
|
- [Signing the APK](#signing-the-apk) |
|
|
|
|
|
- [Installing the APK](#installing-the-apk) |
|
|
|
|
|
- [Enabling eSpeak on the Device](#enabling-espeak-on-the-device) |
|
|
|
|
|
|
|
|
- [Building](#building) |
|
|
|
|
|
- [Building with Gradle](#building-with-gradle) |
|
|
|
|
|
- [Building with Eclipse](#building-with-eclipse) |
|
|
|
|
|
- [Signing the APK](#signing-the-apk) |
|
|
|
|
|
- [Installing](#installing) |
|
|
|
|
|
- [Enabling eSpeak on the Device](#enabling-espeak-on-the-device) |
|
|
- [Bugs](#bugs) |
|
|
- [Bugs](#bugs) |
|
|
- [License Information](#license-information) |
|
|
- [License Information](#license-information) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| wxWidgets | `sudo apt-get install libwxgtk2.8-dev` | |
|
|
| wxWidgets | `sudo apt-get install libwxgtk2.8-dev` | |
|
|
| gradle | [gradle-1.7_1.0-0ubuntu1_all.deb](https://launchpad.net/~cwchien/+archive/gradle/+files/gradle-1.7_1.0-0ubuntu1_all.deb) | |
|
|
| gradle | [gradle-1.7_1.0-0ubuntu1_all.deb](https://launchpad.net/~cwchien/+archive/gradle/+files/gradle-1.7_1.0-0ubuntu1_all.deb) | |
|
|
|
|
|
|
|
|
## Building with Gradle |
|
|
|
|
|
|
|
|
## Building |
|
|
|
|
|
|
|
|
|
|
|
### Building with Gradle |
|
|
|
|
|
|
|
|
1. Set the location of the Android SDK: |
|
|
1. Set the location of the Android SDK: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This will create an `android/build/apk/espeak-release-unsigned.apk` file. |
|
|
This will create an `android/build/apk/espeak-release-unsigned.apk` file. |
|
|
|
|
|
|
|
|
## Building with Eclipse |
|
|
|
|
|
|
|
|
### Building with Eclipse |
|
|
|
|
|
|
|
|
1. Build the JNI binding and espeak data file by running: |
|
|
1. Build the JNI binding and espeak data file by running: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The generated `eSpeakActivity.apk` can be installed like any other apk build |
|
|
The generated `eSpeakActivity.apk` can be installed like any other apk build |
|
|
via eclipse, such as by using the `Run` menu option. |
|
|
via eclipse, such as by using the `Run` menu option. |
|
|
|
|
|
|
|
|
## Building with Ant |
|
|
|
|
|
|
|
|
|
|
|
1. Build the JNI binding and espeak data file by running: |
|
|
|
|
|
|
|
|
|
|
|
$ ./autogen.sh |
|
|
|
|
|
$ ./configure |
|
|
|
|
|
$ make jni espeakdata |
|
|
|
|
|
2. Update the project using the Android utility which is part of the SDK: |
|
|
|
|
|
|
|
|
|
|
|
$ cd android |
|
|
|
|
|
$ android update project -s -t 1 -p . |
|
|
|
|
|
3. Build the package. |
|
|
|
|
|
|
|
|
|
|
|
$ ant release |
|
|
|
|
|
|
|
|
|
|
|
## Signing the APK |
|
|
|
|
|
|
|
|
### Signing the APK |
|
|
|
|
|
|
|
|
In order to install the built APK (e.g. `bin/eSpeakActivity-release-unsigned.apk`) |
|
|
In order to install the built APK (e.g. `bin/eSpeakActivity-release-unsigned.apk`) |
|
|
you need to self-sign the package. You can do this by: |
|
|
you need to self-sign the package. You can do this by: |
|
|
|
|
|
|
|
|
$ zipalign 4 bin/eSpeakActivity-release-unsigned.apk \ |
|
|
$ zipalign 4 bin/eSpeakActivity-release-unsigned.apk \ |
|
|
bin/eSpeakActivity-release-signed.apk |
|
|
bin/eSpeakActivity-release-signed.apk |
|
|
|
|
|
|
|
|
## Installing the APK |
|
|
|
|
|
|
|
|
## Installing |
|
|
|
|
|
|
|
|
Now, you can install the APK using the `adb` tool: |
|
|
Now, you can install the APK using the `adb` tool: |
|
|
|
|
|
|
|
|
$ adb install -r bin/eSpeakActivity-release-signed.apk |
|
|
$ adb install -r bin/eSpeakActivity-release-signed.apk |
|
|
|
|
|
|
|
|
## Enabling eSpeak on the Device |
|
|
|
|
|
|
|
|
### Enabling eSpeak on the Device |
|
|
|
|
|
|
|
|
After running, `eSpeakActivity` will extract the `espeakdata.zip` file into its |
|
|
After running, `eSpeakActivity` will extract the `espeakdata.zip` file into its |
|
|
own data directory to set up the available voices. |
|
|
own data directory to set up the available voices. |