F5-TTS Malayalam v2
An F5-TTS model fine-tuned on Malayalam speech, trained on transcripts and audio from my own YouTube channel, a Malayalam-language ML/Data Science education channel. The goal was to build a TTS model that speaks Malayalam in my own voice and speaking style.
Try it out in the demo Space.
Model Details
- Base model: F5-TTS (
F5TTS_v1_Base) - Language: Malayalam (ml)
- Fine-tuning data: ~15.4 hours (7,602 clips, ~7 s average) of paired audio and transcripts, sourced from my own YouTube videos
- Vocabulary: character-level; 113 Malayalam characters (including digits and
% * + / =) appended to the pretrained F5-TTS vocabulary - Voice: fine-tuned to approximate my own voice and speaking style
- License: cc-by-nc-4.0 (non-commercial). The F5-TTS code is MIT-licensed, but the pretrained F5-TTS weights are CC-BY-NC because of their training data (Emilia). This fine-tune inherits that restriction. Check the base model license before any commercial use.
Files
model.pt: fine-tuned checkpoint (~40k updates)vocab.txt: vocabulary file used during fine-tuning (required for inference)
Usage
⚠️ Load the raw (non-EMA) weights. The EMA weights in this checkpoint produce non-Malayalam output, so set
use_ema=False.
pip install f5-tts
from f5_tts.api import F5TTS
tts = F5TTS(
model="F5TTS_v1_Base",
ckpt_file="model.pt",
vocab_file="vocab.txt",
use_ema=False,
)
tts.infer(
ref_file="ref.wav", # 6–11.5 s clip of the target voice
ref_text="<exact transcript of ref.wav>",
gen_text="<Malayalam text to synthesize>",
nfe_step=64,
cfg_strength=2.5,
speed=0.9,
file_wave="out.wav",
)
Recommended settings
| Setting | Value | Notes |
|---|---|---|
nfe_step | 64 | Best quality; lower is faster but less accurate |
cfg_strength | ~2.5 | Higher than the default helps clarity |
speed | 0.9 | Slightly slower speech sounds more natural |
| Reference clip | 6–11.5 s | Longer clips get truncated and break duration estimates |
Tips for better output
- Normalize the text: use atomic chillu characters (ൽ, ൾ, ൻ, ർ, ൺ) and remove zero-width joiners (ZWJ).
- Chunk long text: split into ~8-second pieces at commas or sentence boundaries. Short sentences work much better than long ones.
- Spell out numbers and symbols in Malayalam words rather than writing digits.
- Use a clean reference clip with an accurate transcript; mismatched reference text degrades output.
You can also try the hosted demo Space directly in the browser.
Training
This was a personal, low-budget experiment:
- Fine-tuned entirely on free GPU compute and storage on Kaggle, often running into the weekly quota limits
- No large-scale infra or paid compute was used
- Training data was self-sourced: audio and transcripts from my own uploaded YouTube videos
Training configuration:
| Parameter | Value |
|---|---|
| Base checkpoint | F5TTS_v1_Base |
| Learning rate | 5e-5 |
| Batch size | 2 (gradient accumulation 8, effective 16) |
| Epochs | 85 (~40k updates) |
| Data | ~15.4 h, 7,602 clips |
Known Limitations
This is an early, imperfect model and a fun side project rather than a production-ready system. Known issues include (but aren't limited to):
- Unsupported characters: ഊ, ഋ, ഃ, ഛ, ഝ, ഢ, ൿ, ൎ never appeared in the training data, so words containing them will be mispronounced or fail.
- Long sentences are noticeably weaker than short ones; chunking helps.
- Filler sounds: output occasionally contains "hmm"-like sounds, learned from untranscribed fillers in the training audio.
- EMA weights are unusable: use the raw weights (
use_ema=False), as noted above. - Pronunciation and prosody errors occur occasionally, and quality varies across input text.
- Slow on CPU: even with optimizations (NFE 16 + EPSS sampling + INT8 dynamic quantization), CPU inference on 2 cores runs at roughly 26× slower than real time. A GPU is recommended.
Planned improvements: cleaning the dataset (removing clips with untranscribed fillers, spelling out digits and symbols), adding data covering the missing characters and longer clips, retraining with a corrected EMA configuration, and systematic checkpoint evaluation with a Malayalam Whisper ASR model (character error rate).
Responsible Use
This model was trained only on my own voice, with my consent. Please do not use it to impersonate other people or to create deceptive or misleading audio. Clearly disclose that speech is synthetic when sharing generated output.
Acknowledgements
- F5-TTS authors for the base model and training framework
- Kaggle for free GPU compute
Citation
If you use this model, please link back to this repository and cite the original F5-TTS work:
@article{chen2024f5tts,
title={F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching},
author={Chen, Yushen and Niu, Zhikang and Ma, Ziyang and Deng, Keqi and Wang, Chunhui and Zhao, Jian and Yu, Kai and Chen, Xie},
journal={arXiv preprint arXiv:2410.06885},
year={2024}
}