Skip to content
Sign in

/docs · VoiceLab · Practical

Find lost packets in a recording

The chain profile counts the gaps of digital silence that a lost packet leaves in the middle of speech. How it decides, the test numbers, what it cannot see, and the echo and slapback measure.

Updated Oct 20, 2026

View as Markdown


When a call or a stream loses packets and the player does not conceal it, the audio has a hole in it: a few tens of milliseconds of digital silence in the middle of a word. Loudness, noise and spectrum are all fine, which is why nothing else in the engine sees it. The chain profile of POST /v1/analyze/profile counts those holes. It is a paid preset, like every profile except basic.

curl https://audiolab.tools/v1/analyze/profile \
  -H "Authorization: Bearer $AUDIOLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/call.wav", "profile": "chain"}'

What comes back

Lens What it is
chain.dropoutCount The number of abrupt gaps of digital silence, 8 to 500 ms, inside sound.
chain.dropoutSec Their total length in seconds.
chain.dropoutMaxMs The longest one in ms, null when there is none. One lost packet is usually 20 ms; 60 ms or more is several in a row.
chain.slapbackDelayMs The delay of a delayed copy of the sound, 40 to 800 ms: a slapback or delay effect (60 to 180 ms) or the echo of a call (200 ms and up). null when no copy stands out.
chain.slapbackLevelDb The level of that copy against the sound it copies, in dB: -3 is nearly as loud, -20 is faint.
chain.slapbackScore How far the copy stands out. A copy is reported from 12.

All six are validated. A recording under 2 s gets no reading for the gaps; the echo measure needs at least 6 s and 3 seconds of sound.

How it decides

A gap counts when it is digital silence (every sample under half a 16-bit step, which a room or a microphone never gives), lasts 8 to 500 ms, and cuts the sound: in the 5 ms before and after it the level is within 20 dB of the active level of the recording. A natural pause, or the gate of a noise suppressor, lets the sound die away first and does not count. A gap at the very start or end of the file does not count either.

How far to trust it

Tested on 13 October 2026 on data the measure was not developed on, with the criteria written down before (PREREG-DROPOUT.md in the engine repository):

  • On 160 constructed recordings of read speech with 11,337 gaps cut in, 8,411 of which cut sound: it found 99.8 percent of those, and 99.9 percent of the 8,406 gaps it reported were real (a gap counts when its start and length are within 2 ms of the one that was cut). The count was within 5 percent, or one gap, in all 160 recordings.
  • No false alarm in 1,615 recordings without gaps: 40 clean, 40 with natural pauses of digital silence, and 1,535 recordings of synthetic voices in 32 situations (noise, reverberation, telephone band, clipping, fast speech).
  • On simulated packet loss (20 ms packets set to zero, 47 recordings) it found all 1,539 gaps that cut sound, and every gap it reported was real.

What it cannot see

  • It is a lower bound. Of the 2,554 gaps made in the packet-loss test, 1,539 cut sound. The rest fell in pauses or quiet passages, where a loss cannot be told from a pause, and they are not counted.
  • A loss the player concealed (repeated, interpolated or filled with comfort noise) leaves no gap.
  • Noise added after the loss fills the gap.
  • The silence a codec puts in pauses is not a loss: 48 recordings through a low bit-rate telephone codec held 1,936 runs of exact zeros, none with sound on both sides, and none was counted.
  • It was not tested on real calls with a known amount of loss.

The echo and slapback measure

It took three tests, each with its criteria fixed before it ran. The first reported a copy in 27 percent of the recordings that had none, the second in 5 percent, almost all of them synthetic voices with a frame grid of 12.5 ms. The third added one rule, that a real copy is present in every stretch with sound, and met all six criteria on data it was not developed on:

  • 282 of 284 constructed copies found (the two it missed are a clip under 6 seconds, which gets no reading);
  • the delay within 2 ms in every copy found, the largest error 1.1 ms;
  • the level within 2 dB for every plain digital copy at -16 to -4 dB;
  • no copy reported in any of the 332 recordings without one, 120 of them real read speech, among them a second voice, a voice coming back through a room, cafeteria babble and television.

What it was not tested on:

  • A real slapback or echo in a real recording. Every copy in the tests is built.
  • Music with a loop or a beat: it repeats itself and can read as a copy.
  • An echo whose second tap is half as loud as the first or more: it reads as a periodic structure and is not reported.
  • A copy that went through a room: its level reads lower, 0.4 to 3.5 dB in a real hall, because it is judged against the direct sound and the reverberation together.
  • Speakers on separate channels: the channels are mixed first.

Since 20 October 2026 the three measures are part of the answer of the chain profile and of the MCP server. Before that they were in the registry but left out, because the first two tests did not meet the criteria.

More in VoiceLab docs