Closed dionysia-zhang closed 1 year ago
When can you provide the sdk on macos?
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.
@dionysia-zhang Thanks for sharing, yes speech SDK uses native libraries even with Go.
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
this is what I got:
go run speech-recognition ./speech-recognition.go:16:28: undefined: audio.NewAudioConfigFromWavFileInput ./speech-recognition.go:22:24: undefined: speech.NewSpeechConfigFromSubscription ./speech-recognition.go:28:34: undefined: speech.NewSpeechRecognizerFromConfig ./speech-recognition.go:34:52: undefined: speech.SessionEventArgs ./speech-recognition.go:38:52: undefined: speech.SessionEventArgs ./speech-recognition.go:44:21: undefined: speech.SpeechRecognitionOutcome
Could you please tell me the reason I cannot build it? Thanks~