Menu

Using hello_ps.c on Android

Help
Hitarth
2012-06-13
2012-09-22
  • Hitarth

    Hitarth - 2012-06-13

    Hi,

    The tutorial at http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx describes how to
    come up with a Hello World program that is written in C and uses PocketSphinx
    and a pre recorded audio file in order to print out whatever is said in the
    audio file.

    Now this might be a stupid question, but how would I go about getting that
    program on to an Android device?

    Will I need to use NDK and stuff?

    Cheers

     
  • Nickolay V. Shmyrev

    Now this might be a stupid question, but how would I go about getting that
    program on to an Android device?

    Stupid question indeed, try to use google before you ask

    Will I need to use NDK and stuff?

    Read

    http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-
    android/

     
  • Hitarth

    Hitarth - 2012-06-15

    -.-

    I am sorry but I forgot to mention that I have already done that. What I meant
    was, what steps would I need to take in order to get hello_ps.c up and running
    on Android, the same way PocketSphinxAndroidDemo runs.

    Will I need to put hello_ps.c in the jni folder and make changes to the
    Android.mk and then run the ndk build? Will that be enough to get the output
    from hello_ps.c and display it in.. say a text box? Or are there more steps
    involved? That is the kind of information I was after.

    Hope that makes it seem less stupid.

     
  • Nickolay V. Shmyrev

    Will I need to put hello_ps.c in the jni folder and make changes to the
    Android.mk and then run the ndk build? Will that be enough to get the output
    from hello_ps.c and display it in.. say a text box? Or are there more steps
    involved? That is the kind of information I was after.

    Pocketsphinx library provides the functionality through the Java bindings. If
    you want to have an analog of the hello_ps you just need to implement it using
    the pocketsphinx API through the SWIG bindings. You can become familar with
    some concepts of software development with textbook or at least in Wikipedia

    http://en.wikipedia.org/wiki/Library_%28computing%29
    http://en.wikipedia.org/wiki/Application_programming_interface
    http://en.wikipedia.org/wiki/Language_binding

     

Log in to post a comment.