network

Audio codec

Definition

An audio codec compresses voice into a bitstream for transmission. Opus is the browser-standard codec used by WebRTC and ChromePing.

An audio codec encodes voice (or music) into a compressed bitstream and decodes it at the far end. WebRTC uses Opus as its mandatory codec; Opus is low-latency (5–20 ms frame size) and transparent for speech at 16–32 kbps. When ChromePing's browser caller connects to LiveKit, the audio frames are Opus. On the SIP side, Telnyx can transcode to G.711 or G.722 for carriers that prefer those codecs; the transcoding adds a small latency penalty but preserves intelligibility. Codec choice matters most on the recipient's side: a PSTN carrier that only accepts G.711 cannot preserve the full fidelity of the TTS output.