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

Build vosk-api GO in MacOS #1627

Open
sekulicd opened this issue Sep 8, 2024 · 4 comments
Open

Build vosk-api GO in MacOS #1627

sekulicd opened this issue Sep 8, 2024 · 4 comments

Comments

@sekulicd
Copy link

sekulicd commented Sep 8, 2024

How can i build vosk-api GO in MacOS?
Please provide instruction if i can run vosk-api go example in MacOS?

@mylordkaz
Copy link

Hi, i am facing the same issue, did you found how to do ?

@nshmyrev
Copy link
Collaborator

You need to download and unpack prebuilt Vosk library from here:

https://github.com/alphacep/vosk-api/releases/download/v0.3.42/vosk-osx-0.3.42.zip

then just add the module, it will be compiled automatically

@mylordkaz
Copy link

mylordkaz commented Sep 25, 2024

Oh thank you very much.

I still got this error:

go build
github.com/alphacep/vosk-api/go
../../../../go/pkg/mod/github.com/alphacep/vosk-api/go@v0.3.50/vosk.go:110:2: could not determine kind of name for C.vosk_recognizer_set_grm

could it be a miss match of version, as I am using the the latest binding 0.3.50 and the prebuild Vosk library is 0.3.42.

should I downgrade to match the version ?

I actually did downgrade to match but now when I try to build, i am getting:

ld: warning: search path '/Users/MyLord/go/pkg/mod/github.com/alphacep/vosk-api/go@v0.3.42/../src' not found

.. not really sure

@nshmyrev
Copy link
Collaborator

Yes, we do not have build for 0.3.50 yet

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

No branches or pull requests

3 participants