Open Bear-03 opened 2 years ago
It would also increase the visibility a little bit. I thought I was going to have to make my own bindings because I didn't see any on lib.rs, but I am glad I found this repository.
I wonder if the (apparent) difficulty in compiling vosk_sys is the blocker for pushing this up to crates.io? It's also possible that the author doesn't have time to maintain this; if that's the case it would be good to know (this already existing is phenomenal and perhaps someone else may be able to step up to maintain it?)
Seeing that this crate looks unmaintained, and I was also interested in learning ffi, I ended up writing my own bindings for vosk. I took inspiration from this crate, but I decided to add a few improvements: I used NonNull
pointers instead of *mut
to wrap all the C structs, and I added the code needed for speaker identification (This crate implemented the SpkModel, but the recognizer results didn't store the speaker info returned by vosk). There are some other minor things I decided to change, mostly to make the wrapper not so "C-like", and I also published it to crates.io!
@Bear-03 Thank you.
@acro5piano You're welcome! I'm happy to help :D
Hello! Is this crate going to be uploaded to crates.io anytime soon? I'd like to use it and it's handier to do it that way.