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
Thank you so much for posting this, was going nuts trying to figure out the syntax to turn down latency.
this helped me better understand pulseaudio and being able to mix my input and output into one module for that i thank you :D
Is there a way to get the microphone to record audio for a SplitGate gameplay recording & simultaneously have the microphone send to game chat? 🤔
Tam da aradığım buydu. Teşekkürler
Türk değil kanka
Nice video tony
Cameron? Long time no see, thanks!
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!
Awesome! Thanks!
pactl load-module module-loopback
not working with mixxx
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).
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.
Thanks
Thanks for this!
how can I do this with pipewire instead?
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.
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.
pactl load-module module-loopback channels=1
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