Instructions to use ampixa/bantawa-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use ampixa/bantawa-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
Bantawa TTS (Piper/VITS, ONNX) with Devanagari → IPA G2P
A single-speaker Bantawa (bap, Kiranti) voice plus an explicit Devanagari → phonemic G2P that snaps rule
output to the 2,040-entry Doornenbal (2009) lexicon, recovering /ɨ/ and /ʔ/ that Devanagari does not write.
22.05 kHz, CPU ONNX, about 78 MB.
Status
- ONNX voice and G2P, tested. Its phone output matches the voice's original eval sheet exactly.
Use
pip install -r requirements.txt # onnxruntime, numpy, soundfile
python speak.py "मना यङ" -o bantawa.wav --phones # -> m ɨ n a | y a ŋ
from speak import synthesize
wav, sr, phones = synthesize("आदेङ काखेङ्पाचि", length_scale=1.0)
Evaluation (epoch 59, checkpoint selected by MCD; diagnostics, n = 6 verses)
| Metric | Value |
|---|---|
| MCD-DTW vs natural narrator | 6.96 dB |
| ECAPA speaker cosine | 0.696 |
| Allosaurus phone error rate | 0.591 (biased toward this G2P's own reference) |
| Duration ratio, synthetic / reference | 0.87 to 1.04 |
The G2P is the more reusable artifact; a larger acoustic model would beat this voice on signal quality.
Raw numbers are in eval_*.json and eval_dash.tsv.
Packaging notes
model.onnxis the epoch-59 Piper export (bantawa-bap-epoch59.onnx). The 935 MB training checkpoint is not included.- The frontend joins words with
|;speak.pydrops it before phoneme lookup. Rendering the eval-sheet phones that way matched the shippedsamples/best (DTW log-mel distance 0.61 to 0.83, against 0.87 to 1.20 with_or#as a word token).
Files
model.onnx, config.json, frontend/ (bantawa_g2p.py, lexicon.py, bantawa-english.dict.jsonl,
frontend_adapter.py), speak.py, samples/ (six verses rendered by the checkpoint), eval_*.
- Downloads last month
- 19