Views
No views yet
ChatterboxMultilingualTTS,
then swap in these Slovak weights to get high-quality Slovak speech with
zero-shot voice cloning.GUIDE.md in this repo for the bilingual EN+SK version).🇸🇰 Slovenčina dole (Slovak description below).
| File | Size | What it is |
|---|---|---|
t3_sk_v2.2.safetensors | ~2 GB | Slovak T3 weights — production default |
GUIDE.md | ~12 KB | Practical tuning guide — 7 lessons from fine-tuning Chatterbox on a low-resource language (EN + SK) |
pip install chatterbox-tts torch torchaudio safetensors1import torch
2from huggingface_hub import hf_hub_download
3from safetensors.torch import load_file
4from chatterbox.mtl_tts import ChatterboxMultilingualTTS
5
6device = "cuda" if torch.cuda.is_available() else "cpu"
7
8# 1) Load the base multilingual Chatterbox
9model = ChatterboxMultilingualTTS.from_pretrained(device=device)
10
11# 2) Download Slovak T3 weights and patch them in
12sk_weights = hf_hub_download(
13 repo_id="pekiskol/chatterbox-tts-slovak",
14 filename="t3_sk_v2.2.safetensors",
15)
16state = load_file(sk_weights, device="cpu")
17
18# Handle vocab size mismatch between SK fine-tune and base model
19target_vocab = model.t3.text_emb.weight.shape[0]
20src_vocab = state["text_emb.weight"].shape[0]
21if src_vocab > target_vocab:
22 state["text_emb.weight"] = state["text_emb.weight"][:target_vocab, :]
23 state["text_head.weight"] = state["text_head.weight"][:target_vocab, :]
24elif src_vocab < target_vocab:
25 pad = target_vocab - src_vocab
26 emb_pad = state["text_emb.weight"].mean(dim=0, keepdim=True).repeat(pad, 1)
27 head_pad = state["text_head.weight"].mean(dim=0, keepdim=True).repeat(pad, 1)
28 state["text_emb.weight"] = torch.cat([state["text_emb.weight"], emb_pad], dim=0)
29 state["text_head.weight"] = torch.cat([state["text_head.weight"], head_pad], dim=0)
30
31model.t3.load_state_dict(state, strict=True)
32model.t3.to(device).eval()
33
34# 3) Generate Slovak speech with zero-shot voice cloning
35wav = model.generate(
36 text="Ahoj, toto je ukážka slovenského hlasu generovaného modelom Chatterbox.",
37 audio_prompt_path="path/to/your/reference.wav", # 3–10 s of clean SK speech
38 language_id="sk",
39)
40
41import torchaudio
42torchaudio.save("output.wav", wav, model.sr)20 %, Y100) and
acronyms (e.g. NDA) are sometimes mispronounced. For production use, normalise
text first (write dvadsať percent instead of 20 %, eN-Dý-Á instead of NDA).1@misc{chatterbox-tts-slovak,
2 author = {pekiskol},
3 title = {Chatterbox TTS — Slovak fine-tune},
4 year = {2026},
5 url = {https://huggingface.co/pekiskol/chatterbox-tts-slovak}
6}ChatterboxMultilingualTTS z Resemble AI.t3_sk_v2.2.safetensors.