Hello @Sahba Vacha
Thanks for reaching out to us. Please make sure that you set the SPEECH_KEY
and SPEECH_REGION
environment variables as described in Set environment variables. If you don't set these variables, the sample fails with an error message.
More information please refer to the document here - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-to-text?tabs=linux%2Cterminal&pivots=programming-language-python#set-up-the-environment
I hope this helps, please let me know if you have any other questions.
Regards,
Yutong
-Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.