[pulseaudio-discuss] Map sink-input to virtual microphone

guest271314 guest271314 at gmail.com
Tue Dec 22 05:16:50 UTC 2020


How to play the sink input to a null-sink? Do you mean keep parec running,
writing to a file https://stackoverflow.com/a/43553706 ? Is there a
--monitor-stream equivalent module? Perhaps I do not gather what you are
describing, can you kindly post the basic commands to pipe the sink-input
to a null-sink?

On Tue, Dec 22, 2020 at 2:53 AM Arun Raghavan <arun at arunraghavan.net> wrote:

> On Mon, 21 Dec 2020, at 9:52 AM, guest271314 wrote:
> > A virtual microphone can be created using module-remap-source
> >
> https://aweirdimagination.net/2020/07/19/virtual-microphone-using-gstreamer-and-pulseaudio/
> >
> > pactl load-module module-remap-source \ master=virtmic.monitor
> > source_name=virtmic \
> > source_properties=device.description=Virtual_Microphone
> >
> > AFAICT a sink-input cannot be set as the source for the virtual
> microphone.
> >
> > A sink-input can be recorded using parec or parecord --monitor-stream
> option
> >
> > parecord -v -r --monitor-stream=26 --file-format=wav output.wav
> >
> > How to set a sink-input as source for the virtual microphone so that
> > the output of the sink-input is still played back to speakers or
> > headphones and simultaneously is the source of the virtual microphone?
>
> You could use module-combine-sink to play that sink input to a null-sink
> and the real sink, and then use the null-sink's monitor as your source.
>
> -- Arun
> _______________________________________________
> 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/20201222/5130a8f4/attachment.htm>


More information about the pulseaudio-discuss mailing list