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
-
fix tts check
souliya_pps7c4c4b4 -
first commit
souliya_pps7731906