I've been trying to use inference for elevenlabs w...
# inference
c
I've been trying to use inference for elevenlabs with the python SDK and it's failing silently (just no TTS is coming out but no error showing in the logs). Using the elevenlabs plugin works fine.
r
Hi Guillaume, I'm sorry I didn't see this sooner. Would you please DM me your AgentSession for the case where you use LiveKit Inference?
c
Copy code
session: AgentSession = AgentSession(
        stt=assemblyai.STT(
            sample_rate=48000,
        ),
        llm=google.LLM(
            model="gemini-2.5-flash",
            automatic_function_calling_config=genai.types.AutomaticFunctionCallingConfig(
                ignore_call_history=True,
            ),
        ),
        tts="elevenlabs/eleven_turbo_v2_5:alice",
        vad=silero.VAD.load(),
        turn_detection="stt",
    )
r
the issue is that elevenlabs expects unique identifiers for the voice id. it should be:
tts="elevenlabs/eleven_turbo_v2_5:Xb7hH8MSUJpSbSDYk0k2"
. This is a problem in our docs. We fixed it in one spot but not in the other spots. You must have copied it from the part of our docs that wasn't fixed. I'll fix it. Thanks for your feedback, Guillaume.