Teaching Qwen3-TTS a language it doesn't know: Kannada (1.7B experiment)
Can a text-to-speech model with no Indian-language support learn Kannada, and two new voices, from about 89 hours of speech? This repository is my answer: a full fine-tune of Qwen3-TTS-12Hz-1.7B-Base.
Research experiment, not a product. This model is shared to show what the experiment achieved. It is not tuned or tested for real-world use. Please don't use it in apps or services.
The base model (Qwen) and the Kannada speech data (SYSPIN, IISc) are not mine; see Ownership, data and credits.
What it can do
- Speaks Kannada with natural, fluent-sounding pronunciation in my listening (samples below).
- Keeps its English.
- Two built-in voices, male (
syspin_male) and female (syspin_female), with no reference audio needed.
Why this was hard
- The base model doesn't know Kannada. Qwen3-TTS supports 10 languages (Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian). None are Indian.
- The text tokenizer barely covers Kannada. Its vocabulary has only 25 Kannada tokens, all single characters. Vowel signs and the virama fall back to raw bytes. In my measurement a Kannada word becomes about 14.6 tokens, versus 1.4 for an English word. The model has to learn to read Kannada from byte fragments.
- I kept the tokenizer unchanged on purpose. No new tokens were added, so the experiment tests how far the original model can stretch.
- English had to keep working while the model learned Kannada.
What I did
- Data.
- About 89 hours of studio Kannada speech from the SYSPIN corpus, one male
and one female speaker. This gives the two built-in voices
syspin_maleandsyspin_female. - About 38 hours of English speech in the same two voices, generated with the original Qwen3-TTS 1.7B Base by voice cloning (9,606 sentences × 2 voices); clips rejected in review were removed. This English "replay" data stops the model from forgetting English.
- Test sentences were kept out of training.
- About 89 hours of studio Kannada speech from the SYSPIN corpus, one male
and one female speaker. This gives the two built-in voices
- Compute. Trained on a single NVIDIA L4 GPU.
Results
Held-out loss on the same 32 unseen clips, before and after fine-tuning (lower is better; loss is not a quality score):
| Held-out set | Base model | This model |
|---|---|---|
| Kannada, male voice | 4.153 | 2.174 |
| Kannada, female voice | 4.157 | 2.212 |
| English, male voice | 2.147 | 1.906 |
| English, female voice | 2.130 | 1.897 |
Kannada loss dropped by almost half, and English did not get worse.
Audio samples
Unedited model output with only a constant volume adjustment. The short clips
use greedy decoding; the long clips use sampling. Generation details for every
clip are in
samples/manifest.json.
| Type | Voice | Text | Audio |
|---|---|---|---|
| Kannada | male | ಇಂದು ಬೆಳಿಗ್ಗೆ ಮಳೆ ಬಿದ್ದರೂ ಮಕ್ಕಳು ಸಂತೋಷವಾಗಿ ಶಾಲೆಗೆ ಹೋದರು. | |
| Kannada | female | ಗ್ರಂಥಾಲಯದಲ್ಲಿ ಹೊಸ ಪುಸ್ತಕಗಳ ಪ್ರದರ್ಶನವನ್ನು ಆಯೋಜಿಸಲಾಗಿದೆ. | |
| Kannada | male | ರೈತರು ಉತ್ತಮ ಮಳೆಯ ನಿರೀಕ್ಷೆಯಲ್ಲಿ ಹೊಲವನ್ನು ಸಿದ್ಧಪಡಿಸಿದರು. | |
| Kannada | female | ಆರೋಗ್ಯಕರ ಜೀವನಕ್ಕೆ ಸಮತೋಲಿತ ಆಹಾರ ಮತ್ತು ವ್ಯಾಯಾಮ ಅಗತ್ಯ. | |
| English | male | Technology can make everyday work faster and more reliable. | |
| English | female | Please verify the document before sending the final copy. |
Long paragraph (22–26 seconds), generated in one call:
ಬೆಂಗಳೂರು ಕರ್ನಾಟಕದ ರಾಜಧಾನಿಯಾಗಿದ್ದು, ಇದನ್ನು ಉದ್ಯಾನ ನಗರಿ ಎಂದು ಕರೆಯಲಾಗುತ್ತದೆ. ಇಲ್ಲಿ ಅನೇಕ ಸುಂದರವಾದ ಉದ್ಯಾನವನಗಳು, ಕೆರೆಗಳು ಮತ್ತು ಐತಿಹಾಸಿಕ ಕಟ್ಟಡಗಳಿವೆ. ನಗರದ ಹಸಿರು ಉದ್ಯಾನವನಗಳು ಪ್ರವಾಸಿಗರನ್ನು ಹೆಚ್ಚು ಆಕರ್ಷಿಸುತ್ತವೆ. ಪ್ರತಿ ವರ್ಷ ಲಕ್ಷಾಂತರ ಜನರು ಇಲ್ಲಿಗೆ ಉದ್ಯೋಗ ಮತ್ತು ಶಿಕ್ಷಣಕ್ಕಾಗಿ ಬರುತ್ತಾರೆ.
| Voice | Length | Audio |
|---|---|---|
| male | 22.4 s | |
| female | 26.3 s |
What I found along the way
- Tokenizer adaptation picked the wrong rows. The first version selected embeddings used by any training text, including English, which gave 11,946 rows instead of the 234 that Kannada actually uses. I restricted it to Kannada text so English stays untouched.
- The embedding warm-up step was not training anything. Before full training, a short warm-up trains only the Kannada token embeddings. A switch disabled those updates. I found and fixed it before the final run.
- Checkpoint cleanup deleted the wrong files. Rolling cleanup compared step numbers across training stages, so a new stage's checkpoint was deleted immediately. It is now stage-aware.
- Streaming text input fails for Kannada, and I found why. In streaming mode the model must produce at least one audio frame per text token. A Kannada sentence has more tokens (for example, 73 for a short sentence) than the audio frames natural speech needs, so the output becomes too long or stops early. Normal (non-streaming) generation works.
Try it (for evaluation only)
Needs a CUDA GPU. Tested on a free Google Colab Tesla T4 in FP32.
pip install -U huggingface_hub
hf download karthik-1599/qwen3-tts-kannada-1.7b-experiment \
--local-dir qwen3-tts-kannada-1.7b-experiment
cd qwen3-tts-kannada-1.7b-experiment
pip install -r requirements.txt
# Pure Kannada: language Auto
python inference.py --speaker syspin_female --language Auto \
--text "ಗ್ರಂಥಾಲಯದಲ್ಲಿ ಹೊಸ ಪುಸ್ತಕಗಳ ಪ್ರದರ್ಶನವನ್ನು ಆಯೋಜಿಸಲಾಗಿದೆ." \
--output kannada.wav
From Python, using the bundled runtime:
import sys, torch, soundfile as sf
sys.path.insert(0, "runtime/Qwen3-TTS")
from qwen_tts import Qwen3TTSModel
tts = Qwen3TTSModel.from_pretrained(
".", device_map="cuda:0", dtype=torch.float32, attn_implementation="sdpa"
)
wavs, sr = tts.generate_custom_voice(
text="ಇಂದು ಬೆಳಿಗ್ಗೆ ಮಳೆ ಬಿದ್ದರೂ ಮಕ್ಕಳು ಸಂತೋಷವಾಗಿ ಶಾಲೆಗೆ ಹೋದರು.",
language="Auto",
speaker="syspin_male",
do_sample=False,
subtalker_dosample=False,
max_new_tokens=320,
)
sf.write("out.wav", wavs[0], sr)
- Use FP32 on a T4 (the default).
--dtype bfloat16works only on Ampere or newer GPUs (A100, L4, …). max_new_tokens=320is about 25 seconds of audio (12.5 frames per second). Raise it for longer text.runtime/Qwen3-TTSis the Qwen3-TTS 0.1.1 package with small compatibility fixes fortransformers==4.57.6(Apache-2.0, see its LICENSE).
Training details
| Item | Value |
|---|---|
| Base model | Qwen/Qwen3-TTS-12Hz-1.7B-Base |
| Method | Full fine-tune, custom-voice mode, non-streaming layout |
| Voices | syspin_female (id 3000), syspin_male (id 3001) |
| Training GPU | 1 × NVIDIA L4 |
| Optimizer | Adafactor, BF16, batch 1 × gradient accumulation 8 |
| Learning rate | 2e-6 (model), 1e-5 (234 Kannada text-token rows) |
| Final step | 30,372 optimizer steps |
| Tokenizer | Original Qwen tokenizer, 0 added tokens |
Ownership, data and credits
I do not own the base model, the speech data, or the voices. My work is the fine-tuning experiment: the training setup, the runs, and the analysis. All rights in the original model and data stay with their owners.
| What | Source | Owner | License |
|---|---|---|---|
| Base model | Qwen/Qwen3-TTS-12Hz-1.7B-Base | Alibaba Qwen team | Apache-2.0 |
| Speech tokenizer and inference runtime | Qwen3-TTS (bundled in runtime/, speech_tokenizer/) | Alibaba Qwen team | Apache-2.0 |
| Kannada speech (both voices) | SYSPIN corpus, Kannada male and female (dataset page); accessed through the Hugging Face copy arpit-tiwari/syspin-kannada-tts | SPIRE Lab, IISc Bangalore | CC BY 4.0 |
| English speech | Generated by me with the Qwen base model above, cloning the two SYSPIN voices | derived from the two rows above | same as above |
- The fine-tuned weights are shared under Apache-2.0, following the base model. The SYSPIN CC BY 4.0 attribution also applies.
- The two voices belong to the SYSPIN speakers. Do not use this model to imitate or impersonate anyone.
- If you are a rights holder and want something changed or removed, please open a discussion on this repository.
Please cite the SYSPIN corpus if you use this work:
Abhayjeet et al., "SYSPIN_S1.0 Corpus — A TTS Corpus of 900+ hours in nine Indian Languages", 2025.