Skip to content

Instantly share code, notes, and snippets.

@1999AZZAR
Last active December 2, 2026 08:59
Show Gist options
  • Select an option

  • Save 1999AZZAR/b5df8eeb65efec63a9860630f00772b5 to your computer and use it in GitHub Desktop.

Select an option

Save 1999AZZAR/b5df8eeb65efec63a9860630f00772b5 to your computer and use it in GitHub Desktop.
A six-stage microphone processing chain for Linux: why the filter order matters, what each stage does, and how to run it system-wide for every app with EasyEffects.

Making a Microphone Sound Good

A working chain for voice, the reasoning behind it, and how this machine is actually set up. The short version of all of this lives in microphone_setup_recording.txt; this is the long version, with the reasoning left in.

System configuration and measurements in this document were taken on 12 October 2026, on Debian 13 with PipeWire 1.4.2 and OBS 32.2.2.

The chain, and why the order matters more than the settings

Six filters do almost all of the work on a voice:

HPF  ->  expander  ->  EQ  ->  de-esser  ->  compressor  ->  limiter

Each one fixes a different problem, and each one can undo the work of another if you put them in the wrong order. That is the part people get wrong. Settings matter, but a well-ordered chain with mediocre settings beats a badly-ordered one every time.

The classic example is the de-esser. A de-esser is a compressor that only listens to the sibilance band, roughly 3–8 kHz, where the "s", "sh", "t" and "ch" sounds live. So if you de-ess first and then boost 3.5 kHz for presence, you have just rebuilt the hiss you spent the de-esser removing. Filter order is not a formality; it is the mechanism.

There is a second, quieter reason the order matters. An expander is a compressor that works in reverse, pulling quiet signals down instead of loud ones pushing down. Put it before the main compressor and the expander has to work against a moving target; put it before and it never gets the chance to steady the level the compressor is reacting to.

Stage by stage

1. High-pass filter

The high-pass filter, or HPF, removes everything below its cutoff: desk thumps, air-handling rumble, the low-frequency thump you get when you talk too close to a microphone, and the low-frequency components of handling noise. It is the cheapest stage in the chain and the easiest to get right.

Start at 100 Hz for a low male voice, 120 Hz for a higher one. The slope should be 12 to 18 dB per octave. Here is the common mistake: reaching for 24 dB per octave because it looks more professional. A voice's fundamental for a male speaker sits somewhere around 100 Hz and for many women considerably higher, so a steep filter starts eating the pitch itself. The result is not "clean", it is thin and boxy.

If you are ever unsure, sweep the cutoff upward slowly and stop when the voice starts sounding thin. That is your ceiling.

2. Downward expander (or a gate)

The expander lowers the noise floor between phrases and breaths. It is often described as making quiet voices quieter, which is exactly backwards — it should barely touch the quietest part of your actual speech. What it removes is the room noise, the fan, the hiss, the keyboard, all of which live in the gaps where you are not talking.

Set the threshold just below your speech level, around -40 dBFS, and keep the ratio gentle at 1.5:1 to 2:1. It should not feel like a switch. Anything harder than that starts eating consonants and the ends of words, and the compressor later in the chain will partly cancel its work anyway by raising the whole signal back up.

A release of 60 to 150 ms keeps it from pumping on plosives and mouth clicks. If you want genuinely deep cuts in the breath gaps, use a gate instead of an expander — a gate closes fully below its threshold, an expander only reduces. Same position in the chain, different aggression.

3. Equalizer

Most people reach for the EQ and boost 3.5 kHz, because someone told them 3.5 kHz is the presence band. A narrow boost there is harsh, rings, and makes sibilance worse. Cut the low-mid first, then add presence with a wide curve.

A reasonable starting point:

  • Cut 200–400 Hz by 2–3 dB. This is the mud band, and removing it is what makes a voice sound "cleaner" more than any other single move.
  • Cut 500–800 Hz by 1–3 dB, only if the voice is genuinely boxy. Skip it otherwise; this is the band where voices get hollowed out when nobody is listening.
  • Broad bell, +3 to +5 dB at 2–4 kHz, Q around 1.0. Wide, gentle, and enough.
  • Leave the very low end (below 100 Hz) alone. That is the HPF's job, and doing it twice with two different curves is how you end up with a thin voice.

Two bells, one cut and one boost, and you are done. An EQ with fifteen narrow moves in it is not fixing a voice, it is compensating for a bad room.

4. De-esser

This tames the sharp sibilance that makes listeners flinch. Target the band where your own sibilance sits, usually 3–8 kHz, and aim for 4–8 dB of reduction at the worst peaks. More than that and you get lisped consonants.

Set it up by singing or saying a long "ssssss" and watching the reduction meter. If it barely moves, the band is too high. If it pins at the maximum the whole time, the band is too wide or too low. Because it goes after the EQ, the reduction meter also tells you whether your presence boost created sibilance that was not there before — which is the whole reason it sits there.

5. Compressor

The compressor reduces dynamic range so the voice sits at a consistent level. This is the stage people over-do, and it is the reason a processed voice often sounds lifeless rather than professional. Heavy compression is not what makes a voice sound clean. Mud removal is.

Settings that work:

  • Ratio 2:1 to 3:1. Above 4:1 the voice stops breathing with you.
  • Attack 15–30 ms, so the consonant transient gets through before the gain reduction clamps down. Faster attack is the sound of a voice being squashed.
  • Release 80–150 ms, or auto.
  • Threshold set by ear on the gain-reduction meter: aim for 3–6 dB of reduction on your loudest sentences. This is the one number in the whole chain that you cannot copy from anyone else. It depends on your mic, your gain, your room, and how loudly you actually talk.

One compressor is enough for a voice. A second one, added because the first did not reach -6 dB, just makes the same mistake louder.

6. Limiter

The limiter puts a hard ceiling on the output. Set it at -1.0 dBTP, not 0 dBFS. Zero means zero on the sample grid, and the waveform that results between two adjacent samples can still exceed it — inter-sample peaks are real, and a distorted recording is not recoverable afterwards.

A limiter with a sane compressor in front of it and properly gain-staged audio does almost nothing, which is the correct behaviour. It is insurance, not a tool for making things louder.

What OBS can and cannot do

This is where most of the friction was, so it is worth being precise about it.

OBS 32 ships these audio filters on a source: gain/volume, noise suppression (RNNoise or SpeexDSP), noise gate, expander, compressor, upward compressor, limiter, polarity, delay, and a VST slot. That list has no high-pass filter, no equalizer, and no de-esser. Three of the six stages are simply not available inside OBS.

The noise suppression deserves a note. RNNoise has no suppression-level control and tends to thin and warp a good voice. SpeexDSP learns the stationary noise floor and leaves speech mostly alone, and its suppression level is adjustable from -60 to 0 dB. For a constant hum like a fan, SpeexDSP is the better instrument, at around -35 dB.

Building the whole chain in OBS also means it only applies to OBS. Zoom, Discord, a browser tab, a recording app — none of them see it.

How this machine is set up now

The chain lives in EasyEffects 7.2.3, which filters the microphone inside PipeWire, below every application. One chain, everything gets it, and the three stages OBS cannot do are available.

The preset lives at ~/.config/easyeffects/input/mic-clean.json and is loaded as the global input preset, so it applies to every app that opens the mic. It is the six-stage recipe plus a noise suppressor in front:

Stage Plugin Settings What it is doing here
Fan/rumble RNNoise defaults, wet 0 Learns the steady noise floor — fan, air handling, coil whine — and subtracts it before anything else touches the signal. Left at its default strength so it denoises without thinning the voice.
1. HPF Filter High-pass, 100 Hz, 12 dB/oct (IIR) Drops desk thumps, handling noise and proximity bass below 100 Hz. The 12 dB/oct slope matters: anything steeper starts shaving the voice's fundamental and the result sounds thin.
2. Expander Expander -40 dB, 2:1, 10 ms attack, 80 ms release Pulls the noise floor down in the gaps between phrases. The threshold sits below speech level and the ratio stays low, so quiet words pass through untouched and the release keeps it from pumping on plosives.
3. EQ Equalizer -3 dB @ 300 Hz, +4 dB @ 3 kHz Two bands, both gentle. The low-mid cut is what removes mud; the wide 3 kHz bell adds clarity and fullness. No narrow moves, so nothing rings and nothing fights the de-esser.
4. De-esser Deesser -18 dB, 3:1, 6 kHz / 4.5 kHz Tames the sibilance band so "s" and "sh" stop spiking. It runs after the EQ on purpose — the 3 kHz boost would otherwise put the hiss straight back.
5. Compressor Compressor -24 dB, 3:1, 20 ms attack, 120 ms release, 100 Hz sidechain HPF Evens out the loudness range with only a few dB of gain reduction. The 20 ms attack lets consonants through, and the sidechain high-pass keeps rumble from making it pump.
6. Limiter Limiter -1 dB, 5 ms lookahead, stereo-linked A last-resort ceiling just under clipping, not a loudness tool. With the compressor set properly it should rarely act; if it is working constantly, something upstream is wrong.

The compressor and expander sidechains are high-passed at 100 Hz. That is a small extra: it stops low-frequency rumble from making the dynamics stages pump, which is the audible "breathing" artifact you get when noise-heavy material meets a compressor.

EasyEffects runs as a systemd user unit, ~/.config/systemd/user/easyeffects.service, started with --gapplication-service. That flag is the headless mode; the GUI window is optional and closing it leaves the processing running. The unit is enabled at login and set to restart on any exit, so the chain cannot die silently. Two EasyEffects releases ago the equivalent flag was named --service-mode; on 7.2.3 it does not exist, and --hide-window quits immediately because hiding an app's only window ends its life.

OBS is now clean: no audio filters on Mic/Aux, unmuted, capturing the laptop's built-in microphone (HiFi__Mic1, "Lappy digital mic") through Easy Effects. Stacking a second compressor inside OBS would only double the compression and undo the work above.

Tuning it yourself

Open the EasyEffects GUI any time by running easyeffects; it attaches to the running service rather than starting a second one.

The compressor threshold is the value that needs your ear. Speak normally and watch the gain-reduction meter. Under 3 dB and the compressor is doing nothing; over 10 dB and the voice is being squashed. Move the threshold in 2 dB steps until loud sentences show 3–6 dB of reduction, then stop.

If the voice sounds gated, hollow, or "underwater", two things are usually wrong. The expander is cutting into quiet speech, so lower its threshold toward -45 dB. Or the noise suppressor is working too hard, so back the suppression off in small steps.

For the equalizer, solo the low band and listen for boxiness before cutting it. If you cannot hear the mud, do not cut it.

A quick sanity check that the chain is actually engaged: compare peak levels before and after. Two short captures taken seconds apart on this machine, one raw and one processed, read -4.0 dB peak and -26.5 dB mean for the raw mic, -7.8 dB peak and -27.4 dB mean through the chain. That is a useful smoke test, not a calibration.

Gain staging, and the things that beat plugins

No filter chain fixes a bad signal-to-noise ratio, because the noise was amplified before any software saw it.

Turn the microphone's preamp gain down and bring the input fader up to compensate. Same output level, better noise floor, and the expander's job gets easier. This is the single largest improvement available on a laptop's built-in microphone, and it is free.

Then distance: fifteen to twenty centimetres from the microphone buys more than any amount of processing. A shock mount and a pop filter cost almost nothing and fix handling noise and plosives at the source.

For fan noise specifically, the suppressor in the chain helps, but the fan is usually louder during CPU load, which means the gain was set for the worst case. Lower preamp gain first, and see how much suppression you still need.

The kill switch

If the chain ever gets in the way — a bad edit, a plugin you want to hear the room in, a debugging session:

systemctl --user stop easyeffects

Every app falls back to the raw microphone immediately. systemctl --user start easyeffects brings it back with mic-clean reloaded.

Quick reference

1  HPF         100 Hz, 12 dB/oct      removes rumble and proximity bass
2  Expander    -40 dB, 2:1, 10/80 ms noise floor between phrases
3  EQ          -3 dB @ 300 Hz, +4 dB @ 3 kHz
4  De-esser    -18 dB, 6/4.5 kHz     after the EQ, never before
5  Compressor  -24 dB, 3:1, 20/120 ms 3-6 dB of gain reduction
6  Limiter     -1 dB, 5 ms lookahead  ceiling, not a loudness tool

Minimal chain for "cleaner and fuller": HPF, a 200–400 Hz mud cut, and a gentle compressor. That is most of the benefit. Every extra dynamic stage buys a little and costs naturalness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment