Audio Noise Reducer
Operator: Abdulla Al Fahad. How tools are built and checked
Steady noise, such as the hiss of a microphone, the hum of a fridge or the wash of an air conditioner, has a fixed fingerprint: the same frequencies at about the same levels all the time. Spectral gating uses that. You show the tool a stretch where only the noise is present, it learns the fingerprint, and then it turns down every frequency that stays under it, leaving the voice or the music, which rises above it, alone.
It does not rebuild lost sound or remove noise that changes, such as a passing car, a keyboard or other voices. For those the Remove Silence tool cuts the quiet parts, and the Audio Cutter takes out a section; this one lowers the floor under what you keep. Everything is adjustable, and a before and after switch plays the same moment both ways.
Key features
- A noise sample picked on the waveform, or the quietest half second found automatically
- Reduction, sensitivity and smoothing controls, and an optional 4th-order high-pass filter
- A before and after switch that keeps the playback position
- A summary of the average gain applied and the share of the spectrogram that was cut by more than 3 dB
- WAV or MP3 export of the cleaned audio, with the original left untouched
- A warning when the settings changed since the last processing, so you never export stale audio
Noise profiles, thresholds and why gating can sound watery
Input is any audio the browser can decode (MP3, WAV, M4A, FLAC, Ogg, Opus), up to 30 minutes, decoded at its own sample rate when MP3 supports it. Mono and stereo are both handled; each channel is processed on its own with one noise profile learned from the mix of the channels. Output is a 16-bit WAV or an MP3 at 64 to 320 kbps.
The noise sample is a stretch of the recording you mark on the waveform with the two handles. It needs at least 10 analysis frames, which is 2048 + 9 x 512 = 6656 samples or about 0.15 seconds at 44.1 kHz; half a second or more gives a steadier profile. A button picks the quietest 0.5 seconds automatically by looking at the energy in 50 millisecond blocks and finding the window with the lowest total.
The controls are: Reduction, the largest cut in dB for a frequency judged to be noise (6 to 60, default 18); Sensitivity, how far above the noise average a frequency must reach to count as signal, in standard deviations (0.5 to 4, default 2); Smoothing, how slowly the gate closes again, as a release time (20 to 400 ms, default 120); and an optional high-pass filter from 10 to 300 Hz in steps of 10, fourth order, which removes rumble and mains hum below its corner.
How it works
The audio is cut into frames of 2048 samples with a hop of 512, so each frame overlaps three quarters of the one before. Each frame is multiplied by a Hann window and transformed with an FFT. From the frames inside your noise sample the tool keeps, for each of the 1025 frequency bins, the mean magnitude and its standard deviation. The threshold for a bin is mean + sensitivity x deviation.
In every frame each bin is compared with its threshold. A magnitude at or below the threshold gets the floor gain, which is 10 to the power of minus the reduction over 20. One at 1.5 times the threshold or more is left alone, and in between the gain follows a smoothstep curve. The gains are then smoothed across neighbouring bins with weights of one, two and one, and over time: a rising gain follows within about 5 milliseconds, a falling one at the release time you set. Without that smoothing, single bins would switch on and off from frame to frame and produce the bubbling sound called musical noise.
Each frame is scaled by its gains, transformed back, multiplied by a Hann window again and added into the output. Two Hann windows at 75 percent overlap add up to 1.5, so the result is divided by 1.5. With every gain at 1 the output equals the input apart from rounding, so the processing itself adds nothing.
Common use cases
- Cleaning a voice memo or interview recorded beside an air conditioner, using the second before anyone speaks as the noise sample
- Taking the hiss out of a cassette or microphone preamp recording during the pauses between songs
- Lowering a steady camera-fan noise under the narration of a screen recording
- Reducing mains hum in a field recording with a high-pass at 100 Hz plus a noise profile for the rest
How to use this tool
- Drop in a recording and wait for the waveform to appear.
- Drag the S and E handles so they surround a stretch with only noise, or click the automatic button.
- Leave the settings at their defaults for the first run and click Reduce noise.
- Press Play, and switch between Before and After while it plays.
- Raise sensitivity or reduction if noise remains, or raise smoothing if it sounds watery, and click Reduce again.
- Choose WAV or MP3 and export.
Example
A synthetic test: 1.5 s of noise, then a 440 Hz tone with the same noise under it
Noise sample 0.1 s to 1.0 s
Reduction 24 dB
Sensitivity 2.0, smoothing 120 msMeasured result
Noise-only part -36.5 dBFS -> -52.0 dBFS (15.5 dB lower)
440 Hz tone -13.45 dBFS -> -13.47 dBFS (unchanged)
Output length the same as the inputTips for best results
- A good sample is steady. Use a pause where the speaker is breathing quietly and the room is still, not one that has a cough or a chair creak in it, or the profile will treat the creak as noise.
- The default reduction is 18 dB. If the ends of words start to vanish, back it off to about 12 dB: a cut that sounds natural beats a 30 dB cut that sounds underwater.
- If you hear a faint chirping or bubbling, increase the smoothing first, then lower the sensitivity. Those two settings are what hides musical noise.
- For male voices with low rumble, a high-pass at 80 Hz removes the noise below the voice without needing a deep cut in the gate.
Common pitfalls
Gating works on noise that stays the same. Speech from other people, music in the background and traffic come and go, and are treated as signal.
Noise at the same frequencies as the voice cannot be separated from it. The gate can only lower the noise in the moments when the voice is quiet, and during speech it passes both. This is why noise seems to pump in and out in heavy settings.
A noise sample that includes a bit of the voice will make the tool treat part of the voice as noise and cut it. Check that your sample is only noise by playing it.
The profile is learned from the mix of the channels. A recording with different noise in the left and right channels will be cleaned unevenly.
Common errors and how to fix them
- The noise sample is too short.
- Drag the handles further apart so the sample is at least 0.15 seconds, and preferably half a second or more.
- The settings changed since this was processed.
- Click Reduce again; export is only available for audio that matches the current settings.
- This recording is longer than 30 minutes.
- Cut it into shorter parts with the Audio Cutter first.
Best practices
- Record a few seconds of room tone at the start of every session; it is the best possible noise sample.
Why the sensitivity is measured in standard deviations
Noise is random: in each frame a bin's magnitude varies around its average. If the threshold were only the average, about half of all the noise frames would sit above it and pass through as a crackle. Adding two standard deviations puts the threshold above nearly all of the noise frames (roughly 97 to 98 percent if the spread were Gaussian), and the soft knee up to 1.5 times the threshold means that a frame that only slightly exceeds it is reduced instead of passed whole.
Lower values keep more detail and leave more noise; higher values remove more noise and begin to cut into the quiet parts of what you want. 2 is a sound starting point, and most recordings are best between 1.5 and 3.
Frequently asked questions
Why is the result not 24 dB quieter in the noise when I set 24 dB?
The setting is the largest cut, applied to bins that are clearly below the threshold. Some bins in each frame sit near the threshold and get less, so the measured noise reduction is lower; in the synthetic example it was 15.5 dB for a 24 dB setting.