From 7bc7318c5b37629ef7e29e4efb58fcbe9f47da52 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sun, 15 Feb 2026 07:37:44 +0200 Subject: [PATCH] refactor: Use ElevenLabs directly for both STT and TTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - STT: elevenlabs.STT() (Scribe) instead of Whisper via LiteLLM - TTS: elevenlabs.TTS() (already direct) - LLM: still routed through LiteLLM/OpenRouter - No extra API accounts needed — only ElevenLabs + OpenRouter CF-1147 Co-Authored-By: Claude Opus 4.6 --- agent.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agent.py b/agent.py index 21a0db3..b894b27 100644 --- a/agent.py +++ b/agent.py @@ -32,11 +32,7 @@ async def entrypoint(ctx: JobContext): voice_id = os.environ.get("ELEVENLABS_VOICE_ID", "21m00Tcm4TlvDq8ikWAM") session = AgentSession( - stt=lk_openai.STT( - base_url=LITELLM_URL, - api_key=LITELLM_KEY, - model="whisper", - ), + stt=elevenlabs.STT(), llm=lk_openai.LLM( base_url=LITELLM_URL, api_key=LITELLM_KEY,