Issue in Speech-to-Text Integration in Azure Function App: Timeout Issues and Storage Considerations
I have a code that is working locally, but when I update the same code in an Event Grid Function App, it doesn't work. The function app is not capable of storing and retrieving from local storage. I created a temporary file path and sent it to the speech-to-text service. The process works up to the line "speech_recognizer.recognized.connect(recognised)", but it does not generate the transcript. After some time, I receive a timeout issue, even for a 2 MB video.
Before trying the speech-to-text conversion, I tested uploading the temporary file path (wav file) to Blob Storage, and it worked. This code is included at the end of my script.
What could be causing this issue? I would appreciate any help or insights.