How To Loopback/Monitor a Microphone using Pulseaudio on Linux

Sdílet
Vložit
  • čas přidán 21. 08. 2024
  • In this video, I show you how to enable loopback on a microphone for systems running Pulseaudio. This is how you would be able to listen to how the microphone sounds, similar to option in most audio hardware to allow direct monitoring.
    Pulseaudio includes a handy module to allow looping an input directly to an output, with relatively low latency. While not as good as hardware monitoring, its good enough for most uses.
    If you are on a rolling release or recent distro, you may have switched from Pulseaudio to Pipewire. If you're running Pipewire, you can use JACK applications to not only loop but run your audio through filters and all sorts of other neat stuff.
    This is very useful if you want to hear how your audio sounds in a call or before recording - I personally find it very hard to record without monitoring audio at the same time, but I think most people are the opposite.
    Caveat: This is stable on 16bit/48kHz streams. The times I have tried doing this on 24/96 used for recording, resulted in Pulseaudio randomly crashing and requiring a restart.
    All parameters and options for module-loopback and all other modules are available here:
    www.freedeskto...
    The commands used in the video are on my website at wiki.tonytasci... under the Linux Scripts section.
    This video is available under a CC-BY-NC-SA license on Peertube.
    Watch this video on Peertube: peertube.tonyt...
    Thanks for Watching!
    Produced by Tony Tascioglu
    tonytascioglu.com

Komentáře • 20

  • @vimicito
    @vimicito Před rokem +1

    Perfect, thank you!! For my (upcoming) video streams on Telegram, this is really useful. Now I can hear my audio input (Blue Snowball) from my headphones (Samson SR850), without all that excessive latency that's a massive distraction. Now the most important thing is that the SR850's are open-backs, I'll still hear myself and the recording. Maybe when they're in sync, I shouldn't be able to hear myself (edit: real self) so well. I might consider using my KZ ZSN Pro X IEM's instead. All of these are budget devices by the way, so to anyone else wanting to get a decent recording setup -- this is it!

  • @jimbob5891
    @jimbob5891 Před 2 lety +1

    Thank you so much for posting this, was going nuts trying to figure out the syntax to turn down latency.

  • @gabrielmonzon544
    @gabrielmonzon544 Před měsícem

    Awesome! Thanks!

  • @zeebpc
    @zeebpc Před 3 měsíci +1

    pactl load-module module-loopback

  • @NotMurPh
    @NotMurPh Před rokem

    this helped me better understand pulseaudio and being able to mix my input and output into one module for that i thank you :D

  • @lizardtech
    @lizardtech Před 2 lety

    Tam da aradığım buydu. Teşekkürler

  • @Lizard_of_Linux_Lane
    @Lizard_of_Linux_Lane Před 11 dny

    Is there a way to get the microphone to record audio for a SplitGate gameplay recording & simultaneously have the microphone send to game chat? 🤔

  • @cameronalcott
    @cameronalcott Před 3 lety

    Nice video tony

  • @ThylineTheGay
    @ThylineTheGay Před 2 lety

    Thanks for this!

  • @saito450
    @saito450 Před 2 lety

    Thanks

  • @encapsulatio
    @encapsulatio Před 2 lety

    What software can I use to route speaker/headphones audio into some sort of Daw or just input it into another type of app that supports an audio input. I've just started trying Linux out so am a bit lost as to what can be done using pulseaudio and how to do it.

  • @NadeUp
    @NadeUp Před 3 lety

    Hi Tony.
    Do you have a solution for microphone from stereo to mono? I have focusrite with two channels and as result I can hear my mic only in left ear.
    I can seem to find the option at all.

    • @ConorFenlon
      @ConorFenlon Před 2 lety

      pactl load-module module-loopback channels=1

    • @TonyTascioglu
      @TonyTascioglu  Před 2 lety

      As @Conor mentioned, you should be able to use use the channels parameter.
      As a side-note, this is likely because 2-channel interfaces will generally be seen as a stereo pair, meaning that channel 1 becomes left, 2 becomes right.
      The list of all parameters is here for reference:
      www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-loopback

  • @piotr424
    @piotr424 Před 10 měsíci

    not working with mixxx

    • @TonyTascioglu
      @TonyTascioglu  Před 10 měsíci

      Mixxx by default uses ALSA for input and output. Pulseaudio loopback needs - well - Pulseaudio.
      In Mixxx settings, you can choose between ALSA, Pulse or JACK. You'll need to switch it to Pulse. That being said, if you're doing a show, stick with ALSA, it gets (depending on your sound card) direct access to the output, so lower latency and less likely to have pops (or JACK - I just would try to avoid Pulse).

  • @dzibanart8521
    @dzibanart8521 Před 2 lety

    how can I do this with pipewire instead?

    • @TonyTascioglu
      @TonyTascioglu  Před 2 lety

      You have 2 ways:
      a) PulseAudio way
      Same thing as this video! Pipewire is backwards compatible with PulseAudio, and can use the loopback module.
      b) JACK way
      You can use a tool like QJackCtl with a Jack Pipewire dropin and just connect your microphone to the output from the graph.