DAW Vocal Denoiser v1d

AI disclosure: This project was built with AI assistance (Claude, by Anthropic) for writing code and documentation. All creative and technical decisions (model design, training data, evaluation) are mine, and I reviewed everything before publishing.

💻 Code on GitHub · 🎧 Live demo · v1: DAW_Vocal_Denoiser · v1c: DAW_Vocal_Denoiser_v1c

Version 1d of my DAW Vocal Denoiser: v1c's exact recipe (GRU 256, same data, same 108,779 steps) with one change, 5 ms of lookahead: each frame's mask is computed after the model has heard one more 5 ms hop of input, for 15 ms algorithmic latency instead of 10 ms. Same size as v1c (1.25M parameters). The question v1d asks: how much quality does 5 ms buy?

Held-out test

180 noisy clips (+ 20 clean pass-through clips) that no version trained on: my held-out song Say Dat Name (86 clips) and held-out VocalSet singers (94 clips), mixed with dev-split noise at 0-40 dB SNR from a fixed seed. Every version runs on exactly the same clips through the streaming engine (compare.py / compare_multi.py), so differences are paired.

Version SI-SDR (dB) SDR (dB) PESQ-WB ViSQOL FAD-MERT (lower better) Clean pass-through SI-SDR (dB)
Noisy input 19.04 19.02 2.37 3.53 1.732
v1 22.95 23.70 3.05 3.97 0.419 45.6
v1c 23.27 23.85 3.03 3.98 0.485 51.1
v1b (GRU 384) 23.46 24.07 3.10 3.99 0.448 47.6
v1d (5 ms lookahead) 23.43 24.03 3.11 3.99 0.446 50.5

v1d vs v1c, paired (mean ± 95% CI; bold = excludes zero):

Clips SI-SDR (dB) SDR (dB) PESQ-WB ViSQOL
All 180 clips +0.17 ± 0.19 +0.18 ± 0.18 +0.07 ± 0.02 +0.01 ± 0.02
My voice (86 clips) +0.09 ± 0.24 +0.14 ± 0.22 +0.08 ± 0.02 +0.01 ± 0.01
Other singers, VocalSet (94 clips) +0.23 ± 0.30 +0.22 ± 0.28 +0.07 ± 0.03 +0.01 ± 0.03

What this shows: 5 ms of lookahead buys about as much as doubling the model. v1d and v1b (GRU 384, 2x the parameters) are tied within error on every metric, and both beat v1c on predicted quality (PESQ, all voices). v1d gets there at half v1b's CPU cost and file size, and keeps clean takes almost as untouched as v1c (50.5 vs 51.1 dB pass-through, v1b 47.6). The price is 5 ms more latency (15 ms total), still low enough to monitor through. Its SI-SDR gain over v1c (+0.17 dB) is not significant on 180 clips, so the clearest win is quality per CPU, not raw accuracy.

Dev set and real-time

v1 v1c v1b v1d
GRU width 256 256 384 256
Algorithmic latency 10 ms 10 ms 10 ms 15 ms
Training steps 108,773 108,779 108,779 108,779
Dev SI-SDR gain, published checkpoint +2.39 dB +2.57 dB +2.79 dB +2.78 dB

Published checkpoint: +2.78 dB (step 107,000, lowest dev loss; +2.79 dB at the last step). Training time: 9.3 h on an RTX 4060, Nov 19, 2026.

Real-time property Value
Algorithmic latency 15 ms (10 ms windows + one 5 ms hop of lookahead)
CPU per 5 ms block (ONNX Runtime, desktop CPU) 0.23 ms (real-time factor 0.046)
ONNX vs PyTorch parity (streaming engine) 112.3 dB
Parameters 1,250,563
ONNX file 5.0 MB

What changed from v1c

  • Model: unchanged from v1c (GRU 256, 1.25M parameters).
  • Lookahead: training pads the magnitude input by one frame and shifts the mask back one frame, so the mask for frame t comes from the GRU after it has seen frame t+1. The streaming engine (stream.py) mirrors this by holding each spectrum for one hop until its mask arrives. test_lookahead.py confirms the output depends on input exactly one hop ahead and no further; streaming vs. PyTorch parity is 112.3 dB.
  • Data and training: identical to v1c (108,779 steps from scratch). Trained on an RTX 4060.
  • Code: DAW_LOOKAHEAD defaults to 1 in model.py and stream.py, so the engine runs this model correctly with no settings.

Files

File What it is
daw_denoiser.onnx One-frame streaming model for ONNX Runtime (the host keeps the GRU state)
daw_denoiser.pth PyTorch weights (EMA) for model.StreamDenoiser
model.py Model definition (training code is on GitHub)
stream.py Real-time engine: numpy + onnxruntime only

Usage

# pip install onnxruntime numpy
from stream import StreamEngine          # expects daw_denoiser.onnx next to it
eng = StreamEngine()
y_block = eng.process(x_block)           # float32[240] at 48 kHz -> 240 denoised samples, 15 ms later

from stream import process_file          # offline: whole mono 48 kHz array in, denoised array out (time-aligned)
y = process_file(x)

Docker

A CPU-only image (ONNX Runtime, no PyTorch) is on Docker Hub as stavion/daw-denoiser:v1d. Any sample rate, mono or stereo; output is 24-bit WAV at the input's rate.

docker run --rm -v "${PWD}:/data" stavion/daw-denoiser:v1d vocal.wav vocal_clean.wav

docker run --rm -p 8000:8000 stavion/daw-denoiser:v1d serve
curl -X POST --data-binary @vocal.wav http://localhost:8000/denoise -o vocal_clean.wav

The container's output matches stream.py run directly (122.5 dB, limited by the 24-bit WAV output).

Training data and licenses

Source License
My own vocal takes and instrumentals Mine (not distributed)
VocalSet (Wilkins et al., ISMIR 2018) CC BY 4.0
DNS Challenge fullband speech and noise (subsets) Per source, see the DNS repo

No commercial sample packs. Code is MIT licensed (see LICENSE).

Limits

  • For monitoring and cleaning vocal takes (singing or speech) recorded in untreated rooms.
  • Removes noise, not reverb. Mono, 48 kHz only (resample other rates first).
  • Not tested on heavy distortion or SNR below 0 dB; very loud headphone bleed can survive.
  • 15 ms of algorithmic latency: still low enough to monitor through, 5 ms more than v1, v1c and v1b.

Evaluation details

Metric definitions, references and the full per-clip results are in the GitHub repo (results/).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using Stavion-Colquitt/DAW_Vocal_Denoiser_v1d 1