212 points · by subinalex · 4mo ago · 60 comments
From the introduction;
Classical Sanskrit recitation, parāyaṇa, is a chanted rather than a read register. A faithful synthesizer must hold long vowels, sustain a terminal visarga, articulate retroflex and aspirated consonants, render dense consonant conjuncts cleanly, and respect the metrical structure of the verse.
None of these is well served by general-purpose text-to-speech, and there is essentially no chant-domain training data available off the shelf. The problem is therefore doubly hard: it is low-resource, and the target prosody is a specialized melodic contour rather than ordinary read speech.
This report describes a system, Vāgdhenu, that solves the practical version of this problem well enough to ship two large deployments, and it documents the design decisions, the dead ends, and the one negative result that turned out to be the most useful finding. We do not claim a new model. We claim an honest account of what it takes to build a faithful Sanskrit chant pipeline on top of current open backbones, what works, and what is architecturally out of reach.
Our framing is that of an experience report. The evidence we offer is the comparative lineage across architecture families, a reproducible production system, two shipped artifacts at real scale, and a public release of code, weights, data, and a live demonstration. Formal listening studies are limited to expert evaluation, which we state plainly and treat as a limitation rather than a result.
I have lots of questions: what's the use case for this? Primarily religious / liturgical? It also seems that the fact that this tool works means that any arbitrary Sanskrit sentence can be translated into a chant by some sort of procedure (dare I say algorithm)? I'm terribly curious and fascinated by this!
Having a spoken reference that too as a chant makes it easy to recite the verses.
Hindu Vedic pandits and priests who come in and run priestly events and functions at Hindu homes are usually well known within their communities are not treated as strangers and neither is there an element of inconvenience. If anything their absence adds an element of inconvenience. For one most rituals in sanskrit are available on youtube for those who want to diy. But most discerning Hindus prefer the real thing. Same as Christians.
Now you can't automate him either. His presence is there because religious rituals and practice and tradition mandate his presence, but if you could just play the chants over a speaker and have people understand and follow the ritual instructions some other way, nothing would really change.
For what it's worth, people can and do use AI visuals and sermons in Christianity as well
Besides, it’s a fun exercise, so why not?
From what I can tell, it used 5.3 hours of single voice fine-tune data.
I've noticed a lot of people seem quick to dismiss something as vibe-coded these days.
This is most likely done by claude as per the aesthetics. Every AI has its own aesthetics as well.
Sanskrit does not do schwa deletion. So engines must map the phonemes to Kannada/Telugu (which support the full complement of Sanskrit sounds) if they want to get somewhere. A lot of this can be solved if the backend supports ipa.
But this is for classical Sanskrit. Vedic recitation is too complex (and I know too little about it) to handle without a LOT of work.
It is neither.
The fundamental issue is that there is no way to represent the schwa sound in English[1]. All of a,e,i,o,u have been used to communicate the schwa (or schwa-like) sound in English.
- The `a` in about
- The `e` in taken
- The `i` in cousin
- The `o` in button
- The `u` in upon
1 - https://ashishb.net/linguistics/schwa/nb: Bhatta is Sanskrit for priest.
I just tried this
यं ब्रह्मा वरुणेन्द्ररुद्रमरुत: स्तुन्वन्ति दिव्यै: स्तवै-
र्वेदै: साङ्गपदक्रमोपनिषदैर्गायन्ति यं सामगा: ।
ध्यानावस्थिततद्गतेन मनसा पश्यन्ति यं योगिनो
यस्यान्तं न विदु: सुरासुरगणा देवाय तस्मै नम: ॥
Interestingly, the word ब्रह्मा which should say Brahmaaaa says baa. Please take a look.
What's the point anyway? If you really love your traditions, slokas and chanting, please keep it as natural as possible, instead of plasticizing it to the core.
This is third level of mechanizing the sacred rituals. First - we lost the live chanting due to recorded recitals with human voice. Then we lost the experience of presence due to online streaming. And now even human voice is lost - the broken chanting is generated. So, combined all together, you have a streaming of the rituals which was performed by recorded chanting that never really involved a human reading the sloka.
Just because we can pollute the world, we need not do it.
This is not true at all. Live chanting, live pUjAs, etc. are still very much practiced. It's just that recorded versions also became available, making our lives richer.
The same applies to other art forms. E.g., bharatanATyam is still performed live, but we also have recorded performances. That is a good thing!
This is another tool to help correct that balance.
The author seems a pretty knowledgeable person - https://prathosh.in/
His talk "The Non-negotiability of Shastra-s in Modern Science" - https://www.youtube.com/watch?v=i5Tp4gdQiTM
His goals need not be what you want them to be; his project; his rules.
Nobody is claiming this is something earth-shattering; just that it is an interesting project on a difficult subject matter. The author has linked to the paper for the project on the site itself which you can read for your edification.
From the introduction;
Classical Sanskrit recitation, parāyaṇa, is a chanted rather than a read register. A faithful synthesizer must hold long vowels, sustain a terminal visarga, articulate retroflex and aspirated consonants, render dense consonant conjuncts cleanly, and respect the metrical structure of the verse.
None of these is well served by general-purpose text-to-speech, and there is essentially no chant-domain training data available off the shelf. The problem is therefore doubly hard: it is low-resource, and the target prosody is a specialized melodic contour rather than ordinary read speech.
This report describes a system, Vāgdhenu, that solves the practical version of this problem well enough to ship two large deployments, and it documents the design decisions, the dead ends, and the one negative result that turned out to be the most useful finding. We do not claim a new model. We claim an honest account of what it takes to build a faithful Sanskrit chant pipeline on top of current open backbones, what works, and what is architecturally out of reach.
Our framing is that of an experience report. The evidence we offer is the comparative lineage across architecture families, a reproducible production system, two shipped artifacts at real scale, and a public release of code, weights, data, and a live demonstration. Formal listening studies are limited to expert evaluation, which we state plainly and treat as a limitation rather than a result.
As a practical example; if you have ever heard even the common Gayathri Mantra being chanted by a Tamil Thanjavur Brahmin priest vs. a UP Allahabad Brahmin priest you would know the wide difference in utterances. Having something like this gives you a reference (albeit with a South Indian Kannada bent) to compare against.
Most people don't. Slokas and chanting are just traditions we do begrudgingly to enable the actual social objectives (family bonding, etc) of the rituals; you'd be hard-pressed to find anyone who actually understands them, even if they have it memorized by heart. I'd say automating the recitation would be quite a good sell for most families, it gives a more convenient and reliable option in place of having to invite strangers over (and reinforcing caste roles) just for that.
> Vāgbodhinī A Sanskrit chant tutor. Paste any śloka (or prose) in any script, hear its metre-aware reference chant rendered by Vāgdhenu, then chant along — a Sanskrit speech model scores every syllable and shows you what to fix. For classical (laukika) Sanskrit.
It doesn't have to be a replacement. Anyone who has ever been in the physical presence of an expert reciting sanskrit verses knows that this can never replace that experience.
It will only make the language and the chants more accessible.
I have typed the word in English literals, and it made a horrible pronunciation of the word.
> It will only make the language and the chants more accessible.
No, it will turn sacred chanting into an AI slop. Entirely due to desire of people wishing to make some quick bucks or cheap reputation.
I tried out the Gayathri Manthra (a simple test) using Sanskrit, Tamil and English scripts and as expected, the first two render fine but not the last.