[pulseaudio-discuss] How to create a virtual microphone with source set as default monitor device?

guest271314 guest271314 at gmail.com
Mon Sep 7 07:31:22 UTC 2020


> There are a couple of options. One is to simply redirect the sink input
once it is opened (e.g. with pavucontrol).

That option is used at
https://github.com/guest271314/captureSystemAudio#launch_pavucontrol.

For the pavucontrol option the next goal is to embed pavucontrol in an
HTML document.

> If you really need a non-monitor source device to be present, I think
your best option would be module-remap-source. It shouldn't be too hard
to come up with a "remap" that's just a passthrough:

> https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-remap-source

Chromium is expecting a microphone device. Currently if a monitor is
set at command line the capture throws an exception, see
https://bugs.chromium.org/p/chromium/issues/detail?id=931749.

Have so far tried kernel module and null-sink without achieving
capture of system audio.

What is the command for the remap option for this case?

On Sun, Sep 6, 2020 at 11:59 PM Sean Greenslade <sean at seangreenslade.com> wrote:
>
> On Sat, Sep 05, 2020 at 09:10:36AM -0700, guest271314 wrote:
> > Chromium browser does not support capture of monitor devices when
> > navigator.mediaDevices.getUserMedia() is called. Chromium only
> > supports capture of non-monitor microphone input devices.
> >
> > How to create a virtual microphone with source set as default monitor
> > device so that Chromium browser recognizes the virtual device as a
> > microphone while the source input for the microphone is the default
> > monitor?
>
> There are a couple of options. One is to simply redirect the sink input
> once it is opened (e.g. with pavucontrol).
>
> If you really need a non-monitor source device to be present, I think
> your best option would be module-remap-source. It shouldn't be too hard
> to come up with a "remap" that's just a passthrough:
>
> https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-remap-source
>
> --Sean
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


More information about the pulseaudio-discuss mailing list