Karaoke Playback & Waveform Scrubber
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)
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.