Azure cognitiveservices runtime error

Hi,
I want to build a gradio app on spaces. I use microsoft azure cognitiveservices in the “app.py” file. The space gave me an error as follows,

The following code is the way how I use azure cognitiveservices in my code,

import azure.cognitiveservices.speech as speechsdk
speech_config = speechsdk.SpeechConfig(subscription=os.getenv('SPEECH_KEY'), region=os.getenv('SPEECH_REGION'))
speech_config.speech_synthesis_voice_name = 'en-US-JennyNeural'
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=None)    # Error happens on this line !

I have added the “packages.txt” file and the “requirements.txt” at the root of the project, and the content of this file is as follows,

packages.txt

build-essential 
libssl-dev 
ca-certificates 
libasound2 
wget

requirements.txt

azure-cognitiveservices-speech

Is anyone know how to fix this issue? Thanks…

I got the same error. Have you found the solution yet?