Spaces:
Running
Running
Commit History
-
feat(tts): serve pre-generated Gemini Charon audio for Lao sutras
souliya_pps +1: Claude Opus 5.5Lao sutra chunks are generated once with Gemini TTS (Charon voice, Vientiane-accent style prompt) by scripts/generate-lao-library.php and published to the Space repo's tts-library branch. At play time the server reads that library first, so listening needs no API calls or quota; chunks not generated yet fall back to the Edge voice. The generator reproduces the sutra page's text extraction and 800-char chunking exactly (verified against Chrome for all 1,412 sutras, including UTF-16 handling of emoji), so library keys match what the browser sends. Lao no longer uses the device's speechSynthesis voice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>798f9fe -
fix(tts): serve real Lao voice instead of Thai fallback
souliya_pps +1: Claude Opus 5.5Microsoft's Edge TTS now requires a v2 Sec-MS-GEC token, so the PHP library and browser WebSocket were rejected (403). Google has no Lao voice, so Lao text fell through to the Thai Google voice and was cached. - Use the maintained Python edge-tts CLI first (lo-LA-ChanthavongNeural) - Drop the Thai-voice fallback for Lao text - Version the TTS cache key so cached Thai audio is not served again - Locate edge-tts outside PATH, serve audio when cache dir is read-only, fix MP3 duration estimate and word-highlight timing - Skip the broken in-browser Edge attempt on the sutra page - Install edge-tts in the Docker image - Load gitignored .env.local for local secrets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>078f847
-
feat(book): re-clone timeline slides 8→end and add Lao/Thai narration
souliya_pps +1: Claude Opus 5.5- scripts/sync-book-slides.py re-clones the CV deck (now 14 slides incl. the 3 sutta similes) with every slide index/number shifted - Play/pause (P) narrates each slide with male Edge voices (Chanthavong / Niwat, as in TtsService) and auto-advances; ລາວ/ไทย toggle and subtitles - Pre-generated MP3s in public/assets/audio/slides (LFS), falling back to /api/tts/synthesize, then the device voice Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>d476260
-
first commit
souliya_pps7731906