Instructions to use ampixa/dhimal-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use ampixa/dhimal-tts 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
- Notebooks
- Google Colab
- Kaggle
Dhimal TTS (Piper/VITS, ONNX)
A single-speaker Dhimal (dhi) voice with the contrast-preserving Devanagari G2P from Ampixa's Dhimal TTS
paper (IEEE SLT, submission 650). 22.05 kHz output, CPU-friendly ONNX, about 64 MB.
Status
- ONNX voice and G2P frontend, tested.
Use
pip install -r requirements.txt # onnxruntime, numpy, soundfile
python speak.py "गुम्बाराइतेङ थुम्हि।" -o dhimal.wav --phones
from speak import synthesize
wav, sr, phones = synthesize("धिमाल", length_scale=1.0)
Options: --length-scale (higher is slower), --noise, --noise-w; defaults come from config.json.
Files
model.onnx (voice), config.json (phoneme map, sample rate, inference defaults), frontend/devanagari_g2p.py
(Dhimal G2P), frontend/frontend_adapter.py, speak.py (CLI and Python API).
Limitations
- The voice knows these phones only: a ai au aː b bʰ d dz dzʰ dʰ e eː f g gʰ h i iː j k kʰ l m n o oː p pʰ r ri s t ts tsʰ tʰ u uː w ã ŋ ɕ ɖ ɖʰ ɳ ʈ ʈʰ ʌ ʌː ʌ̃ ʔ. Loan letters the frontend maps elsewhere (for example ष → ʂ) raise a clear error instead of being guessed.
- One narrator, read-scripture register.
- Downloads last month
- 19