sip icon indicating copy to clipboard operation
sip copied to clipboard

Audio stream stutter/lag when talking over SIP

Open vykintazo opened this issue 7 months ago • 4 comments

I am not sure if this is the right place to ask about this as I am currently using Cloud LiveKit, but I noticed that Agent using default OpenAI TTS lags very noticeably when calling over phone via SIP. For me it sounds as if audio chunks got re-encoded and because of that contain artifacts at places where chunk ended, but speech didn't. I of course don't know for sure. I've tried 2 different SIP trunk providers (Vonage and Twilio) and the results where exactly the same. Is there anything I can do to debug and resolve this? Thanks

vykintazo avatar May 07 '25 17:05 vykintazo

there wouldn't be any differences if you are running over telephony or not.. the main thing that will influence latency is where you are running your agents. try to ensure the agent is close to inference servers to minimize latency

davidzhao avatar May 08 '25 04:05 davidzhao

Same thing here, and it's weirder because using the exact same agent and backend but on a LiveKit Sandbox Web Demo, works flawlessly

it's just on telephony SIP that generates that choppiness no matter if you're using Realtime API or any TTS

alibabaintelligence avatar Jul 14 '25 06:07 alibabaintelligence

Have you found a workaround? We notice it now on outbound calls to cell phones. (inbound calls and calls to google voice numbers work fine)

CesarCloneOps avatar Nov 04 '25 08:11 CesarCloneOps

same issue which I reported here

multib0t avatar Nov 24 '25 22:11 multib0t