Glossary

Audio Codec

The part of a call that decides how a voice sounds and how much data it costs. Audio codecs trade bitrate, latency and quality against each other, and Opus won that trade for internet calling.

General definition

Audio Codec is the general term for an encoder and decoder pair that turns raw audio samples into a compressed stream and back. Uncompressed speech at telephone quality is 64 kbit/s and CD-quality stereo is over 1.4 Mbit/s, so every call, stream and voice note depends on compression. Codecs differ in how much they can remove without audible harm, how long they take to do it, how wide a frequency range they keep and how gracefully they fail when packets go missing in VoIP.

  • Opus (RFC 6716): the modern internet codec, from 6 to 510 kbit/s, narrowband speech to full-band stereo in one format, frame sizes from 2.5 to 60 ms, in-band forward error correction, and mandatory in WebRTC (RFC 7874)
  • G.711: the 64 kbit/s PCM codec of the telephone network, narrowband (300 to 3400 Hz), trivial to compute, also mandatory in WebRTC for compatibility with phone systems
  • G.722: wideband (7 kHz) at 64 kbit/s, the HD voice codec of many desk phones and SIP systems
  • AAC and MP3: high-quality music codecs for streaming and storage, with encoding delays too long for conversational use

Three properties matter for real-time use. Bitrate sets the bandwidth cost per participant. Algorithmic latency, the frame length plus any lookahead, adds directly to conversational delay, so call codecs use 10 to 20 ms frames while music codecs may buffer far longer. Loss resilience decides what a missing packet sounds like: a codec with packet loss concealment or built-in redundancy produces a barely audible blip, while a codec without it produces a click or a gap.

Opus became the default for internet calling because it covers all three: it adapts bitrate on the fly, runs at 20 ms frames with low delay, conceals losses well and switches between its speech mode (SILK) and music mode (CELT) automatically. The codec is only one stage of the audio pipeline; capture-side processing such as noise suppression, echo cancellation and automatic gain control runs before encoding and often matters as much to how a call sounds.

Adding calls to your product? The Ethora voice chat SDK is built on WebRTC, with 1:1 calls, group voice rooms and push-to-talk for web, iOS and Android.

In the Ethora ecosystem

Ethora calls are built on WebRTC, so the audio codec on a call is negotiated between the participating browsers and client apps through the standard SDP exchange rather than set by Ethora. In practice that means Opus for nearly every call, since every WebRTC endpoint supports it, with G.711 available as the mandatory fallback. The SFU forwards audio packets without decoding them, and the WebRTC stack in each client handles concealment, jitter buffering and the capture-side processing.

The practical implications for buyers are low bandwidth per participant on voice calls, including the audio-only opt-in calls Ethora offers alongside video, and good resilience on mobile networks thanks to Opus concealment and in-band FEC. The voice and video call API page describes the calling features that sit on top of the codec layer.

Get started

Add voice chat to your app

1:1 calls, group voice rooms and push-to-talk, built on WebRTC, on our cloud or your own infrastructure.

Free tier available Enterprise SLA No vendor lock-in