Getting error code 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND) when deployed to cloud.

Sajib Hossain 0 Reputation points
2024-10-30T11:40:14.46+00:00

I am working on an interactive real time communication that uses both speech synthesizer and recognizer. In development it is working fine but when I deployed through azure web app in a Linux server it was giving the error. I don't want to process any audio here neither "output.wav". Is there any way I can configure the speech service SDK to use the user microphone on the browser to take audio input for real time recognition.

RuntimeError: Exception with error code: [CALL STACK BEGIN]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0xdfb2d) [0x7dd6312f7b2d]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x18d400) [0x7dd6313a5400]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0xa5d6c) [0x7dd6312bdd6c]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x18b4fb) [0x7dd6313a34fb]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0xdd761) [0x7dd6312f5761]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0xe0db7) [0x7dd6312f8db7]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x145ac7) [0x7dd63135dac7]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x145ac7) [0x7dd63135dac7]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x100f7d) [0x7dd631318f7d]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x13d180) [0x7dd631355180]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x983d3) [0x7dd6312b03d3]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x13b5d3) [0x7dd6313535d3]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x90cc9) [0x7dd6312a8cc9]/home/adminuser/venv/lib/python3.12/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(recognizer_create_speech_recognizer_from_config+0x114) [0x7dd6313ed734]/usr/lib/x86_64-linux-gnu/libffi.so.7(+0x6d1d) [0x7dd638260d1d]/usr/lib/x86_64-linux-gnu/libffi.so.7(+0x6289) [0x7dd638260289]/usr/local/lib/python3.12/lib-dynload/_ctypes.cpython-312-x86_64-linux-gnu.so(+0x12ffb) [0x7dd63827dffb][CALL STACK END]Exception with an error code: 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND)
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,765 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 52,596 Reputation points
    2024-10-31T00:21:30.1166667+00:00

    @Sajib Hossain

    Thanks for reaching out to us, I have seen the same issue when there is a minor package missing, please check on the pre-requisites repo and make sure you have dependencies installed.

    https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/quickstart/python/text-to-speech/quickstart.ipynb

    I also saw another customer have the same issue caused by lacking of libssl-dev libasound2.

    Please have a try and I hope it helps.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.