Browse Source

Makefile.am: add an android target to build the espeak-data.zip espeak-data-en_only.zip data files.

master
Reece H. Dunn 12 years ago
parent
commit
a953b93613
3 changed files with 29 additions and 1 deletions
  1. 5
    0
      .gitignore
  2. 17
    1
      Makefile.am
  3. 7
    0
      README.md

+ 5
- 0
.gitignore View File

@@ -6,6 +6,11 @@

*.o

# android build output:

espeak-data.zip
espeak-data-en_only.zip

# autotools

AUTHORS

+ 17
- 1
Makefile.am View File

@@ -123,9 +123,25 @@ espeak-data/phsource/dir.stamp: phsource/ph_* phsource/phonemes phsource/intonat
espeak-data/phontab: src/espeakedit espeak-data/dir.stamp espeak-data/dictsource/dir.stamp espeak-data/phsource/dir.stamp
src/espeakedit --compile

##### android language data packs:

espeak-data.zip: espeak-data/dir.stamp espeak-data/phontab dictionaries
rm -f $@
cd espeak-data && zip -r ../$@ \
intonations phondata phonindex phontab \
*_dict voices

espeak-data-en_only.zip: espeak-data/dir.stamp espeak-data/phontab espeak-data/en_dict
echo rm -f $@
cd espeak-data && zip -r ../$@ \
intonations phondata phonindex phontab \
en_dict voices/en

android: espeak-data.zip espeak-data-en_only.zip

##### dictionaries:

dictionaries: \
dictionaries: src/espeak \
espeak-data/af_dict \
espeak-data/ak_dict \
espeak-data/am_dict \

+ 7
- 0
README.md View File

@@ -12,6 +12,7 @@ configured correctly:
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)

## Building

@@ -23,6 +24,12 @@ configured correctly:
4. Import the espeak folder as an exising Android project.
5. Build the espeak apk within Eclipse.

In order to build the `espeak-data.zip` and `espeak-data-en_only.zip` data files, 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

Loading…
Cancel
Save