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


Measured, not claimed

Real speech at 5 dB SNR, band by band:

Band Change
Mains hum 0–150 Hz −23.6 dB
Low 150–300 Hz −4.5 dB
Speech 300–3400 Hz −0.6 dB
High 3.4–6 kHz −7.5 dB
Hiss 6–8 kHz −6.9 dB

Overall SNR 5.0 → 14.7 dB. The speech band moves by 0.6 dB. Nothing in 300–3400 Hz is synthesised or regenerated — it is filtered.

Across 24 combinations (4 voices × 6 noise conditions): average gain +7.10 dB, worst case −2.44 dB, 21 of 24 improved.


It tells you when it did not work

Every run ends with a verdict, computed from the noise-floor drop versus 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. Heavy reverb or overlapping speakers — listen before using.
LITTLE Almost nothing changed. Probably a noise type it does not handle.

Regression-tested over 24 combinations: 23 of 24 verdicts matched the measured outcome.


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

Where it does not work

Read this before installing.

  • Heavy reverb. 2 of 4 test cases got worse (worst −2.44 dB). Reflections are not noise; removing them damages the speech.
  • Two people talking at once. 1 of 4 cases got worse. It cannot separate speakers and will sometimes suppress one.
  • Badly clipped recordings. What's gone cannot come back.
  • Very low bitrate codec artefacts. Only partly reduced.

If your recording has heavy reverb or overlapping speakers, this is the wrong tool — and it will say so with a CAUTION verdict rather than silently degrading your audio.


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

MIT. Use it on any number of your own or client projects.

Metadata

Release files for speech-denoise 1.2.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.2.0
File Size Uploaded Provenance Actions
speech_denoise-1.2.0.tar.gz 8.9 kB Without provenance Details for speech_denoise-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 18.0 kB

Release files / speech_denoise-1.2.0.tar.gz

Download URL speech_denoise-1.2.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
41b82fea026106d71935a24cde2770192328015dc32d2c2cd88e30f3913a0d57
BLAKE2b-256 checksum
How to use checksums
e768b480d6abad37528159cfd441a11c4b15721aabaf47bcf482714e66645e7f
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.2.0-py3-none-any.whl

Download URL speech_denoise-1.2.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33fd4937a51498f945aaf147d591e92473a58b149469dcd1d1654e37d1d951f0
BLAKE2b-256 checksum
How to use checksums
a1dd1266ca6f7ae7256417f8231d2d13ed7176ec78ffd2535421fff02f111137
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.2.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