I have two identical agents but one works on Vapi ...
# ask-ai
p
I have two identical agents but one works on Vapi and the other one on LiveKit, both on Twilio. They are using the same voice from 11labs but have a very different performance intonation and latency wise. The one on Vapi sound vary friendly and has minimal pauses. The one LiveKit changes the voice a lot and it sound less polite and friendly and produces more pauses. What could be the reason and how to fix it?
t
Thanks for reaching out, Anna. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks so much for sharing your concerns about the differences in performance and intonation between LiveKit and Twilio VAPI when using ElevenLabs voices. These variations can happen due to a few reasons, such as latency optimization, encoding settings, and how each platform integrates with ElevenLabs. I’d love to walk you through some of the features LiveKit offers to help optimize voice performance: • Latency Reduction: LiveKit uses an
auto_mode
setting designed to minimize pauses and boost responsiveness by disabling chunk scheduling and internal buffers. • Optimized Encoding: The default MP3 encoding at 22.05kHz helps reduce latency while keeping the audio quality nice and clear. • Streaming Support: Real-time TTS streaming is there to ensure faster playout and a smoother listening experience with less perceived latency. • Customizable TTS Models: You have the flexibility to choose models like
eleven_flash_v2_5
for lower latency or
eleven_turbo_v2_5
if you need multilingual support. To help tackle the issues you’re seeing with LiveKit, here are a few steps you might find useful: 1. Double-check that
auto_mode
is enabled and that streaming is set up correctly. 2. Try experimenting with different ElevenLabs models to discover the best mix of quality and latency for your needs. 3. Make use of LiveKit’s agent metrics API to keep an eye on performance indicators like Time to First Byte (TTFB). If you'd like, I’m here to guide you through specific configuration steps or even help set up a side-by-side test so you can compare performance directly. Just let me know how you’d prefer to move forward—I’m happy to assist! Sources: Agent Testing & CI/CD | livekit/livekit_composite | DeepWiki | Decentraland's Catalyst: using WebRTC to interact in the metaverse | pipeline-tts/tts_comparison/README.md | examples/other/text-to-speech/elevenlabs_tts.py | plugins/elevenlabs/src/tts.test.ts