alphacep / vosk-android-demo

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

is it possible to get speaker id from it? #89

Closed easedroid closed 4 years ago

easedroid commented 4 years ago

I want the speaker identification along with the output, and if it does then can you please share some sample code?

nshmyrev commented 4 years ago

With recent update you can initialize recognizer with spk model:

https://github.com/alphacep/vosk-api/blob/dff4ab26e42e80c77ad742e179708e4c453d9a4b/java/test/DecoderTest.java#L24