How To Loopback/Monitor a Microphone using Pulseaudio on Linux

Поділитися
Вставка
  • Опубліковано 3 жов 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

КОМЕНТАРІ • 20

  • @jimbob5891
    @jimbob5891 2 роки тому +1

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

  • @NotMurPh
    @NotMurPh 2 роки тому

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

  • @Lizard_of_Linux_Lane
    @Lizard_of_Linux_Lane Місяць тому

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

  • @lizardtech
    @lizardtech 2 роки тому

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

  • @cameronalcott
    @cameronalcott 3 роки тому

    Nice video tony

  • @vimicito
    @vimicito Рік тому +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!

  • @gabrielmonzon544
    @gabrielmonzon544 2 місяці тому

    Awesome! Thanks!

  • @zeebpc
    @zeebpc 4 місяці тому +1

    pactl load-module module-loopback

  • @piotr424
    @piotr424 11 місяців тому

    not working with mixxx

    • @TonyTascioglu
      @TonyTascioglu  11 місяців тому

      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).

  • @encapsulatio
    @encapsulatio 2 роки тому

    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.

  • @saito450
    @saito450 2 роки тому

    Thanks

  • @ThylineTheGay
    @ThylineTheGay 2 роки тому

    Thanks for this!

  • @dzibanart8521
    @dzibanart8521 3 роки тому

    how can I do this with pipewire instead?

    • @TonyTascioglu
      @TonyTascioglu  2 роки тому

      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.

  • @NadeUp
    @NadeUp 3 роки тому

    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 3 роки тому

      pactl load-module module-loopback channels=1

    • @TonyTascioglu
      @TonyTascioglu  2 роки тому

      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