First, open a terminal. You want to use module-loopback
to send input from a source right back to a sink. @MadMike's answer is alright if you just have one sink and one source, but you'll most likely have more.
First, find the source you want to use, type pactl list sources
to get a list of your sources. Then, find the sink you want to loop back the same way, using pactl list sinks
. Remember the names, on a default setup (using module-udev-detect
) these will look like alsa_input.pci-0000_00_1b.0.analog-stereo
Next, you want to actually load module-loopback
. This works the way @MadMike explained it, just be sure to include the sink and source names like this:
load-module module-loopback sink=alsa_output.pci-0000_00_1b.0.analog-stereo source=alsa_input.pci-0000_00_1b.0.analog-stereo
If you put this into your system-wide configuration (default.pa
), put it at the end and wrap it into .fail
and .nofail
, so Pulse will still start even when the device is unplugged.
.nofail
load-module module-loopback sink=alsa_output.pci-0000_00_1b.0.analog-stereo source=alsa_input.pci-0000_00_1b.0.analog-stereo
.fail
When replugging the device, you'll also need to restart pulseaudio with pulseaudio -K
(breaks active streams, restarts pulse immediately when autospawn is on)