Models About & Code

Standalone App & PWA

Install Read-Along Studio from its dedicated origin as an offline reading workstation with direct OS .txt, .md, and .json file handling and zero cloud uploads.

Open readalong.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so readalong.webai.show caches its own ONNX weights (35.0 MB Phonon WebGPU / 64.4 MB CPU WASM, or 92.9 MB Kokoro Timestamped). Staying on webai.show keeps cached weights shared across showcase tabs.

SYSTEMS ARCHITECTURE · 01

How Browser Neural Codecs Stream Speech

0 words ready
Active: —
Click any word to seek · Arrow keys step word/sentence · Space play/pause 0 words · 0 sentences
Paste or Edit Any Article, Docs, or Story Or drop .txt / .md anywhere above
0 chars

Karaoke Playback & Waveform Scrubber

00:00.0 / 00:00.0

24 kHz synthesized speech waveform timeline with sentence dividers and active word marker.

1.00×

Passage loaded. Choose Phonon-31M or Kokoro-82M Timestamped and click Download & Read Aloud to synthesize locally.

Local AI Speech Engines

Both neural TTS engines run strictly off the main thread in isolated FIFO Web Workers and cache privately in your browser. Download just the engine you pick above, or preload both via the pack bar.

Engine 1 · Phonon-31M Streaming TTS (35.0 MB WebGPU / 64.4 MB CPU · Apache-2.0)

onnx-community/phonon-31m-en-ONNX · isolated Transformers.js 4.3.2 in worker-phonon.js · q4f16 WebGPU (0.29× RTF) & int8 CPU WASM (0.29× RTF)

Engine 2 · Kokoro-82M Timestamped (92.9 MB CPU WASM q8 · Apache-2.0)

onnx-community/Kokoro-82M-v1.0-ONNX-timestamped · kokoro-js 1.2.1 · native ONNX waveform + durations (~600 samples / 25 ms per frame)

Engine 1 · Phonon-31M Not loaded
Engine 2 · Kokoro-82M TS Not loaded
Karaoke Renderer CSS.highlights
Output Integrity 0 NaN · 0 words

How Read-Along Studio Works

Instead of wrapping every word in heavy DOM spans or paying a server for cloud TTS, Read-Along Studio runs two Apache-2.0 neural voice engines locally and sweeps live highlights across plain text nodes using the browser's native CSS Custom Highlight API.

1. Phonon-31M Streaming Mimi Codec

Phonon-31M (onnx-community/phonon-31m-en-ONNX, Apache-2.0, gradium_phonon_tts) pairs a 6-layer flow LM (8 latent frames per step at 12.5 Hz) with a Mimi neural codec decoding 24 kHz mono PCM. Isolated inside worker-phonon.js on Transformers.js 4.3.2 (lib/webai.js stays pinned at 3.7.5), it runs at ~0.29× RTF on both Metal WebGPU (q4f16, 35.0 MB) and CPU WASM (int8, 64.4 MB) with real 10 ms RMS energy-valley word alignment.

2. Kokoro-82M Native Phoneme Durations

Kokoro-82M Timestamped (onnx-community/Kokoro-82M-v1.0-ONNX-timestamped, Apache-2.0, 92.9 MB CPU WASM q8) exposes a second ONNX output tensor, durations, alongside 24 kHz waveform (~600 samples / 25 ms per frame). By intercepting the single forward pass inside worker-kokoro.js, we extract exact neural phoneme durations for every IPA word group with zero double inference.

3. Zero-DOM-Mutation Karaoke & Exports

A cached TreeWalker maps each paragraph's plain text node into precomputed Range objects painted on CSS.highlights (read-along-sentence, read-along-spoken, read-along-bionic, and read-along-active). Click any word to seek via Range.getClientRects(), toggle Reading Ruler or Dyslexia Spacing, and export 24 kHz .wav, W3C karaoke .vtt, or OWASP-safe .json.

Show the code — alignPhononAcousticToWords() 10 ms RMS envelope & syllable valley snapping
Show the code — alignKokoroDurationsToWords() native neural phoneme-duration alignment
Show the code — buildKaraokeVtt() W3C WebVTT inline word-timestamp caption generator
Show the code — Phonon-31M 8-frame flow LM & Mimi codec worker loop (Transformers.js 4.3.2)
Show the code — Kokoro-82M Timestamped single-pass waveform + durations streaming worker
Show the code — StageWorkerClient FIFO streaming worker queue & lifecycle management

Karaoke Captions & Word Timestamps

Inspect word-synced WebVTT karaoke cues or JSON timestamp data.