Hello,
I know there's a android tutorial (http://cmusphinx.sourceforge.net/wiki/tutorialandroid), but what I want is not a standalone app, but rather a library that any user land sw (not necessarily apk) can call, to detect certain words in a passed in audio stream (I have complete control of it).
I wonder if there's any document that explains the various parts inside the sphix. From code browse, I see the sphinxbase package contains alsa code (src/libsphinxad/ad_alsa.c) which I don't need.
To port it over I think I will need to write the Android.mk files (not using IDE). Just wonder if anyone has done so.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Android development moved from Android.mk files to cmake. Pocketsphinx on android is already distributed as a library (AAR file actually). You can modify it according to your needs. For more details actually read
Hello,
I know there's a android tutorial (http://cmusphinx.sourceforge.net/wiki/tutorialandroid), but what I want is not a standalone app, but rather a library that any user land sw (not necessarily apk) can call, to detect certain words in a passed in audio stream (I have complete control of it).
I wonder if there's any document that explains the various parts inside the sphix. From code browse, I see the sphinxbase package contains alsa code (src/libsphinxad/ad_alsa.c) which I don't need.
To port it over I think I will need to write the Android.mk files (not using IDE). Just wonder if anyone has done so.
Thanks!
Android development moved from Android.mk files to cmake. Pocketsphinx on android is already distributed as a library (AAR file actually). You can modify it according to your needs. For more details actually read
http://cmusphinx.sourceforge.net/wiki/tutorialandroid
see the sources
http://github.com/cmusphinx/pocketsphinx-android
Sorry this didn't answer my question. I want a lower level interface (C/C++), not java. And the library is not AAR or JAR, but some kind of .so.
You still have to use cmake and gradle. The example is in the repository linked above.