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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
Stupid question indeed, try to use google before you ask
Read
http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-
android/
-.-
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.
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