Hi Indira,
Thanks for sharing the code,I see you are using filename parameter to specify the BlobUrl. Instead make sure it is done in the below way
- Download audio file from Azure blob storage using container_client and write to temporary file on disk
- Pass the temporary file to the filename parameter in your above code.
Process audio :
try:
with open(filename, "wb") as audio_file:
audio_data = container_client.download_blob(filename).readall()
audio_file.write(audio_data)
result = speechsdk.audio.AudioConfig(filename=filename, lang_id, speech_config)
finally:
os.remove(filename)
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.