Instructions to use ampixa/limbu-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Piper
How to use ampixa/limbu-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
Limbu TTS (Piper/VITS, ONNX)
A Limbu (Yakthung, lif) voice for Limbu written in Devanagari, with four sub-speaker styles, exported
to ONNX from the best checkpoint of ampixa/limbu-piper-lifwbt. 22.05 kHz, CPU, about 78 MB.
Status
- New ONNX export from the checkpoint, 4 speakers. Matches the PyTorch model at 91–98 dB SNR.
Use
pip install -r requirements.txt # onnxruntime, numpy, soundfile
python speak.py "केन मिङ हाʔ पिरो" -o limbu.wav --phones
python speak.py "..." --speaker spk00_sub03 -o limbu_s3.wav # or --speaker 3
from speak import synthesize
wav, sr, phones = synthesize("केन मिङ", speaker=0, length_scale=1.0)
Speakers: spk00_sub00 (0), spk00_sub01 (1), spk00_sub02 (2), spk00_sub03 (3), sub-clusters of one
narrator.
Export and checks
- Exported from the PyTorch checkpoint with a keyword-safe exporter (the stock piper-plus
export_onnxmisroutes optional inputs and adds an untrained speaker-embedding projection). FP32, opset 17. - Inputs:
input,input_lengths,scales[noise, length, noise_w],sid. The model is called without prosody features, the same way the Limbu TTS Space rendered it. - ONNX against PyTorch with noise off: identical output lengths, 91 to 98 dB SNR, all four speakers, short and long inputs.
- The frontend's
|and.separators are dropped before lookup, as in the Space.
Files
model.onnx, config.json, frontend/limbu_g2p/ (Limbu Devanagari G2P), frontend/frontend_adapter.py,
speak.py.
- Downloads last month
- 20