I added a microphone using a USB device to an existing Docker container. The docker container can read from the USB port but can not read from the microphone itself. It means the container identifies the USB port as empty. I am using a docker-compose file to start the container. I think that I need to set the default input device (microphone) in the docker container to be the same as the system but I do not know how to do it.
microphone:
privileged: True
build:
context: microphone
dockerfile: ./dockerfile
image: microphone
container_name: microphone
restart: "no"
devices:
- /dev/bus/usb:/dev/bus/usb
How can I make the container read the microphone? How do I see the default input and output devices in the container and how to adjust them?
OS Version is ubuntu 20.04.3 LTSand the App version is Docker Engine 20.10.10 Thanks for your answers.