Cyber Week: a free onboarding call with every new server, until 7 December. See plans
VICIfast
ENES
Operations

Does Opus forward error correction fix choppy VICIdial audio? A load-test answer

We added 5% packet loss to browser phones and turned on Opus FEC. Packets got bigger; the audio the browser had to make up barely moved.

VICIfast Support
··4 min read
Audio recording equipment — illustration for: Does Opus forward error correction fix choppy VICIdial audio? A load-test answer
Photo by cottonbro studio on Pexels

Your browser phones sound choppy, and someone suggests turning on Opus forward error correction. It sounds like the right tool: each packet carries a little extra so lost audio can be rebuilt. We tried it in a load test with 5% packet loss added to every browser phone, and the audio the browsers had to make up didn't move.

What forward error correction is meant to do

Opus is the Codec (the format that turns speech into small packets of data) that browser phones use. On one floor we checked, 20 of 20 agent browser-phone legs ran Opus, and Asterisk, the phone engine on the dialer, converted between Opus and G.711 codec on every agent call. The VICIfast webphone is one of these browser phones; the server offers it Opus, G.722 and G.711.

In-band forward error correction (FEC) tucks a rougher copy of the previous slice of audio into each packet. If one packet is lost, the phone can rebuild that slice from the copy riding in the next one. The price is a bigger packet. The catch is timing: the rebuild only works if the next packet arrives before the missing slice has to play.

When nothing usable arrives in time, the browser fills the hole with sound it makes up. That share of made-up audio is what an agent hears as choppy, so it's the number we watched.

flowchart LR
  A[Packet N lost on the line] --> B[Packet N+1 carries a copy of N]
  B --> C{Arrives before N must play?}
  C -- yes --> D[Slice N rebuilt from the copy]
  C -- no --> E[Browser makes up the gap]
  E --> F[Agent hears choppy audio]

The load test: 5% loss, with and without FEC

In a load test we added 5% Packet loss to the browser phones' audio. That's well past the 1.5% at which our call-quality report already calls a line poor. Then we compared stock Opus with in-band FEC turned on.

SetupBytes per audio packetAudio the browser made up
Stock Opus110.34.38%
Opus with in-band FEC119.64.35%

FEC charged its price. Each packet grew by about 9 bytes, and a browser-phone call sends about 50 of them a second in each direction. What it was meant to buy never showed up: the made-up share went from 4.38% to 4.35%, a difference too small to matter.

The one result that hints at more, and why we didn't keep it

We ran a second test on 16 agents with FEC on and a larger Jitter buffer target of 80 ms. Jitter is the uneven spacing of arriving packets; the jitter buffer is the short wait the browser adds so late packets can still play. The made-up share fell to 3.65%.

That fits the timing catch above, since a copy in the next packet only helps if the browser waits long enough for it. But we ran no test with the bigger buffer alone. So we can't say whether FEC did anything or the buffer did all of it. It only hints that FEC needs buffer depth to work.

A deeper buffer also holds every word a little longer before it plays. We weren't going to carry a bigger packet and a longer wait on a hint, so we put that floor back to stock Opus.

Where the choppy audio actually came from

Opus already copes with lossy links better than G.711. And a healthy, correctly sized server doesn't make audio choppy: in our load test at 500 to 800 concurrent calls, browser-phone audio lost 0 packets. In the choppy-audio cases we've traced, the loss sat on a line.

On one office floor it came in bursts. The worst dip lasted 10 minutes, with all 60 phones poor at 12.3% loss. When loss arrives in runs, the packet carrying the copy can be lost too, and then there's nothing to rebuild from.

So the useful work is finding which line is losing packets. Start by checking whether it's the server or the agent's internet. If a whole office goes bad at once, our full-shift TURN relay test shows why a new route doesn't help either. For the wider map of call-audio faults, see our end-to-end VICIdial call-quality guide.

Frequently asked

› Should I switch browser phones from Opus to G.711 for choppy audio?
No. Opus copes with lossy links better than G.711, and every browser-phone leg we checked on one floor already used it. Find the line that's losing packets instead.
› How much bigger does FEC make each packet?
In our load test, from 110.3 to 119.6 bytes per packet, with about 50 packets a second in each direction.

No codec setting fixes a lossy line, but a clean server lets you prove whose line it is. Every server we run has rtp_timeout=120 and the larger UDP receive buffers set, and a VICIdial engineer replies the same business day to read the loss figures with you. Try a server free for 7 days.

About VICIfast

We run VICIdial servers for call centres, so you don’t have to. You get the dialer set up, secured and kept running — we handle the server, the updates and the backups. Bring your own phone carrier at no markup, or use VICIfast Voice, our own US calling and numbers, from $0.0085 a minute. From $49 a month per server.

Questions? Call +1 636 556 0022 and talk to someone who runs dialers.

Citing this article

VICIfast Engineering. “Does Opus forward error correction fix choppy VICIdial audio? A load-test answer”. VICIfast LLC, December 1, 2026. Retrieved from https://vicifast.com/blog/vicidial-opus-fec-choppy-audio

Have questions?

Related posts

You might be interested in

Comments

Comments are reviewed before they appear. We never publish your email.

No comments yet - be the first.