Debian audio routing with pipewire

Debian Bookworm and higher are moving away from pulseaudio and it is replaced by pipewire.

For those that where using audio routing with pulseaudio here is the pipewire replacement.

Place the following config in $HOME/.config/pipewire/pipewire.conf.d

custom.conf

context.modules = [
    {   name = libpipewire-module-loopback
        args = {
	    node.description = "My Loopback"
            audio.position = [ FL FR ]
            capture.props = {
                media.class = Audio/Sink
                node.name = my_virtual_sink
                node.description = "My Virtual Sink"
            }
            playback.props = {
                node.name = "my_virtual_sink.output"
                node.passive = true
                target.object = "my-default-sink"
            }
        }
    }
]

Restart pipewire systemctl --user restart pipewire and when starting pavucontrol you will see the new sink and loopback.

Jan | PE0SAT

4 Likes