alphacep / vosk-android-demo

Offline speech recognition for Android with Vosk library.
Apache License 2.0
708 stars 188 forks source link

Speaker Recognition #152

Open kerbaypapilon opened 3 years ago

kerbaypapilon commented 3 years ago

Hello, I want to make an app that recognizes speaker and I understand that I need to use Kaldi for that. I cannot figure out how to use Kaldi. I tried to add .aar file dependency but I cannot reach any Kaldi library classes or functions. Any guide how to activate Kaldi on this demo app?

Thanks!

nshmyrev commented 2 years ago

We have speaker recognition feature in Vosk, you can simply use it. See python for example.

See also

https://github.com/alphacep/vosk-api/issues/522

Dominapp commented 2 years ago

Is this possible to use speaker recognition in combination of grammar? I see the Recognizer constructor received only one option.

nshmyrev commented 2 years ago

Is this possible to use speaker recognition in combination of grammar? I see the Recognizer constructor received only one option.

Yes, you can use setSpkModel after construction:

https://github.com/alphacep/vosk-api/blob/master/java/lib/src/main/java/org/vosk/Recognizer.java#L26

MuhammadWaqar340 commented 2 months ago

Hello I see the speaker recognition python example but Can we use speaker recognition in android instead of using python? I explore the andriod speech recognition but i am unable to recognize speaker. If yes then kindly provide me some links that guides me how to use it in andriod.