pw-loopback(1)
Create virtual loopback audio devices for PipeWire to route audio between applications.
Synopsis
pw-loopback [OPTION]... [ARGS]...Description
pw-loopback creates virtual loopback devices in PipeWire that allow audio from one application to be captured by another. This is useful for recording audio output, virtual audio routing, and software mixing scenarios where you want to chain multiple audio applications together.
The loopback device appears as both a playback and recording device in PipeWire, creating a virtual audio "cable" between applications without requiring actual hardware.
Common options
| Flag | What it does |
|---|---|
--help | Show help message and exit |
--version | Show version information |
-C, --config | Load configuration from file |
-p, --playback | Playback device number or name |
-r, --record | Recording device number or name |
-m, --monitor | Monitor the loopback device (stay running) |
-n, --name | Set custom name for the loopback device |
-l, --latency | Set latency in samples |
Examples
Create a basic loopback device that automatically connects playback to recording
pw-loopbackCreate and monitor a loopback device, keeping it active until terminated
pw-loopback -mCreate a loopback device with a custom name and keep it running
pw-loopback -n 'My Loopback' -mCreate a loopback with 256 samples latency for lower delay
pw-loopback --latency 256Create loopback connected to a specific ALSA output device
pw-loopback -p alsa_output.pci-0000_00_1f.3.analog-stereo -mCreate loopback in background, automatically stop after 5 minutes
pw-loopback & sleep 300 && pkill pw-loopback