How to use system audio output as microphone input?

I want to output my system audio output as a SEPERATE microphone entry that i can choose if I so desire.

This thread may be of interest to you…
https://www.reddit.com/r/linux_gaming/comments/rfnmq1/creating_a_virtual_microphone_on_pipewire/

Investigate using Helvum or qpwgraph for patching…

I tried the reddit post but i did not understand what this meant

One thing to pay attention here is that we use just youroutput without .monitor at the end. You can get its value from pactl info.

I tried running pactl info
but i did not see anything ending .monitor

so i got it working but how do i make it so that it is in stereo and automatically connects to the currently active audio output?


it keeps connecting to my webcam instead and i want it to connect to my system audio.

basically like this but with two inputs.
image

after fighing with it for a while i managed to make it automatic.

#!/usr/bin/env bash

# Create a virtual sink that can be set as a monitor
pactl load-module module-null-sink sink_name=VirtualSpeaker sink_properties=device.description=VirtualSpeaker

# Link it with a virtual source that is visible in pulseaudio apps like Zoom
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=VirtualMic channel_map=front-left,front-right
pw-link alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__Line__sink:monitor_FL VirtualMic:input_FL
pw-link alsa_output.usb-Generic_USB_Audio_200901010001-00.HiFi__Line__sink:monitor_FR VirtualMic:input_FR

Nice work. It may be useful to others who come searching. :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.