Question regarding deploy azure speech sdk on streamlit

Hello everyone,

I’m quite new in using streamlit and building web apps.

I encountered errors:
[CALL STACK BEGIN]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1d2181) [0x7ff1e27d2181]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1ef2c1) [0x7ff1e27ef2c1]
/lib/x86_64-linux-gnu/libc.so.6(+0x8de37) [0x7ff1fbb88e37]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1f034e) [0x7ff1e27f034e]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1a6d3b) [0x7ff1e27a6d3b]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1a65e7) [0x7ff1e27a65e7]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1d9654) [0x7ff1e27d9654]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1b3d6a) [0x7ff1e27b3d6a]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1c47fa) [0x7ff1e27c47fa]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0xe9b41) [0x7ff1e26e9b41]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1d9654) [0x7ff1e27d9654]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1bc453) [0x7ff1e27bc453]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(+0x1fd4be) [0x7ff1e27fd4be]
/home/appuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/libMicrosoft.CognitiveServices.Speech.core.so(synthesizer_create_speech_synthesizer_from_config+0xf3) [0x7ff1e26a1bd8]
/lib/x86_64-linux-gnu/libffi.so.8(+0x6f7a) [0x7ff1fa906f7a]
/lib/x86_64-linux-gnu/libffi.so.8(+0x640e) [0x7ff1fa90640e]
/lib/x86_64-linux-gnu/libffi.so.8(ffi_call+0xcd) [0x7ff1fa906b0d]
[CALL STACK END]
Runtime error: Failed to initialize platform (azure-c-shared). Error: 2153

Even after I included required dependencies in packages.txt following the guideline:

Does anyone have idea what is going on?

Thank you!

1 Like

Hi, have you managed to fix this? I’ve also run into this problem. The app works fine locally but doesn’t work when deployed to Streamlit Cloud.

I’ve managed to find a solution. Instead of installing azure speech sdk, I use the method used in this repo: GitHub - hipnologo/openai_azure_text2speech: Python script generates speech from a webpage URL prompt using OpenAI and Azure APIs, with Streamlit display.

1 Like

Hi quang, thank you for the information!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.