Menu

Installing pocketsphinx on Android

Help
z
2010-10-25
2012-09-22
  • z

    z - 2010-10-25

    Has anyone been able to install pocketsphinx on Android? I'm not really sure
    where to start.

    Thanks,
    Zach

     
  • z

    z - 2010-10-26

    Thanks for the link. I didn't know there was a PocketSphinx build for Android
    available.

    I downloaded the project and added it to my Eclipse projects, and I'm
    encountering these errors:

    The import edu.cmu.pocketsphinx.Config cannot be resolved
    The import edu.cmu.pocketsphinx.Decoder cannot be resolved  
    The import edu.cmu.pocketsphinx.Hypothesis cannot be resolved
    The import edu.cmu.pocketsphinx.pocketsphinx cannot be resolved
    

    I think that means I need to include some external JARs in my build path. Do
    you know where I can find these JARs?

    Thanks,
    Zach

     
  • Nickolay V. Shmyrev

    Missing files are created by swig from pocketsphinx swig interface. See swig
    folder in pocketsphinx snapshot, check makefile there.

     
  • z

    z - 2010-10-26

    I looked through the Android project, as well as the folder created by
    extracting pocketsphinx-0.6.1.tar.gz. Neither directory had a swig folder.
    Where can I find the pocketsphinx snapshot you're referring to?

    Thanks,
    Zach

     
  • z

    z - 2010-10-26

    Ok, I attempted to run "make" in the swig folder downloaded from the
    pocketsphinx snapshot, and I'm getting the following error:

    >> cd /home/zach/Desktop/cmusphinx-pocketsphinx/pocketsphinx/swig
    >> make
    mkdir -p edu/cmu/pocketsphinx
    swig -I../include -I../../sphinxbase/include \
            -java -package edu.cmu.pocketsphinx \
            -outdir edu/cmu/pocketsphinx pocketsphinx.i
    cc -g -Wall -DPIC -fPIC -I/usr/lib/jvm/default-java/include `pkg-config --cflags sphinxbase pocketsphinx`  -c -o pocketsphinx_wrap.o pocketsphinx_wrap.c
    pocketsphinx_wrap.c:135: fatal error: jni.h: No such file or directory
    compilation terminated.
    make: *** [pocketsphinx_wrap.o] Error 1
    

    Is there more source I should have?

    Thanks,
    Zach

     

Log in to post a comment.