Any ideas why voice going from web app (lk sdk) th...
# telephony
e
Any ideas why voice going from web app (lk sdk) through livekit cloud through telephony sounds bad but it's great on a recording? Can it be some codecs misconfiguration or something else? Anyone had simillar issues? SIP trunk codex is g711a. I don't see g711a anywhere in the livekit dashboard settings.
In case anyone has this issue, it was DTX. Turning it off fixed it. It's still not ideal but much better.
p
Hello Mike - can you please tell me where I can find this DTX setting? Is it on Twilio or Livekit?
e
It's in room's options when you create it on frontend, it changes how frontend encodes opus
If you use react components, it's
options
prop on
LiveKitRoom
component,
Copy code
options: {
  publishDefaults: {
    dtx: false
  }
}
p
Thanks a lot. I have also seen the audio is not great in telephony settings too. The elevenlabs audio gets mushed up when I take a call on LiveKit via agent sdk vs elevenlabs audio directly on their website
e
Unless your telephony provider supports G.722, it won't ever sound simillar
p
Unless your telephony provider supports G.722, it won't ever sound simillar
Would it be possible to elaborate a little more on this Mike pls? I am using Twilio and TCN dialers which both support PCMA 8KHz audio that LiveKit also supports.
e
Twilio doesn't support HD voice from what I know
I'm not familiar with TCN
G.722 is 16KHz
p
Ack - thanks for explaining this
e
My pleasure