← Showcases

Codec Radio

~1 kbps URL Postcard 3 Chained Audio Models 0 Bytes Uploaded
About & Code

Standalone Codec Radio PWA

Launch Codec Radio as a dedicated installable app at radio.webai.show with its own app icon, isolated microphone permission scope, and clean shareable short links (radio.webai.show/#p=…).

Honest cache-isolation note: Because browsers partition Cache Storage and IndexedDB per origin, opening radio.webai.show downloads its own isolated ~95.6 MB model cache once. Staying on webai.show/showcases/codec-radio/ shares 100% of cached ONNX weights with the SNAC, Smart-Turn v3, and WeSpeaker pages.

Open radio.webai.show β†—
β—‹ TURN GATE STANDBY (8.6 MB)
β—‹ VOICEPRINT SEAL STANDBY (6.7 MB)

Scrub or click canvas to inspect 12-bit L0/L1/L2 tokens once encoded.

A Β· Original 24 kHz PCM

384 kbps
Preparing curated speech preset…

B Β· 1 kbps SNAC

~380Γ— smaller
Load SNAC 24kHz to compress & reconstruct

1 Β· On-Device Radio Stack (Shared Cache Storage)

Pick a speech clip, record with your mic, drop audio / .snac, or click Load Radio Stack (~95.6 MB) above.

2 Β· Shareable URL #hash Postcard & Byte Budget

Encode or open a #p= link to measure exact byte budget.

12-bit multi-scale codebooks (L0 12 Hz Β· L1 24 Hz Β· L2 48 Hz) + CRC-16.

No binary postcard frame yet.

3 Β· Interactive Codebook Ablation Mixer (Live Play)

Projected tier rate: ~0.98 kbps (encode or receive a postcard to ablate live).

4 Β· Sender Voiceprint Vault & Real Exports

No enrolled sender yet. Enroll a voice to verify incoming #p= postcards.

Realized Bitrateβ€”
Compression vs WAVβ€”
Envelope / SNRβ€”
Turn Gate (Smart-Turn)Standby
Voiceprint (WeSpeaker)Standby
Pipeline Latencyβ€”

Three Reused On-Device Audio Workers Β· Shared Cache Storage (~95.6 MB Total)

Every stage reuses its existing standalone worker directly with identical cache keys β€” returning visitors auto-initialise from Cache Storage with zero duplicate downloads. Release any individual model from memory at any time.

Stage 1 Β· SNAC 24kHz Codec (80.3 MB fp32 Β· MIT)

Stage 2 Β· Smart-Turn v3 Gate (8.6 MB q8 Β· BSD-2-Clause)

Stage 3 Β· WeSpeaker ResNet34-LM (6.69 MB q8 Β· CC-BY-4.0)

Verified Architecture Highlights & Underlying Model Pages

12-Bit CR01 URL Postcard Framing

SNAC emits 7 discrete 12-bit tokens per 85.3 ms coarse frame (12 + 24 + 48 Hz = 84 bits = 10.5 bytes/frame). Tight pair-bitpacking + 12 B header + 16 B voiceprint seal + CRC-16 yields deterministic ~500 B URLs that drop by 57% when L2 is ablated.

Semantic Walkie-Talkie Turn Gate

Smart-Turn v3 evaluates raw 16 kHz prosody inside an 8 s left-padded Whisper Tiny encoder (8.6 MB q8 WASM) β€” separating natural finished sentences (green Ready to Transmit) from mid-clause cuts (amber Hold) without running ASR.

16-Byte SimHash Voiceprint Seal

WeSpeaker ResNet34-LM extracts a 256-d unit x-vector on S255; deterministic 128-bit Gaussian hyperplane SimHash compresses it into 16 bytes inside the URL so recipients verify voice identity locally without ever seeing the original WAV.

  • JFK Inaugural Address (1961): Public Domain (U.S. federal government work), reused from tracked models/whisper-speech-to-text/jfk.wav.
  • LibriSpeech Robin Hood: Paul-Gabriel Wiener reading Robin Hood (test-clean 61-70968-0000, Vassil Panayotov et al., OpenSLR SLR12, CC BY 4.0), reused from tracked models/whisper-speech-to-text/libri-61-70968-0000-16k-mono.wav.

Inspect the 12-Bit Postcard Framing, 16-Byte Seal & Hardened Worker Code

Show 12-bit SNAC codebook bitpacker (codec-radio-core.mjs)
Show binary CR01 postcard encoder with CRC-16 & seal (codec-radio-core.mjs)
Show deterministic CR01 validator & unpacker (codec-radio-core.mjs)
Show 256-d WeSpeaker β†’ 16-byte SimHash voiceprint seal (codec-radio-core.mjs)
Show hardened FIFO multi-worker client with disposeSeq & isDisposed (codec-radio.js)
Show guarded Push-to-Talk microphone recorder with _startGen abort (codec-radio.js)
Show unified MutationObserver model-loader driver (codec-radio.js)