Skip to content

About

Reproducible compact multilingual text-to-speech for the browser.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compact multilingual browser TTS

Try it at tts.hansda.in. Choose a language and checkpoint, select Load model, then press Play. The demo downloads the selected voice on demand and generates speech in your browser. Indic voices accept native script and Roman input.

Datasets and models

Each dataset contains 20 hours of single-voice synthetic speech. The model cards list the checkpoints, browser package sizes, and evaluation results.

Language Hugging Face dataset Hugging Face model
Bengali Jahnavi dataset Compact INT8 model
Gujarati Jahnavi dataset Compact INT6 model
Hindi Ishwari dataset Compact INT6 and INT7 models
Malayalam Jahnavi dataset Compact INT6 model
Telugu Sreekar dataset Browser preview
English Nivedita dataset Compact INT6 model

Run the pipeline

Use Python 3.12 and install the dependencies. Training uses CUDA PyTorch, pronunciation supervision uses libespeak-ng.so.1, and scoring uses UTMOSv2.

  1. Generate speech. Run python prompts.py artifacts/prompts hi en ml te gu. Set MAYA_PYTHON, MAYA_ENGINE, and MAYA_MODELS for the Maya 2 Native inference setup, then run run_synthesis.sh.
  2. Audit and package. Use audit.py to check transcripts and keep 20 usable hours. Use publish_dataset.py to build the train, validation, and test Parquet shards. Authenticate with hf auth login before publishing.
  3. Train and export. Set PYTHONPATH=.:src:pipeline. Fetch bengali-2.255-fp32.pt and frontend/phone-vocab.json from the Bengali model card into artifacts/bn-model/. train_queue.sh shows the commands for phonemizer training, acoustic alignment, the three training stages, quantization, and scoring. Checkpoints save training state for resume.
  4. Test the browser build. Copy browser/ from the Bengali model into artifacts/bn-model/. Build the Roman-input lexicons with converter/build.py. Run python prepare_site.py PATH_TO_BENGALI_BROWSER_DIST artifacts/site, then python check_site.py artifacts/site with Chrome and Playwright installed. PATH_TO_BENGALI_BROWSER_DIST points to a base build from pipeline/build_bengali_web.py.

The queue scripts and service units reference the original workstation and deployment. Review their paths and destinations before running them on another machine.

Model architecture and browser inference

Model architecture

Phone, prosody, and acoustic stacks with expanded attention and waveform refinement blocks

Acoustic model · Waveform refiner

Browser inference

Selected voice download followed by text normalization, pronunciation, inference, and WAV playback

Browser worker · Roman input converter and validation fixtures

Credits

The acoustic model adapts Tiny Voca by Muhammed Nazeem. Maya 2 Native generated the training audio. The dataset cards document prompt sources and licenses. Full demo credits

About

Reproducible compact multilingual text-to-speech for the browser.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages