Open fantastic0101 opened 1 month ago
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 go get github.com/alphacep/vosk-api/go
to obtain the library.
@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.