Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.82k stars 1.83k forks source link

Trying to use Python SDK azure-cognitiveservices-speech with webm container on Mac OSX M1 #2556

Closed neeagl closed 3 weeks ago

neeagl commented 1 month ago

Installed the latest version of gstreamer on Mac using https://gstreamer.freedesktop.org/download/#macos but keep getting SPXERR_GSTREAMER_NOT_FOUND_ERROR

Please suggest a fix or a possible workaround.

pankopon commented 3 weeks ago

Hi, unfortunately compressed audio is only supported with GStreamer on Windows and Linux, see https://learn.microsoft.com/azure/ai-services/speech-service/how-to-use-codec-compressed-audio-input-streams?pivots=programming-language-python So you will have to convert any compressed audio to PCM before it can be used as Speech SDK input on macOS.