Thanks for posting your question in the Microsoft Q&A forum.
The Azure VM doesn't have access to the user's local microphone. When deployed on a remote server, the app can't directly interact with the client's hardware
To capture audio from the user's microphone, you need to use a browser-based approach. This involves using JavaScript to access the client's microphone and then sending the audio data to your Streamlit app
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful