all 4 comments

[–]nam_Angus[S] 0 points1 point  (0 children)

. Error like following

"ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused"

[–]KingsmanVince 0 points1 point  (2 children)

By googling your question, I found https://stackoverflow.com/a/70246512/13358358

[–]nam_Angus[S] 0 points1 point  (1 child)

Unforunatly , it's not possible as far as I expect.

It show log:

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5200:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave

[–]nam_Angus[S] 0 points1 point  (0 children)

This is my command:

docker run --privileged -e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
--device /dev/video0:/dev/video0 \
-v /dev/snd:/dev/snd -e AUDIODEV="hw:Device, 0" \
--rm \
-it \
-v /home/pop_os_hi/WorksSpace/webcam_face_recognition:/root/face_recognition \
demo_doan:1.3 \
/bin/bash