Skip to main content

speech-denoise

Remove mains hum, fan noise and hiss from speech recordings. One command, no server, nothing uploaded — the audio never leaves your machine.

pip install speech-denoise
speech-denoise recording.wav

Video input works too — drop in an .mp4 and the audio track is extracted automatically (needs ffmpeg on PATH).


Free for personal use. Pay once if it earns you money.

The code is the same either way. There is no crippled version, no file limit, no watermark, no account.

Personal use Free. Your own recordings, study, teaching, hobby projects with no revenue.
Commercial use $19 once. Client work, paid podcasts and channels, audio for a product you sell, anything done as part of a job.

Commercial licence — $19 · 30-day refund · no subscription, no expiry

Students, teachers and non-profits: write to longjiao1986@vip.qq.com and a free commercial licence is normally granted.

Full terms: LICENSE


The thing most denoisers get wrong

Spectral subtraction removes noise by subtracting a noise estimate from every time-frequency bin. Push it hard and it also removes the quiet parts of speech — the consonants, the breath before a word. The noise is gone, the words are mushy. People call it muddy, and it is the single most common complaint about free denoisers.

This one is tuned not to do that. The cost is that it removes a little less noise than an aggressive setting would.

Measured on real voices, 24 combinations

Four real recordings (two male, two female), six noise conditions, measured with STOI — an intelligibility score where higher means the words are easier to follow.

Noise condition ΔSTOI Noise floor
Mains hum, 5 dB SNR +0.0228 −22.9 dB
White noise, 5 dB SNR +0.0227 −9.1 dB
Fan / air conditioning, 5 dB SNR +0.0086 −8.8 dB
Hiss, 5 dB SNR +0.0084 −8.9 dB
Codec artefacts, 15 dB SNR +0.0050 −7.7 dB
Reverb, 0.6 s +0.0004 −5.5 dB

Across all 24: average ΔSTOI +0.0113, worst case −0.0022, best +0.0432. 17 improved · 7 unchanged · 0 made worse.

That last number is the point. A denoiser that raises the noise reduction by 6 dB but drops STOI by 0.06 is making your recording harder to understand. This one does not.


What it does not do

  • Reverb. It barely touches it (+0.0004 STOI, −5.5 dB noise floor). Reflections are not noise. The verdict says ALREADY_CLEAN or MILD rather than claiming success.
  • Two people talking at once. It cannot separate speakers and will sometimes suppress one.
  • Badly clipped recordings. What's gone cannot come back.
  • Very low bitrate codecs. Only partly reduced.

It tells you what happened

Every run ends with a verdict computed from the noise-floor drop and how far the speech band moved:

Verdict Meaning
ALREADY_CLEAN Noise floor already 35+ dB below the speech band. Nothing to remove.
GOOD Noise floor dropped ≥3 dB, speech band moved <1.5 dB.
MILD Noise floor dropped 1–3 dB. Listen first.
CAUTION The speech band itself moved down >1.5 dB — listen before using.
LITTLE Almost nothing changed. Probably a noise type it does not handle.

On the 24-combination set above, the two reverb cases report ALREADY_CLEAN/MILD rather than GOOD, which matches what the measurement says.


Usage

# process one file
speech-denoise recording.wav

# write to a specific output
speech-denoise recording.wav cleaned.wav

# report only, no output file
speech-denoise --report recording.wav

# video input
speech-denoise interview.mp4

Or as a module:

python -m speech_denoise recording.wav

How the adaptive mode works

The tool estimates the noise level before processing, then picks a strategy:

Estimated SNR Strategy
< 8 dB strong — spectral subtraction
8–18 dB medium — Wiener-style gain
> 18 dB light — minimal touch, preserve fidelity

A fixed preset cannot handle a folder where some files are clean and some are noisy. This can.

Output

16-bit PCM WAV at the original sample rate, loudness-matched to the input, peak-limited to avoid clipping.

Requirements

Python 3.9+, numpy, scipy, librosa, soundfile. ffmpeg optional for video input.

Everything runs locally. No account, no API key, no upload.

Licence

Free for personal use. A one-time $19 licence is required for commercial use — client work, paid podcasts and channels, audio for a product you sell, anything done as part of a job.

You may read, modify and use the code in your own projects. You may not resell or redistribute the source as a product, or publish it under your own name.

Full terms: LICENSE

Metadata

Release files for speech-denoise 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for speech-denoise 1.3.0
File Size Uploaded Provenance Actions
speech_denoise-1.3.0.tar.gz 9.5 kB Without provenance Details for speech_denoise-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for speech-denoise 1.3.0
File Interpreter ABI Platform Actions
speech_denoise-1.3.0-py3-none-any.whl Python 3 none any Details for speech_denoise-1.3.0-py3-none-any.whl

Total release size: 19.1 kB

Release files / speech_denoise-1.3.0.tar.gz

Download URL speech_denoise-1.3.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
799dbf98807f857a35caa54f90a850425d558e3608934720fccdfb10b7cd574c
BLAKE2b-256 checksum
How to use checksums
78c17fdd2e96670889c189df5476be20130a55b900476d19f17e65e377689b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / speech_denoise-1.3.0-py3-none-any.whl

Download URL speech_denoise-1.3.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1c52b46be4b70c027d18b44c72ac742da79426791186555a47f94435e0a3119
BLAKE2b-256 checksum
How to use checksums
e7227c81974b9e2e964084fe6ae17e9d7f132ea574bac2372d991af7c8c9c32f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for speech-denoise 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page