At a glance
| Upstream model | ResembleAI/chatterbox-turbo (Resemble AI β 350M parameter Turbo architecture with 1-step distilled S3Gen mel decoder) |
|---|---|
| Browser ONNX repo |
ResembleAI/chatterbox-turbo-ONNX
(commit d21799bd Β· 4 q4f16 WebGPU graphs = 561.81 MB
[embed_tokens 33.65 MB, speech_encoder 178.51 MB,
language_model 184.26 MB, conditional_decoder 165.39 MB] +
3.56 MB tokenizer/configs = 565.37 MB total; non-f16 q4 fallback 721.36 MB graphs)
|
| License | MIT Β· Open-weight English voice cloning & paralinguistic speech synthesis |
| Task & architecture |
text-to-speech Β· ChatterboxModel (model_type: chatterbox;
24-layer, 16-head, 1024-d GPT-2 speech LM with 6,563 speech vocab +
GPT2Tokenizer BPE text vocab + 1-step 24,000 Hz mono waveform decoder)
|
| Native paralinguistic cues |
[sigh], [chuckle], [laugh], [cough],
[gasp], [clear throat], [whispering], [dramatic]
|
| Runtime & backend |
Worker-isolated Transformers.js 4.3.2 inside worker.js ONLY
(shared lib/webai.js stays untouched) Β· WebGPU
(q4f16 with shader-f16, q4 fallback) Β· Off-main-thread Web Worker
|
1. Live Zero-Shot Voice Cloner & Reference Booth
Loading ledgered reference clip (LibriSpeech Narrator Β· 4.91 s Β· CC BY 4.0)β¦
Initialise Chatterbox Turbo above on a WebGPU browser to encode the reference voice and synthesize 24 kHz speech.
2. See Inside Β· Speaker Conditioning Cache, Tokens & 24 kHz Spectrogram
24 kHz Synthesized Waveform & Log-STFT Spectrogram
Active Reference Speaker Waveform
4-Graph WebGPU Pipeline & Cached Speaker Tensors
Cached Speaker Conditioning Tensors (encode_speech)
First run encodes the reference clip (~253 ms on Apple Metal WebGPU) into 4 cached conditioning tensors; subsequent prompts with the same speaker skip encoding (0 ms cache hit).
Live GPT-2 BPE & Paralinguistic Tokenization
Use-Case Ladder
Show the code
Show the code β worker.js: ensureSpeakerEncoded() (one-shot WebGPU speaker conditioning cache)
Show the code β chatterbox-core.mjs: computeLogSpectrogram() (pure-JS radix-2 STFT spectral telemetry)
References & Attribution
- Model weights: ResembleAI/chatterbox-turbo-ONNX (MIT license) derived from ResembleAI/chatterbox-turbo.
-
Built-in reference clips strictly reuse existing repository-ledgered audio (zero new audio files):
LibriSpeech test-clean 61-70968-0000 (CC BY 4.0), JFK Inaugural Address 1961 (US Gov Public Domain),
and the ledgered talk excerpt in
models/silero-vad/ted.wav.