## Ancient Language Support — Sanskrit · Pali · Aramaic · Latin · Egyptian

- **Library access:** `AdvancedAudioEngine.getAncientLanguageLibrary()` exposes
  five curated ancient languages with script metadata (direction, supported
  writing systems), phonetic inventories, transliteration schemes, chant
  lexicons, and sample mantras including translations, meters, and contextual
  notes.
- **Transliteration helper:**
  `AdvancedAudioEngine.transliterateAncientText({ languageId, scheme, text })`
  normalises devotional text into canonical romanisation. Sanskrit → IAST
  mapping preserves visarga (ḥ) and retroflex consonants, while Pali
  romanisation adds macrons/nigahita clarity for chant worksheets.
- **Chant generation:**
  `AdvancedAudioEngine.generateAncientChantSequence({ languageId, intent, length, seed })`
  assembles chant phrases from the lexicon, returning meter metadata,
  translation summaries, and per-line emphasis tags—ideal for guided sessions
  that blend historical language with modern audio layers.
- **Testing:** Behaviour covered via Vitest in
  `web/src/lib/__tests__/advanced-audio-engine.test.ts`, validating language
  registry richness, transliteration output, and chant sequence
  synthesis/fallbacks.
