Is it possible to execute a livekit agent without ...
# ask-ai
a
Is it possible to execute a livekit agent without a STT and TTS plugin? I have a voice agent that I want to run in different modes - full mode (has SST and TTS), whisper mode (only has TTS - text input), and silent mode (no STT or TTS, all text based - essentially the LLM). This will be configured by users of the application.
t
Thanks for reaching out, Matt. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! LiveKit agents can definitely run without the STT (Speech-to-Text) and TTS (Text-to-Speech) plugins, so you can enjoy text-only modes if that suits your needs. Here’s how you can set up your voice agent in different ways: • Full mode: This includes both STT and TTS for a complete experience. • Whisper mode: Here, you have TTS only, with text input. • Silent mode: This one skips both STT and TTS, working fully text-based with the LLM. If you want to operate in text-only mode, you just need to disable audio input and output by setting
audio_enabled=False
in both
RoomInputOptions
and
RoomOutputOptions
. You can send text input through a
TextStream
to the
lk.chat
topic, or simply use the
generate_reply(user_input="...")
method. The agent will then send responses back via a
TextStream
to the
lk.transcription
topic. If you’d like, I’m here to help you with any part of the setup or answer any other questions you might have! Sources: livekit-plugins/livekit-plugins-sarvam/README.md | Text and transcriptions | LiveKit docs | How to Set Up Speech-to-Text Input with Text-Only Output in LiveKit Agents