```session = AgentSession( # ... stt, llm, tts...
# ask-ai
r
Copy code
session = AgentSession(
    # ... stt, llm, tts, vad, etc...
    use_tts_aligned_transcript=True,
)
does this work for gemini realtime?
t
Thanks for reaching out, Phanos. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
use_tts_aligned_transcript=True
parameter doesn’t work with Gemini Realtime, and I totally understand that might be a bit frustrating. This feature needs a TTS engine that supports aligned transcripts, which Gemini doesn’t currently offer. But don’t worry! If you’re looking for synchronized transcription, you can try using Cartesia or ElevenLabs as your TTS provider. Alternatively, you can set up Gemini Realtime in text-only mode and pair it with a TTS engine that supports aligned transcripts. I’m here to help if you want to explore these options together! Sources: Gemini Live API plugin | LiveKit Docs | Text and transcriptions | LiveKit Docs | Cartesia TTS plugin guide | LiveKit Docs | ElevenLabs TTS plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/gemini_t...