Downloads · 30 days
87
5% of all-time downloads
TalhaAhmed/Urdu_kaani_TTS
Urdu_kaani_TTS is a text-to-speech model from TalhaAhmed. Use it when you need text read aloud. The card lists the license as mit.
This repository contains Urdu Kaani Text-to-Speech (TTS) fine-tuned on the KaniTTS 450M model using a custom Urdu dataset. The goal is to generate story-like, natural, expressive Urdu speech with high clarity.
Downloads · 30 days
87
5% of all-time downloads
All-time downloads
1.8K
Public
Parameters
370M
740 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors740 MB · 99%
From the Hugging Face model README
This repository contains Urdu Kaani Text-to-Speech (TTS) fine-tuned on the KaniTTS 450M model using a custom Urdu dataset. The goal is to generate story-like, natural, expressive Urdu speech with high clarity.
Sample Output (TTS Prediction)
<audio controls src="https://cdn-uploads.huggingface.co/production/uploads/657abf6c53ffbdd1d6530f25/ituEC-6uRs7tEu2M8lm12.wav"></audio>
| Feature | Description |
|---|
| Base Model | nineninesix/kani-tts-450m-0.2-pt |
| Fine-tuning Method | LoRA (rank=8) |
| Dataset Used | TalhaAhmed/urdu-tts-nano-codec |
| Language | Urdu |
| Model Size | 0.4B parameters |
| Format | Safetensors |
| Use Case | Stories, narration, expressive reading, general TTS |
This model is trained on the following dataset:
🔗 Dataset: https://huggingface.co/datasets/TalhaAhmed/urdu-tts-nano-codec
The dataset contains:
nineninesix/kani-tts-450m-0.2-pt
lora_r: 8
lora_alpha: 16
lora_dropout: 0.05
target_modules:
- q_proj
- k_proj
- v_proj
- out_proj
epochs: 2
optimizer: AdamW
learning_rate: 1e-4
warmup_steps: 500
batch_size: 2
pip install transformers datasets soundfile torch
from transformers import pipeline
pipe = pipeline(
"text-to-speech",
model="TalhaAhmed/Urdu_kaani_TTS"
)
text = "ایک دن ایک بوڑھا آدمی بازار گیا اور اس نے کہا کہ آج موسم بہت خوشگوار ہے۔"
audio = pipe(text)
with open("output.wav", "wb") as f:
f.write(audio["audio"])
Urdu_kaani_TTS/
│── adapter_config.json
│── model.safetensors
│── README.md
│── demo.wav (optional)
└── config.json
This model is released under the MIT License.
Special thanks to:
nineninesix for the KaniTTS base modelIf you want help integrating Urdu TTS into FastAPI, Streamlit, or production apps:
📧 Email: [email protected] 💼 GitHub: EnggTalha