audio-to-audio · neural audio codec · WebGPU fp32 / WASM fp32 · ~80.3 MB

SNAC 24kHz — ~1 kbps Multi-Scale Neural Audio Codec

The catalogue's first neural audio codec: instead of storing 24,000 audio samples every second (384 kbps 16-bit PCM), SNAC compresses 24 kHz mono speech into just 3 hierarchical discrete token streams at 12 Hz, 24 Hz, and 48 Hz (~0.98 kbps asymptotic · ~1.01 kbps on 2 s clips — roughly 380× smaller) and decodes those integers back into clean audio entirely on your device.

At a glance

Verified SNAC 24kHz architecture, ONNX artifacts, and runtime contract
Upstream model hubertsiuzdak/snac_24khz (19.8M params, Multi-Scale Neural Audio Codec, MIT)
Browser ONNX onnx-community/snac_24khz-ONNX (rev f317cdf)
Task audio-to-audio (neural audio codec: waveform → 3-tier discrete codes → reconstructed waveform)
Runtime @huggingface/transformers@3.7.5 (shared pin — SnacModel + SnacFeatureExtractor running off-thread in a Web Worker)
Audio & tokens 24,000 Hz mono Float32 [1, 1, N] ↔ 3 × 12-bit (4,096-entry) int64 codebooks: Coarse 12 Hz (hop 2,048), Mid 24 Hz (hop 1,024), Fine 48 Hz (hop 512) → 0.984 kbps nominal (~1.01 kbps on 2 s padded clips). Decoded output is trimmed to exact input length.
Backend & dtype WebGPU fp32 (when a GPU adapter is present — 4–14× faster) with automatic honest fallback to CPU WASM fp32. Both share the exact same 80.26 MB artifacts (encoder_model.onnx 27.66 MB + decoder_model.onnx 52.60 MB). Why fp32? Live verification proved fp16 (40.23 MB) attenuates SNAC's Snake1D activations by −6 to −14 dB and degrades speech intelligibility, while q8 is ~2× slower on WASM with codebook drift.
License MIT (weights & ONNX export)

Interactive ~1 kbps Neural Codec Studio

Runtime: checking…
Waiting for SNAC 24kHz worker initialisation…

Prepare SNAC 24kHz above to encode and reconstruct audio locally on your device.

Realized bitrate—
Compression vs PCM—
Total tokens (3 tiers)—
Envelope match / SNR—
Encode latency—
Decode latency—

3-Tier Multi-Scale Discrete Token Ribbon (12 Hz · 24 Hz · 48 Hz)

Original 24 kHz PCM (384 kbps)

Select a clip to preview

SNAC Reconstructed (~1 kbps)

Waiting for codec roundtrip

Residual (Original − Reconstructed)

Hear exactly what ~380× compression discarded

Use-case ladder