[pulseaudio-discuss] container support

guest271314 guest271314 at gmail.com
Sat Dec 12 15:57:47 UTC 2020


> *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 at gmail.com> 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:
>
>
>    - https://forums.centos.org/viewtopic.php?f=54&t=76643
>
>
> Any help would be much appreciated.
> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20201212/cbc08515/attachment.htm>


More information about the pulseaudio-discuss mailing list