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).
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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| speech_denoise-1.1.0.tar.gz | 8.3 kB | Without provenance | Details for speech_denoise-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| speech_denoise-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for speech_denoise-1.1.0-py3-none-any.whl |
Total release size: 16.5 kB
Release files / speech_denoise-1.1.0.tar.gz
| Download URL | speech_denoise-1.1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f65a16c982c33fc6e4ed6366fa13a2173deb224a5bbf40958843ef0ad7f53db
|
|
BLAKE2b-256 checksum How to use checksums |
b1e42cc5de77425bc7d2f7df0895a131c5147a9a91e489f50f41ed2d594074a2
|
| 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.1.0-py3-none-any.whl
| Download URL | speech_denoise-1.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c55aef6d2cc76d9d91b114c10c4aa136b3f81ce7367cc6775478df095cf01031
|
|
BLAKE2b-256 checksum How to use checksums |
30ef1564cf27e1ffb0062db0d1b86279a216b92e1ad4c0551ba4f01bc0f98f8e
|
| 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.1.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.