> Moreover it should be possible that different docker containers can access the microphone and speaker at the same time.
> Any help would be much appreciated.
I have not used pulseaudio server/client functionality. I have used pulse audio to get system audio and specific application audio output in Firefox and streamed that data to Chrome and Chromium, which does not support capturing system audio.
One option would be to serve the audio data using parec or parecord from
> CentOs 8 on a headless device (intel-nuc)
where
> my docker containers should be able to use pulseaudio client to communicate with the pulseaudio server
request and receive PCM or PCM re-encoded to a different codec.
This can be achieved using a server-client template, e.g., fetch('/http://localhost:1234?device=microphone'), parse the PCM response at the client containers https://github.com/WebAudio/web-audio-api-v2/issues/97#issue-688754941. Other means of achieving the requirement include using WebRTC PeerConnection https://gist.github.com/guest271314/04a539c00926e15905b86d05138c113c.
PulseAudio has a WebRTC Audio Processing component though I have not tried that either. See also https://github.com/aiortc/aiortc; https://git.aweirdimagination.net/perelman/minimal-webrtc-gstreamer.
On Sat, Dec 12, 2020 at 7:19 AM Jan Van den Audenaerde <jan.vandenaudenaerde@xxxxxxxxx> wrote:
Hi,_______________________________________________I have spend several days without success figuring out how I can use pulseaudio in a container setup on an embedded device.I am running CentOs 8 on a headless device (intel-nuc) which is also running docker.
I would like to run pulseaudio server on the host (CentOs 8) and my docker containers should be able to use pulseaudio client to communicate with the pulseaudio server via pulseaudio unix socket.
Moreover it should be possible that different docker containers can access the microphone and speaker at the same time.The main problem I am facing I have reported in following forum post:I also think that pulseaudio has the good requirements for use in a container setup if I only can make it work.Jan.
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
_______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss