Alpaअल्प

Hear Sanskrit spoken by Alpa

Waking Alpa’s voice…

Type your own

Sanskrit in Devanagari, or switch on Latin typing below. Up to 1,000 characters.

0 / 1,000

About Alpa

Alpa (अल्प, “small”) reads Sanskrit aloud, and all of it happens in this page. A small reader written in JavaScript turns your Devanagari into Sanskrit sounds and marks each syllable light or heavy (laghu or guru); a voice model of 4.5 million parameters turns those into speech, running in your browser with ONNX Runtime Web. The 21 MB model file is downloaded from Hugging Face and, where your browser allows, kept for your next visit. Your text is not sent anywhere.

How it was made

Alpa began as tiny-voca, an English voice model by Muhammed Nazeem. Two of its tables, 9,600 of its 4.5 million numbers (0.2%), were rewritten by hand: each Sanskrit sound starts from the nearest English one, and ट ड ण ष, which English lacks, start partly as English “r”, because both curl the tongue back. Then it trained for 100 minutes on a four-core CPU with 3.5 hours of Sanskrit speech from AI4Bharat’s Rasa recordings. No GPU was used.

How well, and how fast

Limits

The verses

Each verse here was compared letter for letter with its text on Sanskrit Wikisource (the link under each verse goes to the exact page version), and spoken through the model once before it was added. The transliteration is IAST.

Credits

Alpa is an independent project. None of the people or groups above has reviewed or endorsed it.