ai4bharat/Rasa
Viewer • Updated • 1.28M • 14.4k • 75
How to use vertexvicky/piper-rasa-tamil with Piper:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
A real-time neural Text-to-Speech (TTS) single-speaker model for Tamil (ta_IN), trained using the Rhasspy Piper (VITS) architecture.
This model is trained on a dedicated single-speaker female voice from the AI4Bharat Rasa Tamil dataset, preprocessed in standard LJSpeech format (--single-speaker) with audio resampled to 22,050 Hz.
| Property | Value |
|---|---|
| Language | Tamil (ta / ta_IN) |
| Voice / Speaker | Single Speaker (Female, native Tamil) |
| Speaker Count | 1 (num_speakers: 1) |
| Dataset Source | AI4Bharat Rasa (Tamil) |
| Total Audio Duration | 15.0 hours (~54,000 seconds) |
| Dataset Format | LJSpeech (--single-speaker) |
| Audio Sample Rate | 22,050 Hz (16-bit Mono PCM) |
| Phonemizer | espeak-ng (voice: ta) |
| Architecture | VITS (piper_train) |
| Training Infrastructure | Dual NVIDIA T4 GPUs (Distributed Data Parallel) on Kaggle |
| Training Duration | ~12 hours |
| Precision | FP32 (--precision 32) |
| Batch Size | 8 per GPU (Effective batch size = 16) |
| Checkpoints | Saved every 10 epochs (up to epoch=89-step=85320.ckpt) |
piper-rasa-tamil/
├── checkpoints/
│ ├── epoch=9-step=9480.ckpt
│ ├── epoch=19-step=18960.ckpt
│ ├── ...
│ └── epoch=89-step=85320.ckpt # Latest converged checkpoint
├── config.json # Piper model & phoneme ID mapping
├── tamil_female_base.onnx.json # Single-speaker ONNX runtime config
├── training_status.json # Kaggle training monitoring logs
└── README.md
Export any checkpoint snapshot (e.g. epoch=89) into an ONNX graph:
python3 -m piper_train.export_onnx \
checkpoints/epoch=89-step=85320.ckpt \
tamil_female_single.onnx
echo "வணக்கம், நான் சாகோ பேசுகிறேன்." | piper \
--model tamil_female_single.onnx \
--config tamil_female_base.onnx.json \
--output_file output.wav
import wave
from piper.voice import PiperVoice
voice = PiperVoice.load("tamil_female_single.onnx", config_path="tamil_female_base.onnx.json")
text = "வணக்கம், நீங்கள் எப்படி இருக்கிறீர்கள்?"
with wave.open("test.wav", "wb") as wav_file:
voice.synthesize(text, wav_file)
{
"noise_scale": 0.333,
"length_scale": 1.0,
"noise_w": 0.8
}
Base model
rhasspy/piper-voices