Question

I am really new to the java & android apps development. Currently I'm doing a prototype application about the voice recognition. Which use the sphinx4 speech recognition. I'm really no idea that, is that Sphinx4 can be used on the android SDK?

Using Sphinx4.0 to build a speech recog. Android application (this shows that, it can't) https://sourceforge.net/p/cmusphinx/discussion/sphinx4/thread/ce6ee093/ (But this said it can.)

if yes, i really no idea how to make use of the sphinx4, anyone can kindly provide the guide for me to complete the prototype? Thanks for your kindly help.

Was it helpful?

Solution 2

I also tried to do some App with Pocketsphinx, not Sphinx4. I think this is really not designed for android, but maybe You could get it work. But for which reason? PocketSphinx is a good designed API for including in Android. I had mad some tutorial on my website for how to get the Pocketsphinx work, I advise to stop thinking about Sphinx4 because it would be a heavy coding thing to get it work. PocketSpinx has all You need...look at my Tutorial, this is a better way:

https://sites.google.com/site/opiatefuchs/home/pocketsphinxandroiddemo

Until now I stopped working on it, but when I got time, I will start to include Pocketsphix into an apk. But this tut only shows how to get the example demo work and set up Your runtime environment to work with Pocketsphinx.

OTHER TIPS

It is possible to run Sphinx4 on android, however, you need to remove sphinx4 parts that use desktop-specific java api like java sound API. You still can have the core in place and demo should work as expected.

You need to reimplement Microphone class to use android API for sound input.

For more details see the discussion about that:

https://sourceforge.net/p/cmusphinx/mailman/message/31317160/

So it is some work and it requires coding skills. If you don't have that, use pocketsphinx instead like Opiatefuchs suggests you. It's well documented approach which requires minimum efforts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top