Azure-Samples / cognitive-services-speech-sdk

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

SPXERR_GSTREAMER_NOT_FOUND_ERROR when trying to convert mp3 to text with Python 3.11 and azure-cognitiveservices-speech 1.38.0 on Windows10 #2427

Open taichi-asari-sti opened 5 months ago

taichi-asari-sti commented 5 months ago

I am encountering a RuntimeError: Exception with an error code: 0x29 (SPXERR_GSTREAMER_NOT_FOUND_ERROR) when trying to convert an mp3 file to text using the azure-cognitiveservices-speech package.

Here are the versions I am using:

I have successfully installed GStreamer and have correctly set the system environment variables and PATH according to the instructions on this page. I have also tried GStreamer versions 1.16.3 and 1.18.6, but the issue persists.

Here is the code where the error occurs:

speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_config)

The full error message is as follows:

RuntimeError: Exception with error code: [CALL STACK BEGIN]

[CALL STACK END]

Exception with an error code: 0x29 (SPXERR_GSTREAMER_NOT_FOUND_ERROR)

Any advice on how to resolve this issue would be greatly appreciated. If you need any additional information, please let me know.

Thank you for your assistance.

b-eiji-mitsumizo commented 4 months ago

I have the same issue...Need help...

github-actions[bot] commented 3 months ago

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.