<- cd ~/andacbasaran.com
$cat ~/notes/gtcrn-onnx-sub-millisecond-noise-suppression.md 4 min read
2026-11-24 · Developer Note

0.85 ms Real-Time Noise Suppression on CPU with GTCRN ONNX

How ClearMic achieves -47 dB mechanical keyboard & fan suppression on 0 MB VRAM while preserving 7.2–20 kHz vocal air.

Most real-time AI noise suppressors assume a dedicated GPU or a monthly cloud subscription. While building ClearMic, the core constraint was strict: run a full broadcast voice chain (HPF → AI Denoise → Gate → De-Esser → EQ → Compressor → AGC) inside a 16 ms audio callback using 0 MB VRAM.

1. Why Streaming GTCRN ONNX?

The quantized streaming GTCRN model weighs roughly 520 KB and processes 16 kHz frames with stateful hidden tensors carried across blocks. On a standard desktop CPU, P50 inference time lands at 0.85 ms per 16 ms block — leaving an 18.9× real-time headroom budget for the rest of the DSP rack and UI.

2. Preserving 7.2–20 kHz Vocal Air

Running a 16 kHz neural denoiser naively caps output bandwidth at 8 kHz, making studio condenser microphones sound muffled. ClearMic splits the 48 kHz input into a denoised speech band and a gated high-frequency air band (7.2–20 kHz), delay-compensating the dry/wet path so phase stays coherent during blending.

3. Cross-Platform Virtual Mic Bridging

Different audio host APIs (WASAPI on Windows, CoreAudio + BlackHole on macOS, PipeWire/PulseAudio on Linux) often expose mismatched sample rates. An adaptive polyphase resampler bridges 48 / 44.1 / 32 / 16 kHz devices automatically with zero buffer underruns.