Downloads · 30 days
0
PraveenSharma08/tts_project
tts_project is a text-to-speech model from PraveenSharma08. Use it when you need text read aloud. It is set up for TTS. The card lists the license as mit.
This project delivers a bilingual text-to-speech (TTS) experience that accepts English or Hinglish text, detects Hindi tokens, transliterates them to Devanagari, and renders speech with an XTTS voice cloned model. The…
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
2.1 GB
Likes
0
Public
Click a slice to open those files.
.pth2.1 GB · 100%
From the Hugging Face model README
This project delivers a bilingual text-to-speech (TTS) experience that accepts English or Hinglish text, detects Hindi tokens, transliterates them to Devanagari, and renders speech with an XTTS voice cloned model. The interactive Gradio UI defined in inference.py is the primary entry point for end users.
Key capabilities:
hing_bert_module wraps a fine-tuned Hing-BERT token classifier, dictionary overrides, and Devanagari transliteration helpers.xtts_Hindi_FineTuned/) generates audio from the processed text using reference speaker WAVs.├── inference.py # Gradio UI and XTTS generation pipeline
├── hing_bert_module/ # Token classifier, transliteration utilities, and assets
│ ├── hing-bert-lid/ # Hugging Face model weights & tokenizer files (local)
│ └── dictionary.txt # Mythology/Sanskrit dictionary overrides
├── xtts_Hindi_FineTuned/ # Fine-tuned XTTS checkpoint and reference voices
├── imp_scripts/
│ └── test_inference.py # Console-driven TTS workflow (optional)
├── text_processor.py # Standalone CLI for token tagging & transliteration (optional)
├── translitor.py # Standalone CLI transliterator (optional)
├── requirements.txt # Minimal dependency lock for runtime
└── README.md # Project documentation (this file)
xtts_Hindi_FineTuned/ (includes config.json, checkpoints, and speakers/Reference_*.wav).Create & activate a virtual environment
python -m venv xtts_env_win
.\xtts_env_win\Scripts\Activate.ps1
Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
Launch the Gradio app
python inference.py
The UI will start at http://0.0.0.0:7860 (Gradio also provides an optional public share URL). Enter text, choose voice/language, tweak advanced settings, and click Generate Speech.
Text preprocessing (hing_bert_module.process_text)
hing_bert_module/hing-bert-lid/.final_output.txt.Speech synthesis (TTSGenerator in inference.py)
imp_scripts/test_inference.py: menu-driven CLI for batch experimentation and audio preview without Gradio.text_processor.py / translitor.py: utility scripts for inspection or debugging of language detection & transliteration.requirements.txt in sync with the active environment (pip freeze and prune to essentials as needed).xtts_env_win/) or large checkpoints beyond repository policy.hing_bert_module/dictionary.txt for custom transliteration entries.xtts_Hindi_FineTuned/ contains the expected files and paths referenced in TTSGenerator.reference_voices.pip install -r requirements.txt; verify CUDA compatibility for torch/torchaudio builds.PYTHONUTF8=1 or use UTF-8 capable shells.