This is a app with a conversational ai, so you can talk to him and he will answer.
- Are you running your app locally or is it deployed?
When i ran it locally everything worked as wanted, but as soon as i wanted to deploy i run into error
- Share the link to your app’s public GitHub repository (including a requirements file).
MaxaroProjects/VoiceBot/test.py at main · BenjaminGraziadei223946/MaxaroProjects (github.com)
- Share the full text of the error message (not a screenshot).
RuntimeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.__dict__)File "/mount/src/maxaroprojects/VoiceBot/test.py", line 28, in <module> speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config)File "/home/adminuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/speech.py", line 2149, in __init__ _call_hr_fn(fn=_sdk_lib.synthesizer_create_speech_synthesizer_from_config, *[File "/home/adminuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/interop.py", line 62, in _call_hr_fn _raise_if_failed(hr)File "/home/adminuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/interop.py", line 55, in _raise_if_failed __try_get_error(_spx_handle(hr))File "/home/adminuser/venv/lib/python3.9/site-packages/azure/cognitiveservices/speech/interop.py", line 50, in __try_get_error raise RuntimeError(message)
- Share the Streamlit and Python versions.
it seems the error only arises when trying to initialize the SpeechSynthesizer, but setting the configurations is no problem.