Install Pocketsphinx on Android

I have some questions about installing Pocketsphinx on and an Android phone, and I could not find answers in the CMUSphinx, IRC support forum, existing StackOverflow posts, or intensive Googling. If anyone has a minute and I want to help, I would really appreciate it.

Firstly, I'm confused about whether I can even install Pocketsphinx on Android. I believe that I need Java boxes to run on Android, so I tried installing Sphinx 4. To test the program, I did an empty operation and moved the HelloWorld demo file to the onCreate method.

Then I added the following paths to the build path:

  • js.jar
  • JSAPI-1,0-base.jar
  • JUnit-4.8.1.jar
  • sphinx4.jar
  • tags.jar
  • WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar

The code deploys on Droid 2 running Android 2.2, but at runtime I get the following error:

ERROR/AndroidRuntime(11567): Caused by: Property exception component:'wsjLoader' property:'location' - Can't locate resource:/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz

I am including this jar file in the build path, so I'm not sure why this throws an exception. But then again, I'm not even sure that I need to install Sphinx 4 on Android. Does anyone know what I should do? Thanks in advance for your help.

5/2011 Update: The attempt I made to launch pocketsphinx for Android is now listed on the CMU Sphinx wiki at http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/

+5
source share
5 answers

, , , . , PocketSphinx Android, , RecognizerTask.java.

+3
+2

, WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar , lib

, WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz lib. .

. , apk Installation error: INSTALL_FAILED_DEXOPT. , main() helloworld, .

oncreate, main() helloworld . ( ConfigurationManager helloworld.config.xml

, . ? , .config.xml .

0

, , PocketSphinx Android. " " *?

SIGSEV: { D/edu.cmu.pocketsphinx.demo.PocketSphinxDemo(1455): I/DEBUG (56): * ** * ** * ** * ** * ** * I/DEBUG (56): : "google/passion_vf/passion/mahimahi: 2.2.1/FRG83D/291266: / " I/DEBUG (56): pid: 1455, tid: 1475 → > edu.cmu.pocketsphinx.demo < I/DEBUG (56): 11 (SIGSEGV), addr 0000001c I/DEBUG (56): # 00 pc 00062192/data/data/edu.cmu.pocketsphinx.demo/lib/libpocketsphinx_jni.so

0

Sphinx 4 , Java, , Android Dalvik... Hello Android Android, Sphinx 4, ... , , sphinx jar, , , ... sphinx 4 ...

0

All Articles