microsoft / cognitive-services-speech-sdk-go

Go bindings for the Microsoft Cognitive Services Speech SDK
MIT License
88 stars 32 forks source link

cannot go build #114

Closed dionysia-zhang closed 1 year ago

dionysia-zhang commented 1 year ago

I am using the latest Go version:1.21.4 Ubuntu20.04 x64 I cannot build the code.

go mod init speech-recognition go get github.com/Microsoft/cognitive-services-speech-sdk-go go build go run speech-recognition

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-to-text?tabs=windows%2Cterminal&pivots=programming-language-go

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-recognize-speech?pivots=programming-language-go#recognize-speech-to-text-from-an-audio-file

Could you please tell me the reason I cannot build it? Thanks~

Trient commented 1 year ago
image

When can you provide the sdk on macos?

dionysia-zhang commented 1 year ago

I solved this problem: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/quickstarts/setup-platform?pivots=programming-language-go&tabs=windows%2Cubuntu%2Cdotnetcli%2Cdotnet%2Cjre%2Cmaven%2Cnodejs%2Cmac%2Cpypi

since this "Platform requirements" part started with python, I ignored the whole part...But I found that this is what required for Go(UNBELIEVABLE), I did the according steps, then everything is right.

jhakulin commented 1 year ago

@dionysia-zhang Thanks for sharing, yes speech SDK uses native libraries even with Go.