/PlaceHolderTTSEngine/native/README

http://eyes-free.googlecode.com/ · #! · 30 lines · 19 code · 11 blank · 0 comment · 0 complexity · 5a8a1cb3b9646c72387073eb8db43ad8 MD5 · raw file

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