text-to-speech Β· ChatterboxModel (350M Turbo) Β· WebGPU q4f16 (561.81 MB) Β· MIT

Chatterbox Turbo β€” Zero-Shot Voice Cloning & Paralinguistic TTS

Resemble AI's streamlined 350M-parameter zero-shot voice-cloning model (ResembleAI/chatterbox-turbo-ONNX, 561.81 MB WebGPU q4f16, MIT) pairs a cached speaker encoder with a 24-layer GPT-2 speech-token generator and a single-step distilled 24 kHz decoder. Insert native paralinguistic cues like [chuckle], [sigh], [laugh], and [whispering] directly in text β€” running 100% locally in a Web Worker.

At a glance

Verified Hugging Face model card and ONNX Hub metadata for ResembleAI/chatterbox-turbo-ONNX
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.

Backend & Dtype–
Speaker Encode–
Synthesis Latency–
Real-Time Factor–
Output Duration–
Prompt Tokens–
RMS / Peak–
PCM NaN Count–

2. See Inside Β· Speaker Conditioning Cache, Tokens & 24 kHz Spectrogram

24 kHz Synthesized Waveform & Log-STFT Spectrogram

Synthesized 24 kHz mono PCM waveform will appear after WebGPU inference.

Awaiting 24 kHz output STFT 512-pt Hann

Log-magnitude STFT spectrogram (0–6 kHz) renders directly from live synthesized PCM.

Active Reference Speaker Waveform

Active reference speaker clip waveform preview.

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

Synthesize a prompt to inspect exact token IDs and highlighted paralinguistic tokens.

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