Hey <@U08CKJH7C12> We are facing an issue which w...
# agents
r
Hey @refined-appointment-81829 We are facing an issue which we believe is from Livekit’s infra The audio packets that we are receiving are distorted/muffled. We checked on twilio the recording are coming perfectly fine there . This is a critical bug for us as our agent is not able to transcribe this audio. Can you guys check this attaching both audios from twilio and livekit below
a
we can see transcriptions which doesn't make sense at all. like no chest->no shift
r
Where did you get the LiveKit recording? I that from egress or something else?
a
we are getting from egress,
r
yes from egress
r
Let me check with the egress team
Can I get the egress id for the session this was recorded for?
r
e
@refined-appointment-81829 Egress Id : EG_vbC5svTP5ZeU Thanks!
r
Thanks Urgently waiting on resolution Had to pause our services due to this
r
Is your agent running on LiveKit cloud or on your own servers?
e
In our case, livekit cloud
r
What tts/stt are you using?
r
livekit cloud tts - 11labs stt - deepgram
e
TTS: Deepgram Nova-3 LLM: Gemini 2.0 STT: Elevenlabs falsh v2.5
r
@refined-appointment-81829 any update on this?
r
We are experiencing the same issue. In our case the LK recording doesn’t show the user speaking at all, (looks like we aren’t getting any audio packets) while the original recording does show there is some audio . Here is the call on LK: https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_vZjQ5zttXHDf/inbound
Here is one of our examples.
r
Are you still having this issue? Was this working previously and now it is not?
r
Yes we are still having this issue, its happening to about 10% of our calls.
I've been seeing it happen for the last few weeks, however we thought it was just due to the user not speaking.
r
This seems to be quite different from what the other examples in this thread are right? You are not hearing any audio instead of muffled audio?
r
Correct, thought it might be a similar issue, maybe related
r
We had a fix yesterday related to "choppy audio'. I assume the other examples in this thread are now fixed.
r
I see
We aren't getting any audio, so it might be a different issue.
Is it possible to see if there are any audio packets being sent on your side?
r
The call you linked above said media timeout
r
I saw that as well, what does that usually mean?
r
Is it possible some of your ports are not open?
r
Don't see a media timeout here though
Maybe it is something with the media timeout, is it possible to debug that further? When you say port are you referring to my UDP port?
b
@rapid-painting-51133 for https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_vZjQ5zttXHDf/inbound we looked at the logs and we know the root cause . The timeline for deployment of the fix may be delayed despite Denys's comment on that issue. The second call doesn't seem to be the same. Could you share a few more links so we know. I don't think this is the same as what @red-state-11941 reported though
r
https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_TNqe5AGr4Ccx/inbound https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_gmspTdaTsXDp/inbound https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_gmspTdaTsXDp/inbound There are all media timeouts, however some of them I've verified there are actually conversations happening between the user and agent. I am not 100% sure why the media timeout happens
I've had about 100 of these media timeouts in the last week
b
Media timeout is more of a super set. That could even mean that the far end isn't sending media
checking these
r
Got it
b
both calls got routed to frankfurt for some reason. I remember we once had discussed about telnyx's routing. do you know if it's using telnyx's eu or us region ?
r
I thought it was pinned to the US region
Let me check
The AnchorSite is set to Chicago
Not all of them seem to be going to EU either
I see in the US too
b
So I see that most of them are not the opus encoding issue but just a regular media timeout. We plan to add a more logging to determine which side stops sending the media. has telnyx given an indication of which side the media is stopping from ?
r
I can ask them, however, when you say media has stopped, what does that mean? Just for my understanding.
b
so telephony calls have SIP signalling to initiate and establish the call. This is done using the SIP protocol. After the call, media ie the actual voice flows through the ports that are decided by that initial establishment. This is the RTP protocol. In properly functioning calls, there is bidirectional flow of media. however when that stops is when we have a media timeout and disconnect the call
r
I see
b
In one of the calls, we have found of an explicit root cause on the livekit side. For the remaining, it could even be Telnyx
we will be adding better ways to figure this out on our side
r
Got it. If Telnyx stops sending media, does that necessarily mean the agent can’t hear the patient? And if LiveKit stops sending media, does that mean the patient can’t hear the agent?
b
exactly. With the latter, the likelier possibility is the agent is not sending media if it isn't something like that opus encoding error. has anything change in terms of the agent deployment recently ?
r
Nothing has changed in terms of deployment
But, I the how does the opus enconding error affect the call?
b
the calls fail. Livekit stops processing media altogether
r
Got it, is it possible to give me the calls that are encountering this error?
Want to see how those call recordings look
b
Of all the calls you shared only https://cloud.livekit.io/projects/p_54i9l8qbrru/telephony/SCL_vZjQ5zttXHDf/inbound seemed to have that issue
a
Copy code
We had a fix yesterday related to "choppy audio'. I assume the other examples in this thread are now fixed.
should we update the package and redeploy? or is it fixed internally from livekit? @refined-appointment-81829
b
it is internal on the server side @average-knife-77348
a
Thanks for the reply. could you briefly explain what was the issue/result and what should we expect? thanks!!
b
The issue was we were routing calls to some hot nodes that were taking on too much traffic. Yesterday we moved those nodes away from taking normal traffic. We are also putting together some more changes to improve our traffic distribution so you don't see this happen again.
a
gotcha thanks!
one qq, does this mean that user might have experienced lagged audio too?
b
It's mostly choppy audio
r
b
This was hung up because of a bye from telnyx
the BYE reason says "NORMAL_CLEARING" which means its most likely the caller hanging up
b
both these are opus encoding errors
r
Got it
You are saying the PR that you sent should resolve these?
b
yeah.. these should. once we deploy it to production
r
Got it, is there anyway for you to tell me how many of these errors occurred since October 1st?
b
for your project ? ?
r
yep
b
so we only have data for the last 15 days for this kind of analysis. I'm seeing 25 calls affected for your project
r
Got it, thats fine, are you able to send me the ids of those calls?
b
DM'd you
a
What was the fix for the Choppy Audio?
b
Better routing to prevent overloading of our telephony media instances.
a
Thank you @bored-accountant-30277, quick question. We are experiencing choppy audio on outbound sip calls to cell phones at the moment with our cloud account. Is there anything we need to do on our side? We use Telnyx with HD Voice phone numbers, and inbound calls dont have choppyness, neither google voice calls (inbound or outbound).
b
are you able to always repro it ? If so can you disable HD and see if it happens ? We aren't seeing widespread chopiness now so my guess is it could be something specific to your setup.
🙌 1
a
Awesome thank you!, Yes. I just tried disabling HD Voice from Telnyx, and it fixed the audio choppyness. is there something required on the agent side for transmission to handle HD Voice?
it is reproducible by enabling HD Voice again.
b
I doubt it is the agent. Could you share a call ?
a
Livekit / Telnyx recordings sound crisp, but the person receiving the call hears choppyness.
b
sorry unfortunately the pcap for this is missing could you share a few more. what is the handset being used ?
a
sorry it seems the pcap isnt available on any of the most recent calls on the dashboard. I was able to reproduce the choppy audio on both ios and android. Would the telnyx pcap be helpful?
b
yeah.. for sure
a
sdtjImcX6tJeGZ5IgC21C0Cp5ffB.pcap,WflIjR3UHTLDeIkbCiwkfxKVIiPB.pcap,BIyyYvQNT7ywUKerPtsMgDjgtVF.pcap
pcap from yesterday calls where choppyness was present.
any other recommendations we can try? Disabling HD Voice works, but we would like to enable it.
b
I saw some of the pcaps it looks like between telnyx and Livekit we are doing the right thing. Let me show these to the team and see what I hear back. You’re sure you’re using a compatible headset that can handle the HD codecs ?
a
Yea i mean, 5G S25 Ultra from T-Mobile, and iPhone 17 Pro on AT&T iirc
it happens strictly on outbound calls only. Inbound calls works fine
Hi team, any updates on this? We would like to enable HD Voice again for our telnyx phone numbers
b
hi, we added better rtp logging in our pcaps. Could you share some recent call ids after disabling HD
a
Hi thank you! you mean after enabling back HD Voice ?
b
yeah.. correct. the bad case
a
Sure, sorry for the delay. Here is a call from just now: https://cloud.livekit.io/projects/p_4t4jv7zr5xj/sessions/RM_C8T23tk6MfPj
b
do any of them have a pcap in the dashboard ?
a
not really as of now. Is there something we have to do to enable pcap recording for calls?
image.png
b
You shouldn't have to. It could just mean that whatever is causing the audio issues is leading to the pcaps not getting generated, which makes this a lot harder to debug
Okay. I think we'll need to setup a debugging session and capture the packets to see what is up. Do you mind sending a mail to support. They could set this up and we can dig deeper.
a
Sure, thank you!. Can I cc you in the email ?
b
Yupp
🙌 1
a
Hi, i havent received any updates from the email request. How should we go about continue following up on this ? Thanks!