mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 15:12:24 +00:00
Makefile.am: add an android target to build the espeak-data.zip espeak-data-en_only.zip data files.
This commit is contained in:
@@ -6,6 +6,11 @@
|
||||
|
||||
*.o
|
||||
|
||||
# android build output:
|
||||
|
||||
espeak-data.zip
|
||||
espeak-data-en_only.zip
|
||||
|
||||
# autotools
|
||||
|
||||
AUTHORS
|
||||
|
||||
+17
-1
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user