Instructions to use ramgathreya/nandini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- F5-TTS
How to use ramgathreya/nandini with F5-TTS:
# 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
Nandinī — a female voice for Vāgdhenu's Sanskrit chant (weights)
Paper: Nandini: A Female Voice for Vagdhenu, a Vrtta (Meter) Aware Sloka-to-Chant (TTS) System for Sanskrit (alphaXiv, 2026)
Model weights for Nandinī, a female chanting voice for Vāgdhenu, the
Sanskrit chant (pārāyaṇa) text-to-speech system. Nandinī was built without recording a female reciter. Vāgdhenu's
corpus was converted into a female voice (ramgathreya/nandini-data),
and IndicF5 was fine-tuned on it with Vāgdhenu's own recipe. The weights run in Vāgdhenu's renderer unchanged. The code
is in the Nandinī repository, and the
paper is on alphaXiv.
Files
| file | what |
|---|---|
voice_nandini_ema_2026-11-15.pt |
The voice. IndicF5 fine-tuned on the Nandinī corpus with Vāgdhenu's training script and settings, to his length (14,800 steps). EMA weights only. |
voc_bigvgan_nandini_2026-11-17.pt |
The vocoder. Vāgdhenu's fine-tuned BigVGAN-v2, fine-tuned further on the Nandinī corpus. Use it in place of his: his adds an echo to this voice, and IndicF5's vocos shivers on held notes. |
reference_bank/ |
The reference bank. One reference clip per meter (bank.json plus the wavs). They are cut from the same verses as Vāgdhenu's bank, so only the voice differs. |
vocab.txt |
The tokenizer vocabulary from AI4Bharat IndicF5, unchanged (as in Vāgdhenu's release). |
onnx/ |
ONNX version, full. The transformer (1,358 MB) and the vocoder (451 MB) in fp32, plus vocos_spectrum.onnx (54 MB), which the renderer uses only for Vāgdhenu's retry test. |
onnx_compact/ |
ONNX version, compact (344 MB plus vocos). The transformer in int8 with AdaLN factorised to rank 32, and the vocoder in int8. An approximation of the full set: see below. |
Architecture
The same as Vāgdhenu: IndicF5 / F5-TTS, a flow-matching DiT (dim 1024, depth 22, heads 16, about 337M parameters), then a BigVGAN-v2 vocoder. Sanskrit is routed through Kannada script, and melody and pace come from the reference clip.
Usage
Nandinī runs through Vāgdhenu's renderer, with these three files swapped in: the voice, the vocoder and the reference bank. The Nandinī repository wraps this in one command, which downloads these files on first use. Clone it, run the setup script for your backend, then chant:
git clone https://github.com/ram-g-athreya/nandini && cd nandini
scripts/setup_pytorch.sh # or setup_onnx.sh, setup_mlx.sh
uv run nandini chant --text "वसुदेवसुतं देवं कंसचाणूरमर्दनम् । देवकीपरमानन्दं कृष्णं वन्दे जगद्गुरुम् ॥" --out out.wav
uv run nandini chant --backend onnx --text "..." # without PyTorch; --compact for the smaller files
uv run nandini chant --backend mlx --text "..." # Apple silicon GPUs
The meter is detected from the verse (--meter overrides it), and the seed defaults to 60, as on Vāgdhenu's website.
For a 10 s verse on a MacBook Air M2, rendering takes about 1 minute with MLX, 3 minutes with PyTorch on MPS, and 6 to 10
minutes with ONNX on the CPU.
Evaluation
Nandinī was compared with Vāgdhenu's released fine-tune on 60 verses that neither model was trained on, each rendered once through Vāgdhenu's website path. Su-śrotā's character error rate was 3.81% for Nandinī and 3.67% for Vāgdhenu. The difference of 0.14 points has a 95% confidence interval of −0.38 to +0.64. Nandinī's renders were about 4.5% longer, and its pitch sat 6.64 semitones above Vāgdhenu's, against the 6.66 the corpus was built with. In 8 blind pairs, one listener judged the tune the same as Vāgdhenu's in 4 and mostly the same in 1. The other 3 differed only in where the chant pauses.
ONNX. On five test verses rendered from the same noise, the full ONNX set gives the same length and the same Su-śrotā errors as PyTorch. The compact set differs from the full set about as much as a render with another seed does. That missed the bars set for it in advance, so it is offered as an approximation.
Intended use & limitations
Synthesis of classical Sanskrit chant for recitation, study and accessibility. No Vedic svaras. As with Vāgdhenu, prosody comes from the reference clip, not from free design. All error rates come from Su-śrotā, the recogniser that also chose the training clips, so they are optimistic. The tune was judged by one listener, not in a controlled listening study. Nandinī may pause in different places from Vāgdhenu. Do not use it to impersonate anyone.
License & attribution
Our contribution is under Apache-2.0. The weights build on AI4Bharat IndicF5 (MIT), NVIDIA BigVGAN-v2
(MIT), F5-TTS and Vāgdhenu (Apache-2.0); see THIRD_PARTY_NOTICES.md. The training data derives from the
Vāgdhenu corpus (CC-BY-4.0).
The female voice comes from a sample made with Indic-Speak (Bodhan AI /
AI4Bharat, revision 76e0814, speaker Bharati), under the Bodhan AI Open Model License. Its acceptable-use restrictions
apply to this model and to whatever is made with it: for example, no voice clones of real people without their consent,
and no robocalls or voice phishing. Read the full licence on the Indic-Speak model page.
Citation
If you use this model, please cite the paper:
Ram G Athreya. Nandini: A Female Voice for Vagdhenu, a Vrtta (Meter) Aware Sloka-to-Chant (TTS) System for Sanskrit. alphaXiv, 2026. https://www.alphaxiv.org/abs/2611.nandini-sanskrit-chant-synthesis
@misc{athreya2026nandini,
title = {Nandini: A Female Voice for Vagdhenu, a Vrtta (Meter) Aware Sloka-to-Chant (TTS) System for Sanskrit},
author = {Ram G Athreya},
year = {2026},
publisher = {alphaXiv},
url = {https://www.alphaxiv.org/abs/2611.nandini-sanskrit-chant-synthesis}
}
Nandinī is built on Vāgdhenu's data, recipe and renderer, so please cite Vāgdhenu too:
A. P. Prathosh. Vagdhenu: A Vrutta (Meter) Aware Shloka-to-Chant (TTS) System for Sanskrit. arXiv preprint 2608.26146, 2026.
@misc{prathosh2026vagdhenu,
title = {Vagdhenu: A Vrutta (Meter) Aware Shloka-to-Chant (TTS) System for Sanskrit},
author = {Prathosh, A. P.},
year = {2026},
howpublished = {arXiv preprint 2608.26146}
}
- Downloads last month
- 137
Model tree for ramgathreya/nandini
Base model
ai4bharat/IndicF5