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

Golang bindings #269

Closed
chrisbward opened this issue Dec 13, 2022 · 9 comments
Closed

Golang bindings #269

chrisbward opened this issue Dec 13, 2022 · 9 comments
Labels
bindings Bindings for other languages

Comments

@chrisbward
Copy link

Just keen to see these, and I'm now looking how to make this happen - I'm fairly new to this part of Go. Would anyone like to collaborate?

Ideally I'd like to be able to fire off set commands to Whisper and have it trigger actions - a pretty standard affair, but not sure how to begin?

Chris

@ggerganov ggerganov added the bindings Bindings for other languages label Dec 13, 2022
@jaybinks
Copy link
Contributor

jaybinks commented Dec 13, 2022 via email

@djthorpe
Copy link
Contributor

I created the beginnings of some "golang" bindings here:

https://github.com/djthorpe/go-whisper

Specifically, the "sys/whisper" directory is staight bindings to the function calls in whisper.cpp and a more golang-style interface under "pkg/whisper". All needs a lot more work and some tests however.

@jaybinks
Copy link
Contributor

jaybinks commented Dec 13, 2022 via email

@djthorpe
Copy link
Contributor

Well I took a bit of a different approach, but how about this...

I'll clone your repository https://github.com/jaybinks/whisper.cpp and copy in my sys/whisper implementation into there. I'll send you a pull request, and when you're satisfied you can then send a pull request to the original author? I think that way, you can continue to have a say in how these get merged in?

I should have some time over the next week. LMK what you think.

@chrisbward
Copy link
Author

Well done guys! I can assist by helping with testing and writing some quick apps/docs!

@djthorpe
Copy link
Contributor

Because your repo was so out-of-date @jaybinks I just made a PR directly against Georgi's.

@jaybinks
Copy link
Contributor

jaybinks commented Dec 18, 2022 via email

@djthorpe
Copy link
Contributor

@ggerganov probably worth closing this issue now that the go bindings (albeit early version) are merged (thanks!). If you have future issues around the go bindings, feel free to assign me and I will take a look.

@ggerganov
Copy link
Owner

I just added a reference to the bindings in the main README.md and created a Github Discussion for future discussions on this topic:

#312

Thanks again for the contributions!

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

No branches or pull requests

4 participants