fancy-easter-44489
12/02/2025, 12:20 PMtall-airline-16756
12/02/2025, 12:20 PMtall-airline-16756
12/02/2025, 12:20 PMGeminiTTS instance. That trailing comma after the call turns the return value into a single-element tuple, so activity.tts becomes a tuple and has no capabilities attribute.
Fix: remove the trailing comma.
Example—change this:
return google.beta.GeminiTTS(
model="gemini-2.5-flash-preview-tts",
voice_name="Zephyr",
),
to this:
return google.beta.GeminiTTS(
model="gemini-2.5-flash-preview-tts",
voice_name="Zephyr"
)
If you still see the error after that, share the surrounding function (how you construct/return tts and how activity is built) and I’ll help further.
Sources: Gemini TTS plugin guide | LiveKit Docsfancy-easter-44489
12/02/2025, 12:22 PMtall-airline-16756
12/02/2025, 12:22 PMGeminiTTS object — the trailing comma after the constructor makes the return value a single-element tuple, so activity.tts is a tuple and has no .capabilities.
Remove the comma so the function returns the instance directly:
# Wrong — returns a tuple
return google.beta.GeminiTTS(
model="gemini-2.5-flash-preview-tts",
voice_name="Zephyr",
),
# Right — returns the GeminiTTS object
return google.beta.GeminiTTS(
model="gemini-2.5-flash-preview-tts",
voice_name="Zephyr"
)
If you already removed the comma and still get the error, please paste the surrounding function that builds/returns tts and how activity is assembled and I’ll help debug further.