Instructions to use Bbkblo/chatterbox-hi-q8-q4-mnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use Bbkblo/chatterbox-hi-q8-q4-mnn with Chatterbox:
# pip install chatterbox-tts import torchaudio as ta from chatterbox.tts import ChatterboxTTS model = ChatterboxTTS.from_pretrained(device="cuda") text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill." wav = model.generate(text) ta.save("test-1.wav", wav, model.sr) # If you want to synthesize with a different voice, specify the audio prompt AUDIO_PROMPT_PATH="YOUR_FILE.wav" wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH) ta.save("test-2.wav", wav, model.sr) - Notebooks
- Google Colab
- Kaggle
Chatterbox-Multilingual-Hindi β Q8 / Q4 quantized (+ MNN toolkit)
Source: ResembleAI/Chatterbox-Multilingual-hi (0.5B T3 transformer + S3Gen decoder, fp32 β 2.14 GB).
Actual model files (this repo)
| Path | What | Size |
|---|---|---|
q8/t3_hi_int8.safetensors |
T3 transformer β INT8 weight quantized (per-output-row quant, int8 w + float scale) | ~514 MB |
q4/t3_hi_int4.safetensors |
T3 transformer β INT4 weight quantized (group=128, 2 nibbles packed) + scale | ~272 MB |
s3gen_v3.safetensors |
S3Gen V3 speech decoder (kept fp32) | ~1008 MB |
grapheme_mtl_merged_expanded_v1.json |
multilingual tokenizer config | ~0.1 MB |
These are the weight-level quantized checkpoints. Each quantized linear/conv
weighttensor is stored as int8 (or packed int4) alongside a matchingweight_scaletensor. LayerNorms/embeddings are kept fp32 for stability.
Size comparison
| Variant | T3 weight size | Ops |
|---|---|---|
| fp32 (base) | ~2.0 GB | β |
| Q8 / INT8 | ~514 MB | int8 Γ float scale |
| Q4 / INT4 | ~272 MB | group-scale, packed |
Quantization scripts
scripts/quantize_weights.pyβ int8 / int4 (unpacked)scripts/quant_int4_pack.pyβ int4 packed (2 nibbles/byte)scripts/stream_quant.sh/quant_stream.pyβ streaming per-tensor quantize (low-RAM)
β οΈ Important β about MNN for Chatterbox
Chatterbox ek custom autoregressive TTS hai (T3 token-transformer β S3Gen mel/vocoder). Ye safely one-click ONNX/MNN export nahi hota β T3 ke op graph + autoregressive generation ko MNN mein wirit karne ke liye manual MNN::Express wiring + custom op (RoPE/sinusoidal) implementation chahiye. Isliye:
- Is repo mein quantized
safetensors(weights) hain β ye weights hain, par MNN.mnnnahi. MNN.mnnke liye aapko ONNX export βmnnconvertkarna padta hai (jisake liye chatterbox package + torch + graph needed, aur is sandbox RAM mein possible nahi). - Woh DhVaani MNN repo jo already mil raha hai (
Bbkblo/DhVaani-0.5-MNN) β wo MNN.mnnfiles real hain aur load/test ho chuke hain (neeche dekho).
For a working MNN TTS right now β use DhVaani
Bbkblo/DhVaani-0.5-MNN (sahi, tested). Chatterbox ka MNN banao to aapko:
pip install chatterbox-tts(β₯8GB RAM / GPU pe)- (poore) model mein
.t3+.s3genβ ONNX export mnnconvertβ.mnn
π± Android Setup Status β READ THIS FIRST
Ye repo MNN nahi hai. Isme sirf quantized
.safetensorsweights hain. Directly Android TTS app mein nahi lagta.
ANDROID_SETUP.md(repo mein) mein pura honest status + MNN banane ka exact path hai:
- ONNX export (torch, β₯8GB RAM/GPU) β
model.t3+model.s3genmnnconvertβ.mnn- RoPE/sinusoidal + autoregressive custom op wire (MNN
MNN::Express)Abhi Android ke liye ready model β
Bbkblo/DhVaani-0.5-MNN(MNN files, tested). Ye repo tab use karo jab aap MNN export + custom op kaam karein.
Reference: https://github.com/resemble-ai/chatterbox Β· https://github.com/alibaba/MNN
- Downloads last month
- -