Kaljurand / K6nele

An Android app that offers speech-to-text user interfaces to other apps
http://kaljurand.github.io/K6nele/
Apache License 2.0
267 stars 83 forks source link

How difficult it would be to add offline speech recognition backend #78

Closed andreytkachenko closed 3 years ago

andreytkachenko commented 3 years ago

It would be great if anyone give me the brief introduction of the structure of the project and what will I need to create/change to add vosk-api backend with Russian and English models. I am a Rust developer and have no experience in android development. Thank You.

Kaljurand commented 3 years ago

From the Kõnele perspective it would be best if you implemented a separate app that wraps the vosk-api into an implementation of Android's RecognitionService (https://developer.android.com/reference/android/speech/RecognitionService). Once this app is installed on the device, Kõnele will be able to list it as one of the available services and the Kõnele user can select it as one of its default services. Here are some examples of RecognitionService implementations:

So you could fork one of the above projects and try to inject the vosk-api java code (or its Android demo) into this fork. I have no experience with Vosk, so cannot help further with that.

andreytkachenko commented 3 years ago

Great explanation! Thank you.