Live audio codec

Your microphone → a capture worklet → the codec in a worker (encoder, then decoder) → a playback worklet. Nothing leaves this computer.

Use headphones: with loudspeakers the microphone picks the sound up again and feeds back.

The browser asks for the microphone. Its own processing (echo cancellation, noise suppression, automatic gain) is turned off: what you hear is the codec alone.

Stopped.

Live figures, every second
Rate—
Rate on the wire (frames of four packets, headers in; DEFLATE kept only where it is smaller)—
Frames lost, packets concealed—
Delay inside the graph (the reserve, one frame, the codec's own)—
The browser's own buffer—
Playback underruns—
Frames taken back by trim—
Encode, decode a frame (in the worker)—

The delay shown leaves out the microphone's and the sound card's, which the browser does not report.