-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
vosk.NewModel error in Golang #1638
Comments
You probably misunderstood how imports work. You should not download github.com, better follow the example in the code. |
I'm trying with example/test.go. Also I downloaded the package using 'go get' command. The package version is 0.3.50. |
On the screen shot you have some strange STT.go, not really example/test.go |
@nshmyrev I'm running into the exact same issue. I'm running the test code with go v1.20.6 and I get the same undefined errors for NewModel and NewRecognizer. I've also used |
@theredcameron did you try the instructions please? https://github.com/alphacep/vosk-api/tree/master/go/example#readme |
@nshmyrev Yes, I did follow the instructions. |
My apologies, I had not set CGO_ENABLED equal to 1. It was equal to 0. It works now. |
@fantastic0101 Make sure the CGO_ENABLED environment variable is set to 1. |
Hello. everyone.
I hope you are doing well.
Now, I have encountered this problem in Golang programing.
I tried to execute the example code in Golang but there is an issue like this.
I already downloaded the "github.com/alphacep/vosk-api/go".
Please let me know about how to solve this issue.
Thank you.
The text was updated successfully, but these errors were encountered: