mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-07 05:17:40 +08:00
Gemini connections offered under Settings > Voice fell back to the OpenAI-compatible 'custom' binding because TTS_PROVIDERS had no gemini entry, so synthesis failed with 'No endpoint URL configured for TTS.' and previews returned 502. Gemini TTS only speaks the native generateContent API, so register a gemini provider spec plus a GeminiTTSAdapter that posts responseModalities AUDIO with a prebuilt voice, decodes each returned PCM16 24 kHz inlineData part, and wraps the audio in WAV. Issue #1951.