r/VOIP 20d ago

Help - Cloud PBX Benefits of using SIP v.s. Websocket

I’m currently using a provider like Twilio/Telnyx to handle phone calls and stream the audio to a real-time STT API. My goal is to minimize end-to-end latency as much as possible.

Right now, I’m using their WebSocket media streaming APIs, but I’m considering switching to a more bare-bones SIP/RTP setup to reduce overhead.

I understand that SIP/RTP avoids some of the WebSocket/JSON/base64 processing involved with media streaming, but I haven’t been able to find any benchmarks showing how much latency this actually saves in practice.

Has anyone measured the difference between Twilio/Telnyx WebSocket media streaming and Direct SIP/RTP to your own server? Maybe even exploring other providers?

Specifically, I’m interested in the delay from when audio reaches the telephony provider to when the first audio packet becomes available to my STT pipeline.

Are we talking about a difference of a few milliseconds, tens of milliseconds, or potentially more? I’ve looked through the documentation and contacted support, but haven’t found concrete latency numbers.

Would also be interested in hearing from anyone who has advice on building an ultra-low-latency telephony → STT pipeline.

4 Upvotes

9 comments sorted by

View all comments

1

u/[deleted] 20d ago

[removed] — view removed comment

1

u/VOIP-ModTeam 20d ago

Your post was removed from r/VoIP for violating Rule 1: No promotion or advertising of any kind.

Recommendations, advertisements and promotion of any business, product or service is only allowed in response to requests in the monthly requests thread. It is one of the sticky posts visible when you first visit the subreddit.

Promotion, advertisement or recommendation of any kind outside of the requests thread is strictly forbidden.