What are the latency improvements expectations wit...
# ask-ai
h
What are the latency improvements expectations with using livekit phone numbers directly vs Telnyx for telephony to voice agent?
t
Thanks for reaching out, Roman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking about expected latency improvements when using LiveKit Phone Numbers directly versus routing through Telnyx to connect PSTN calls to a LiveKit-hosted voice agent. Below is a concise comparison and what to expect. What improves with LiveKit Phone Numbers • Lower end-to-end latency: Calls connect directly to upstream carriers rather than traversing a third-party SIP trunk, removing extra network hops. • Reduced jitter and fewer failure points: Fewer intermediate providers mean fewer handoffs that can introduce packet delay variation or drop signaling. • Better real-time quality for agents in LiveKit Cloud: When the voice agent runs in the same LiveKit environment or data center, media stays local to that infrastructure, giving the lowest possible connectivity latency. • Improved downstream features: Crisper audio tends to yield better speech-to-text and realtime processing accuracy. What to expect with Telnyx (third-party SIP provider) • Additional latency per network hop: Each hop between Telnyx and LiveKit adds latency and potential jitter. • More variability: Extra network segments increase the chance of transient quality issues. • Still workable: Telnyx is a valid option and may meet your SLA needs, but overall latency and consistency will usually be higher than a direct LiveKit Phone Numbers path. If you want numbers: please tell me where your agents are hosted (LiveKit Cloud region or self-hosted location) and the Telnyx region you’d compare — I can suggest realistic latency ranges and test steps to measure actual RTT and media path performance. Would you like that? Sources: Introducing LiveKit Phone Numbers: Zero to Ringing in 60 Seconds | https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal| | https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal/signup|
h
Yes give me more concrete numbers. Current agents are hosted on livekit cloud us-east region and using Telnyx sip us-east region also
t
Acknowledging your setup: agents in LiveKit Cloud (us‑east) and Telnyx SIP in us‑east. Below are concise, labeled estimates and a straightforward test plan so you can measure real differences in your environment. Estimated latency (illustrative ranges, not guaranteed) • LiveKit Phone Numbers (direct → LiveKit Cloud us‑east) ◦ Rough estimate one‑way PSTN→agent: ~20–80 ms ◦ Rough estimate round‑trip audio: ~40–160 ms ◦ Behavior: lower variance, more consistent audio quality • Telnyx SIP (Telnyx us‑east → LiveKit Cloud us‑east) ◦ Rough estimate one‑way PSTN→agent: ~70–350 ms (depends on provider processing and hops) ◦ Rough estimate round‑trip audio: ~140–700 ms ◦ Behavior: higher jitter and variability due to extra SIP trunking hops and provider processing These are illustrative: actual numbers depend on carrier processing, SIP trunk config, codec negotiation, and transient network conditions. Simple test plan to measure actual differences 1. Create a short test tone (e.g., 1 kHz, 1 s) and record timestamps at caller and agent ends, or use a voice loopback test. 2. Test A — LiveKit Phone Numbers → agent in LiveKit Cloud us‑east: ◦ Place multiple calls (10–20) and record one‑way and round‑trip times, packet loss, and jitter. 1. Test B — Telnyx SIP us‑east → agent in LiveKit Cloud us‑east: ◦ Repeat same calls using your Telnyx trunk to the same agent and record metrics. 1. Compare medians and 95th percentiles for latency, jitter, and loss to see typical and worst‑case differences. If you want, I can: • Provide a short script/instructions to generate the tone and compute one‑way and RTT from recordings, or • Interpret results if you paste the measured median and 95th‑percentile latency/jitter/loss. Which help would you like? Sources: https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal| | Introducing LiveKit Inference: A unified model interface for voice AI
h
What's the underlying provider and infra livekit is using for phone numbers?
t
You're asking which telecom provider and infrastructure LiveKit uses for LiveKit Phone Numbers. LiveKit Phone Numbers is a first‑party telephony service: LiveKit directly provides and manages the phone number infrastructure and connects those numbers to upstream carriers. That means LiveKit handles number provisioning, routing, and carrier connectivity itself (no third‑party SIP trunk like Telnyx required). Calls terminate directly into LiveKit’s network, which reduces intermediate hops, lowering latency and jitter and simplifying setup. Current capabilities: inbound calling is supported; outbound calling is planned for a future release. Sources: LiveKit Blog | https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal| | LiveKit Phone Numbers | LiveKit docs | Accepting inbound calls | LiveKit docs
h
Does livekit native phone number telephony use web sockets or sip?
t
You're asking whether LiveKit native phone-number telephony uses WebSockets or SIP. • PSTN/carrier interface: LiveKit Phone Numbers use SIP for signaling and RTP/SRTP for media to connect with upstream carriers. • In‑room connectivity: Once bridged into LiveKit, the call media is carried over WebRTC (secure RTP). WebSockets are not the primary telephony transport. Sources: SIP overview | LiveKit docs | https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal/signup| | https://blog.livekit.io/introducing-livekit-phone-numbers-zero-to-ringing-in-60-seconds/#/portal|
h
Do the phone numbers support SMS?
t
They do not support SMS. LiveKit Phone Numbers currently provide inbound voice only; outbound calling and SMS are planned for a future release. Sources: LiveKit Phone Numbers | LiveKit docs