Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Cargo #2

Open
Bear-03 opened this issue Apr 30, 2022 · 4 comments
Open

Using with Cargo #2

Bear-03 opened this issue Apr 30, 2022 · 4 comments

Comments

@Bear-03
Copy link

Bear-03 commented Apr 30, 2022

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.

@reivilibre
Copy link

reivilibre commented Jun 12, 2022

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?)

@Bear-03
Copy link
Author

Bear-03 commented Jun 29, 2022

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!

@acro5piano
Copy link

@Bear-03 Thank you.

@Bear-03
Copy link
Author

Bear-03 commented Jul 4, 2022

@acro5piano You're welcome! I'm happy to help :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants