You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thank you for your outstanding work on Diago!
I’m conducting tests with Diago using a telephony trunk to make real phone calls. During these tests, I’ve encountered an issue with audio latency. When using Linphone, there’s some latency for the incoming audio, but with Diago, it takes several seconds for the audio to reach my PC.
To debug this, I’ve implemented a simple Go function to play call audio on my PC. Here’s the code:
Hi @juanpmarin , what you are experiencing is probably with lot of jitter. I do not think it is latency issue that big it is just that diago or beep (otto) playout fails to get samples in right time, or they out of order as you posted.
Currently diago relies mostly on system buffers (which you can increase) but what you actually need is
jitter buffering on application level. THis is something I have in plan to add, and so far it was only done as very small POCs.
What they are just doing is delaying your playout, while buffering packets and ordering them. Still if you are
suffering from too bad network or bad provider they can not save you from big latency in playout.
Anyway as Diago is low level library, implementation of jitter buffers could be done from caller side as well.
What would be good, to have your pcap posted and I can tell you what is your network situation.
I will mark this ticket for jitter buffer feature!
emiago
changed the title
Incoming audio delay
Incoming audio delay (jitter buffer required)
Nov 19, 2024
Thanks for your answer! Something that I didn't tell you is that with diago, audio has some distortion too. With linphone audio is just right and without delay.
I would love to show you the pcap. But I can't post it publicly, how can I send it to you?
Hi @juanpmarin You can send me on mail. If you hear distoration, then this is decoding problem. I can not recall from last time I used this beep library, but check should values be normalized.
First off, thank you for your outstanding work on Diago!
I’m conducting tests with Diago using a telephony trunk to make real phone calls. During these tests, I’ve encountered an issue with audio latency. When using Linphone, there’s some latency for the incoming audio, but with Diago, it takes several seconds for the audio to reach my PC.
To debug this, I’ve implemented a simple Go function to play call audio on my PC. Here’s the code:
I would appreciate your opinion about why is this delay ocurring.
These two logs are printed very often:
sequence duplicate
andOut of order pkt received
The text was updated successfully, but these errors were encountered: