Microphone Issue

Amr_Ahmed 0 Reputation points
2024-12-30T23:05:52.86+00:00

I'm hosting a Streamlit app on azure VM (with Ubuntu 22.04 OS) where I face an issue to record an input voice speech which is saved as an empty voice file with no sound. The issue is likely due to that the microphone is not accessed to record voice. So what I have to do?

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
368 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,658 questions
{count} votes

2 answers

Sort by: Most helpful
  1. hossein jalilian 9,535 Reputation points
    2024-12-30T23:50:51.2133333+00:00

    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

    0 comments No comments

  2. Mounika Reddy Anumandla 1,300 Reputation points Microsoft Vendor
    2024-12-31T07:22:13.8466667+00:00

    Hi Amr_Ahmed,Welcome to Microsoft Q&A Platform!

    If configuring VM audio becomes challenging, capture the audio in the browser and send it to the server.Example:

    As suggested by hossein jalilian, Use browser-based recording with JavaScript/HTML and send audio data to the Streamlit app.

    I have reproduced the scenario for you and here I am providing with the steps I have followed.

    User's image

    User's imageUser's image

    User's image

    User's image

    Let me know if you have any further queries.

    If the comment is helpful, please click "upvote" or tag me in the comments.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.