Telugu Tiny-Voca

Telugu Tiny-Voca is a compact 4.49M-parameter end-to-end Telugu Text-to-Speech (TTS) model trained from scratch. Built on a RoPE Transformer backbone with a zero-buzz Continuous-Phase NSF-iSTFT synthesizer, it generates natural 24 kHz Telugu speech fast on CPU.

License Release Parameters

HF Weights Live Demo Sample Rate

GitHub Stars GitHub Forks Issues


Features

  • Compact: 4.49M parameters (18 MB PyTorch checkpoint), waveform synthesizer included.
  • Zero-Buzz NSF-iSTFT: Continuous FP64-phase anti-aliased harmonic excitation + unvoiced noise filtering eliminates metallic vocoder buzz.
  • Real Human Data: Trained from scratch on 15.74 hours of 24 kHz studio-quality female Telugu speech (AI4Bharat / Rasa).
  • Fast on CPU: Non-autoregressive RoPE Transformer backbone enables real-time CPU synthesis.
  • Full Open Recipe: Includes training code, inference script, Gradio web app, and a pure TTS student notebook.

Architecture Overview

Component Details
Model Type Non-Autoregressive End-to-End Neural Source-Filter TTS
Backbone 4-layer Text Encoder + Duration/F0/VUV/Energy Predictors + Frame Transformer A (2) & B (5) with RoPE
Synthesizer Lightweight Continuous-Phase Harmonic + Noise iSTFT (n_fft=1024, hop=256, 64 harmonics, 24 kHz)
Adversarial Training LSGAN with MPD + MRD Discriminators (adv=1.0, fm=4.0)
Total Parameters 4.49M (18 MB best.pt)

Quick Start

1. Clone & Install

git clone https://github.com/Jaya325/telugu-tiny-voca.git
cd telugu-tiny-voca
pip install -r requirements.txt

2. Download Weights from Hugging Face

python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download('JaiJaya/telugu-tiny-voca', 'best.pt', local_dir='weights')"

3. Run Gradio Web UI on CPU

python3 src/infer.py --gradio --checkpoint weights/best.pt --device cpu --port 7860

Training Results (From Scratch β€” 30,000 Steps)

Trained from scratch on a single NVIDIA RTX 3060 (12 GB, BF16 AMP, batch size 40). LSGAN (MPD + MRD, adv=1.0, fm=4.0) activated at Step 2,000.

Training Curves

Metric Start (Step 500) Best (Step) Final (Step 30,000)
val/mel 1.0566 0.8115 (29,000) 0.8141
val/stft 2.0496 1.8728 (3,500) 1.8931
val/dur 0.0415 0.0317 (30,000) 0.0317
val/f0 0.1490 0.1101 (29,000) 0.1107
val/f0_delta 0.0264 0.0234 (27,500) 0.0234
val/vuv 0.3493 0.2792 (19,000) 0.2815
val/energy 0.4744 0.3432 (11,000) 0.3441
train/adv / fm / d 0.00 / 0.00 / 0.30 β€” 0.5024 / 0.1246 / 0.3129

Student Course Notebook

Open Telugu_Tiny_Voca_TTS.ipynb for a clean, step-by-step pure TTS walkthrough.

Credits & License

Downloads last month
24
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train JaiJaya/telugu-tiny-voca