PageRenderTime 12ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/PlaceHolderTTSEngine/native/README

http://eyes-free.googlecode.com/
#! | 30 lines | 19 code | 11 blank | 0 comment | 0 complexity | 5a8a1cb3b9646c72387073eb8db43ad8 MD5 | raw file
 1This directory contains an example of how to define a TTS provider.
 2
 3This examples consists of two parts.
 4The native code part, which resides in Application.mk and project/...,
 5must be built with the Android NDK:
 6
 7   unzip android-ndk-1.6_r1.zip
 8   cd android-ndk-1.6_r1
 9
10   cd apps
11   ln -s ../../eyes-free/PlaceHolderTTSEngine PlaceHolderTTSEngine
12   cd ..
13
14   # Bug work-around: change "==" to "=" in line 119 of build/host-setup.sh
15   sed -i.bak 's/"$result" == "Pass"/"$result" = "Pass"/' build/host-setup.sh
16
17   ./build/host-setup.sh
18
19   make APP=PlaceHolderTTSEngine
20
21This will generate a file
22
23   project/libs/armeabi/libPlaceHolderTTSEngine.so
24
25which should be copied to
26
27   libs/armeabi/libttsplaceholder.so
28
29The Java part, which resides in AndroidManifest.xml and in src/...,
30must be built according to the instructions in ../README.