How to Pass Audio from Input to Output on Linux (Like Windows “Listen to Device”)

Loopback audio setup on Linux with monitor and headphones illustration.

Introduction

If you’ve ever used Windows, you might have seen the option “Listen to this device” — it lets you hear your microphone or line-in directly through your speakers. On Linux, this feature is called loopback monitoring.

The process varies depending on your audio system — PulseAudio, PipeWire, or ALSA — but all methods achieve the same thing: routing audio from your input to your output in real time.

This beginner-friendly guide will walk you step-by-step through each method, with both command-line and graphical options.


(generated with the help of ChatGPT)


In-Page Navigation


Using PulseAudio

PulseAudio was the default audio server on many Linux distributions before 2022.

Enable Loopback

Open a terminal and run:

Bash
pactl load-module module-loopback latency_msec=1

This routes your default input to your default output with minimal delay.

Choose Specific Devices

List all devices:

Bash
pactl list short sources
pactl list short sinks

Then specify them:

Bash
pactl load-module module-loopback source="alsa_input.pci-0000_00_1f.3.analog-stereo" sink="alsa_output.pci-0000_00_1f.3.analog-stereo" latency_msec=1

Disable Loopback

Bash
pactl unload-module module-loopback

Using PipeWire

PipeWire is the modern default on many distros like Fedora, Ubuntu 22.10+, and newer Arch-based setups.

The good news: PipeWire supports the same PulseAudio commands. You can use:

Bash
pactl load-module module-loopback latency_msec=1

Visual Connection with Helvum

  1. Install Helvum:
Bash
sudo apt install helvum    # Debian/Ubuntu  
sudo dnf install helvum    # Fedora
  1. Open Helvum
  2. Drag a cable from your input device to your output device
  3. Done — live monitoring activated.

Using Pure ALSA

If you’re running ALSA without PulseAudio or PipeWire, you can still monitor audio.

Basic command:

Bash
arecord -f cd - | aplay

Lower latency:

Bash
arecord -f cd --buffer-size=256 - | aplay --buffer-size=256

You can also specify devices with -D hw:1,0.


Graphical Tools

If the terminal feels intimidating, you can achieve the same with GUIs:

  • pavucontrol (PulseAudio Volume Control) → Input Devices tab → Enable Monitor or Loopback
  • Helvum (PipeWire) → Drag-and-drop audio routing
  • Cadence / Catia (for JACK users) → Connect devices in Patchbay

Final Tips

  • For the lowest delay, experiment with latency_msec or ALSA buffer sizes.
  • Use headphones when monitoring to avoid feedback loops.
  • If you only need to check sound occasionally, unload the module to save CPU.

Additional Resources

Related or Similar content

High fidelity PC graphics and audio sources in mix.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *