diff --git a/.gitignore b/.gitignore index 20695542..e561e171 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,11 @@ *.o +# android build output: + +espeak-data.zip +espeak-data-en_only.zip + # autotools AUTHORS diff --git a/Makefile.am b/Makefile.am index ad491700..55933e2b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/README.md b/README.md index 2542eeec..67708ac0 100644 --- a/README.md +++ b/README.md @@ -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