Chatterbox for the browser
A repackaging of onnx-community/chatterbox-ONNX sized for in-browser use.
Two changes from upstream:
speech_encoderis a 6 KB stub. transformers.js hardcodes it into Chatterbox's session list, so it is fetched whether or not you use it — 564 MB of model that a text-to-speech app never runs. The speaker conditioning it would produce is instead precomputed once and shipped asvoices/default.bin(250 KB), passed straight togenerate()asspeaker_embeddings,speaker_features,audio_featuresandaudio_tokens.- Only the q4f16 language model is included, not the fp32 copy.
Together these take the download from ~1.4 GB to ~865 MB.
Because the stub is never called, this repo cannot clone a new voice — it can only speak in the bundled one. Use the upstream repo for cloning.
Built for Natural Voice. Weights remain MIT, as upstream.