HI is it possible to disable TTS and only run live...
# ask-ai
f
HI is it possible to disable TTS and only run livekit voice bot with STT and LLM i want to save my TTS credits and just want to test the output quality like a chatbot
t
Thanks for reaching out, Viren. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can disable TTS in the LiveKit voice bot while still enjoying the benefits of STT and LLM. It’s quite simple — just leave out the
tts
parameter when you set up the
AgentSession
. Here’s how you can do it: Python SDK:
Copy code
session = AgentSession(
    vad=silero.VAD.load(),
    stt=openai.STT(),
    llm=openai.LLM(),
    # tts is not provided, effectively disabling text-to-speech
    turn_detection=EnglishModel(),
)
Node.js SDK:
Copy code
const session = new voice.AgentSession({
  stt: 'assemblyai/universal-streaming:en',
  llm: 'openai/gpt-4.1-mini',
  // tts is omitted
  vad: ctx.proc.userData.vad,
  turnDetection: new livekit.turnDetector.MultilingualModel(),
});
This way, your bot will transcribe what users say using STT, process it with the LLM, and respond with text or trigger other actions — all without using TTS. If you have any questions or need a hand with this, just let me know. I’m here to help! Sources: livekit-agents/livekit/agents/voice/agent_activity.py