Reece H. Dunn 48fa803bc4 TtsService.java: ensure that the voice data is installed/upgraded correctly.
When using assistive technology like TalkBack and not accessing
either the eSpeak application or the Android TTS settings
directly, the voice data would previously not be installed/upgraded
correctly.

The approach here is to move the logic to onIsLanguageAvailable so
that if the espeak voice data is not installed or is upgradable
then trigger an install of the voice data and return
TextToSpeech.LANG_MISSING_DATA.
2013-02-12 12:21:34 +00:00
2013-01-19 14:33:40 +00:00
2012-12-10 16:49:26 +00:00
2013-01-30 16:39:52 +00:00
2013-01-25 16:34:39 +00:00
2013-01-25 16:34:39 +00:00

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 if building the espeak-data zip files)

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. Open Eclipse.

  3. Create a new workspace.

  4. Import the espeak folder as an exising Android project.

  5. Build the espeak apk within Eclipse.

In order to build the espeakdata.zip file in android/res/raw, you need to run the following commands:

$ ./autogen.sh
$ ./configure --prefix=/usr
$ make android

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.
S
Description
No description provided
Readme
63 MiB
Languages
C 78%
Java 9.2%
Shell 4.2%
Python 1.9%
Makefile 1.6%
Other 5.1%