rayworks / KaldiDroidDemo

The scaffold project for Android apps to explore Kaldi.
Apache License 2.0
6 stars 1 forks source link

JNI wrappers for decoding #1

Open dpny518 opened 5 years ago

dpny518 commented 5 years ago

Could you try to add JNI wrappers like this https://github.com/ahmetaa/kaldi-jni/blob/master/cpp/jni/kaldi-jni.cc

for this code https://github.com/alphacep/kaldi-websocket-python/blob/master/kaldi_recognizer.cc

I think this will allow android decoding

rayworks commented 5 years ago

Hi @yondu22,thanks for pointing out that the project could have better decoders. Given that the spare time I have, probably I will start to implement the new feature from next month.

nanaghartey commented 5 years ago

@rayworks Thanks for this repo. I found a timer functionality in the mainactivity class. Besides that what does this project do? Is the goal to run kaldi on device (offline) like https://keenresearch.com/ ??

rayworks commented 5 years ago

@nanaghartey, the original purpose for this project is to have a PoC using kaldi on Android platform in offline mode.

Before this, we've used CMU PocketSphinx for a long time already, but recently we just found it doesn't work as expected for some cases.

nanaghartey commented 5 years ago

@rayworks alright but currently it seems there is no decoding functionality and as such speech recognition can't be performed like pocketsphinx right?

rayworks commented 5 years ago

No, not on the JNI level.

nanaghartey commented 5 years ago

Alright, Do you plan to add those features on the JNI level to it?

On Thursday, July 18, 2019, 1:06:33 PM GMT, rayworks <notifications@github.com> wrote:  

No, not on the JNI level.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

rayworks commented 5 years ago

Speaking of decoders, have you tried with this one? I will continue working on current project to fulfill a meaningful demo instead of an intermediate one. But I can't guarantee the completion time.

dpny518 commented 5 years ago

https://github.com/alphacep/kaldi-android-demo

nanaghartey commented 5 years ago

@yondu22 Thanks for the link. It builds and runs successfully however, the accuracy is poor. I keep getting wrong results. Did you face same issue?