thousands-car-74964
08/28/2025, 7:39 PMtall-airline-16756
08/28/2025, 7:39 PMtall-airline-16756
08/28/2025, 7:41 PMthousands-car-74964
08/28/2025, 7:45 PMtall-airline-16756
08/28/2025, 7:46 PMauto_subscribe=AutoSubscribe.AUDIO_ONLY. You can use VoicePipelineAgent or MultimodalAgent with voice-focused instructions to keep responses clear and perfectly tuned for voice.
2. Client-Side Implementation: On the client side, turn off video and UI elements. For example, if you’re using a React app with @livekit/components-react, just set video={false} and audio={true} in your LiveKitRoom component. Also, skip rendering UI components like VideoConference or AudioConference.
3. Optional Playground Customization: If you’re working in the Agents Playground, you can tweak the settings to disable video and chat UI by setting outputs.video and inputs.camera to false.
And that’s it! This way, your users get a smooth voice-only experience without any visible room interface getting in the way.
Sources: examples/nextjs/pages/minimal.tsx | Agents Playground | LiveKit Docs | Text and transcriptions | LiveKit Docs | How to Set Up Speech-to-Text Input with Text-Only Output in LiveKit Agents | agent-examples/agent_examples/pipeline_agent.pythousands-car-74964
08/30/2025, 8:02 PMtall-airline-16756
08/30/2025, 8:02 PMmin_silence_duration in the VADStream settings to help the system respond more quickly to your voice.
5. Prevent Queue Overflow: If you run into frame capture errors, bump up the queue_size_ms to keep things running smoothly without buffer issues.
6. Enable Noise Cancellation: Turning on background noise and echo cancellation in your agent’s setup can really improve audio quality.
7. Monitor Audio: Using tools like BarVisualizer can help you see if audio is being picked up properly.
If any of this feels tricky or you want a hand with any step, just let me know—I’m here to help!
Sources: components/livekit/agent-control-bar/agent-control-bar.tsx | Agent Testing & Evaluation | livekit/livekit_composite | DeepWiki | Understanding "silence detected on local audio track" warning | Speech & Audio Processing | livekit/livekit_composite | DeepWiki | SIP troubleshooting guide | LiveKit Docsthousands-car-74964
08/30/2025, 8:37 PMtall-airline-16756
08/30/2025, 8:37 PMauto_subscribe=AutoSubscribe.AUDIO_ONLY so it focuses just on audio tracks.
◦ Go for a lightweight pipeline like VoicePipelineAgent that includes STT, LLM, and TTS plugins.
◦ Turn off video and data subscriptions to keep resource use nice and low.
1. Room-Joining Agent:
◦ Use worker_type = WorkerType.ROOM to have the agent activate when a room is created.
◦ Interact with participants and manage tracks easily using ctx.room.
◦ If you want, you can wait for participants with ctx.wait_for_participant() before kicking off interactions.
1. Managing Multiple Use Cases:
◦ It’s a good idea to deploy separate workers for different tasks—like one for room agents and another for audio-only agents.
◦ Namespaces or JobType filters can help you route the right logic to the right agent.
◦ Prewarming shared resources, such as VAD models, can speed things up when agents start.
1. Scalability: Take advantage of LiveKit’s built-in load balancing to effortlessly scale agents across your deployments.
This setup is designed to keep things efficient and scalable for both scenarios. Feel free to reach out if you want to dive deeper into any part of the implementation—I’m here to help!
Sources: test/agent_test.go | OpenAI and LiveKit partner to turn Advanced Voice into an API | README.md | agent-examples/agent_examples/pipeline_agent.py | web/src/components/code-viewer.tsxthousands-car-74964
08/30/2025, 8:39 PMtall-airline-16756
08/30/2025, 8:39 PMauto_subscribe to AUDIO_ONLY in LiveKit using Node.js, here’s a simple example to get you started:
async function entrypoint(ctx) {
// Connect to the room with auto-subscribe set to audio only
await ctx.connect({ autoSubscribe: AutoSubscribe.AUDIO_ONLY });
// Rest of your agent logic...
}
The AutoSubscribe enum, which includes the handy AUDIO_ONLY option, comes from the @livekit/rtc-node package. This way, your agent will subscribe just to audio tracks and skip video—perfect if you’re focusing on voice-only apps.
Feel free to reach out if you want me to walk you through anything else!
Sources: agent/main.py | agents/src/job.ts | livekit-agents/livekit/agents/job.py | Working with the MultimodalAgent class | LiveKit Docs