mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Replace the texttospeech.googleapis.com call (which requires a separate GCP project with Cloud TTS enabled and billing) with the Gemini native TTS endpoint (gemini-2.5-flash-preview-tts). This uses the same Gemini API key already configured in the app, with no extra GCP setup needed. Voice mapping: fr-FR-Standard-A/C -> Kore (female), B/D -> Charon (male). Audio is returned as WAV and converted to MP3 via FFmpeg. Subtitle sync uses ffsubsync as Gemini TTS does not return word boundaries. https://claude.ai/code/session_01QBvwHAMZzVYfWvy1U5paat