Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add microphone access to container for multiple clients? #514

Open
mremasoudian opened this issue Oct 11, 2023 · 3 comments
Open
Labels

Comments

@mremasoudian
Copy link

I’m running into a frustrating problem. I installed an ubuntu version 20.04 and installed Docker on it

I started a container named linuxserver/firefox on Docker.

I tried to set up the microphone for users who use this image, but unfortunately I could not do this.

Is there a way to add microphone access to this image?

thanks a lot

@echuber2
Copy link
Contributor

I haven't tried using the microphone, but audio at least works with the PulseAudio option. Have you tried the options listed here?

https://github.com/mviereck/x11docker#sound
https://github.com/mviereck/x11docker#webcam

@mremasoudian
Copy link
Author

Thank you for your answer, Yes, I did what you said, but it was not possible to access the microphone. ☹️
I was able to share my host’s microphone with container before. And I was able to do this from the link below.
https://comp0016-team-24.github.io/dev/problem-solving/2020/10/30/passing-audio-into-docker.html

But I don’t want this
I want to make the container connect to the user’s driver like kasm workspace.But because using kasm is expensive for me, I don’t want to use it

@mviereck
Copy link
Owner

mviereck commented Apr 6, 2024

It should just work with --pulseaudio.
If not, build an image with pavucontrol and run pavucontrol with --pulseaudio in container to look for the microphone. It should appear there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants