Multi-model · SNAC 24kHz (~80.3 MB) → Music Genre DistilHuBERT (~24 MB)

Neural Audio Codec Resilience Bench (SNAC 24kHz → Music Genre)

What happens to musical timbre when you compress audio ~380× down to ~0.99 kbps of discrete neural tokens? This pipeline runs two real on-device audio models in isolated Web Workers: SNAC 24kHz encodes and decodes a clip through three hierarchical 12-bit codebooks, and DistilHuBERT classifies both the uncompressed original and the codec reconstruction to measure whether genre identity survives extreme neural compression.

1. Two isolated on-device audio models

Stage 2 reuses ../../snac-24khz-audio-codec/worker.js directly with strict outbound FIFO serialization and zero weight duplication. Releasing either model frees its memory cleanly without disturbing the other stage.

Stage 1 & 3 · Music Genre Classifier (16 kHz)

onnx-community/Musical-genres-Classification-Hubert-V1-ONNX · WASM q8 · ~24 MB

Stage 2 · SNAC 24kHz Neural Audio Codec

onnx-community/snac_24khz-ONNX · WebGPU / WASM fp32 · ~80.3 MB

2. Pick a track & SNAC compression tier

3. Original vs post-SNAC neural reconstruction

Download or initialise both models above, then click Run Codec → Genre Round-Trip.
Realized bitrate–
Compression ratio–
Tokens (T0/T1/T2)–
SNR / Env corr–
Dist. cosine sim–
SNAC / Genre ms–

Uncompressed Original (384 kbps PCM16)

Waiting

Post-SNAC Decoded Audio

Waiting

Full 10-genre probability shift after neural codec round-trip

4. Four-track codec resilience benchmark

Run Benchmark All 4 Core Tracks to test Bundled Jazz, Bundled Hip-Hop, Synth Piano Arpeggio, and Synth Overdriven Power Riff sequentially through SNAC → DistilHuBERT.

Track Bitrate SNR / Env Original top-1 Post-SNAC top-1 Orig winner Δ Preserved? SNAC / Genre
No benchmark runs yet.