What Is a Voice Codec? G.711, G.729 and Opus Explained
A voice codec turns speech into digital data and back. Compare G.711, G.729 and Opus: bit rates, bandwidth and what to choose for SIP trunks and softphones.
त्वरित उत्तर
A voice codec (coder-decoder) turns speech into digital data for transmission and back into sound. G.711 uses 8 bits per sample at 8,000 samples per second, G.729 codes speech at 8 kbit/s, and Opus covers 6 to 510 kbit/s and bandwidths from narrowband to fullband. The two ends of a call must agree on one.
A codec is the agreement about how speech is turned into numbers. Your voice is a continuous sound wave. To send it over an IP network, the phone samples it, encodes the samples into packets, and the far end decodes them back into sound. The codec is the method used on both sides. Different methods trade audio quality, bandwidth and processing in different ways.
The Main Codecs
G.711. The ITU describes G.711 as pulse code modulation (PCM) of voice frequencies; the base version is dated 11/88, with later amendments and appendices, including Appendix I (09/99), a packet loss concealment algorithm for G.711. In RTP, RFC 3551 lists it as PCMU and PCMA, both at 8 bits per sample, with an 8,000 Hz clock and 20 milliseconds of audio per packet. That is 8 bits times 8,000 samples per second, or 64 kbit/s, a figure calculated from those two numbers rather than stated in the RFC.
G.729. RFC 3551 describes G.729 as coding of speech at 8 kbit/s using conjugate structure-algebraic code excited linear prediction (CS-ACELP), with 10 millisecond frames, 20 milliseconds per packet and an 8,000 Hz clock. It uses much less bandwidth than G.711 per call.
Opus. RFC 6716 defines Opus as an interactive speech and audio codec built for uses such as voice over IP and videoconferencing. It works from 6 kbit/s up to 510 kbit/s, supports five audio bandwidths from narrowband (4 kHz) through medium-band, wideband (8 kHz) and super-wideband to fullband (20 kHz), and uses frame sizes from 2.5 to 60 milliseconds.
यह काम किस प्रकार करता है
- During call setup, the offer lists the codecs the caller's side supports, in order of preference.
- The answer must include at least one of the offered codecs that the answering side is willing to use, again listed in order of preference, and the offerer should use the answer's most preferred one.
- The media then flows in the agreed codec until the call ends or the session is renegotiated.
These are the offer/answer rules in RFC 3264. If the answerer has no format in common for a stream, it must reject that stream, and if there is nothing in common for any stream, the whole offered session is rejected. The guide to SIP 488 and codec mismatches covers how that failure shows up on a trunk. If a device in the path converts between codecs instead, extra processing is added, so keeping the same codec end to end is simplest.
An Example
This is a simplified illustration. A contact center's carrier offers G.711 and G.729. The agents' browser phones prefer Opus. A platform in the middle can bridge them: agents connect with Opus, the trunk uses G.711, and the platform converts between the two. The choice at each leg is separate. What the carrier requires does not force the agent leg to use the same codec.
Why It Matters for Outbound and Inbound Teams
The codec sets a ceiling on audio quality. A narrowband codec cannot sound better than narrowband however clean the network is, and a wideband codec cannot help if the far end is narrowband. That is why comparing राज्यमंत्री across routes only makes sense when the codec is the same. Bandwidth matters too, especially for remote agents on shared connections and for large numbers of simultaneous calls.
In DialerBee, BYOC lists G.711 (PCMU/PCMA), G.729 and Opus, auto-negotiated per trunk. On the deployment page, codec order for a gateway is a setting you control, with Opus first by default and falling back through G.722 and G.711. The SIP trunk setup guide shows where this is configured when you connect a SIP ट्रंक. For agents, the browser phone is a WebRTC सॉफ्टफ़ोन.
Choosing
- Match your carrier first. Ask which codecs the trunk supports and in what order.
- Prefer fewer conversions. Keep the same codec on both legs where you can.
- Weigh quality against bandwidth. Opus can span a range of bit rates; G.729 trades quality for low bandwidth.
- Test with real calls. Listen to a sample on the actual route.
अक्सर पूछे जाने वाले प्रश्नों
Which codec should I use for VoIP?
It depends on the link. Opus is an interactive speech and audio codec designed for uses including voice over IP, and spans 6 to 510 kbit/s. G.711 is uncompressed 64 kbit/s PCM that carrier trunks widely accept. G.729 uses much less bandwidth. Choose by what your carrier supports, your bandwidth and the quality you need.
What is the bit rate of G.711?
G.711 uses 8 bits per sample at 8,000 samples per second, which is 64 kbit/s. The RFC states the 8 bits per sample and the 8,000 Hz clock; the 64 kbit/s figure is the product of those two.
What is the difference between narrowband and wideband?
Narrowband carries about 4 kHz of audio bandwidth; wideband carries 8 kHz. Opus in RFC 6716 defines five levels from narrowband (4 kHz) to fullband (20 kHz).
What happens if two systems share no codec?
Under the SDP offer/answer rules in RFC 3264, the answerer must reject a media stream that has no format in common with the offer, and if no stream has a format in common the whole offered session is rejected. Without a common codec, the audio cannot be set up unless something in the path converts between codecs.
Does the codec affect MOS?
Yes. A narrowband codec limits the best achievable quality whatever the network, so compare MOS across routes only when the codec is the same.
Related terms and guides: राज्यमंत्री, SIP ट्रंक, connecting a SIP trunk, WebRTC सॉफ्टफ़ोन.
सूत्रों का कहना है
- ITU-T G.711, Pulse code modulation (PCM) of voice frequencies (the page gives the title, the 11/88 base version, its amendments and Appendix I on packet loss concealment) (source, checked November 7, 2026)
- RFC 3551, RTP Profile for Audio and Video Conferences with Minimal Control (encodings table and clock rates) (source, checked November 7, 2026)
- RFC 6716, Definition of the Opus Audio Codec (source, checked November 7, 2026)
- RFC 3264, An Offer/Answer Model with the Session Description Protocol (SDP) (sections 5.1 and 6.1, codec order and rejecting streams with no format in common) (source, checked November 7, 2026)
संबंधित लेख: SIP one-way audio: a step-by-step troubleshooting guide · Jitter (VoIP) · Session Border Controller (SBC)
संबंधित लेख: Call Recording Storage: WAV vs MP3 Sizing · What Is Voice Activity Detection (VAD)?
संबंधित लेख: How Much Bandwidth Does a Call Center Need?
संबंधित शब्द
वॉलबोर्ड क्या होता है?
वॉलबोर्ड एक लाइव डिस्प्ले है जो कतार और एजेंट की स्थिति को वास्तविक समय में दिखाता है। इस पर क्या दिखाया जाना चाहिए, क्या नहीं, और यह डैशबोर्ड से कैसे भिन्न है।
What Is a Warm Transfer? Warm vs Cold Transfer, with a Script
A warm transfer means briefing the next agent before handing over a call. Warm vs cold vs conference transfer, a step-by-step script, mistakes and metrics.
WebRTC सॉफ्टफोन क्या है?
WebRTC सॉफ्टफोन एजेंट फोन को बिना इंस्टॉल के ब्राउज़र टैब में लाता है। यह कैसे काम करता, क्या चाहिए और एजेंट डेस्कटॉप में कैसे फिट होता है।
व्हाइट-लेबल कॉन्टैक्ट सेंटर प्लेटफॉर्म क्या है?
एक व्हाइट-लेबल कॉन्टैक्ट सेंटर प्लेटफॉर्म को पार्टनर के अपने ब्रांड और डोमेन के तहत बेचा जाता है। इसमें क्या-क्या ब्रांड करने योग्य होना चाहिए, पार्टनर किस पर नियंत्रण रखते हैं और इसे कैसे स्थापित किया जाता है।
परित्याग दर क्या है?
अबैंडन रेट उन कनेक्टेड आउटबाउंड कॉलों का हिस्सा है जो एजेंट उपलब्ध न होने से कट जाती हैं। फॉर्मूला, सीमाएं व इसे घटाने के तरीके जानें।
ACD (ऑटोमैटिक कॉल डिस्ट्रीब्यूशन) क्या है?
ACD, या स्वचालित कॉल वितरण, वह प्रणाली है जो आने वाली कॉलों को कतारबद्ध करती है और प्रत्येक कॉल को सही उपलब्ध एजेंट तक पहुंचाती है। रणनीतियाँ, मापदंड और सेटअप।
DialerBee को काम करते हुए देखने के लिए तैयार हैं?
15 मिनट के लाइव डेमो का अनुरोध करें, या 14 दिन का फ़्री ट्रायल शुरू करें — न स्लाइड, न कोई प्रतिबद्धता। कॉलिंग तब शुरू होती है जब आपका अपना SIP ट्रंक या PBX जुड़ जाए और मंज़ूर हो जाए।
14 दिन का फ़्री ट्रायल · मुफ़्त AI क्रेडिट · कोई कार्ड नहीं · 11 भाषाएँ · BYOC · अनुपालन में सहायक नियंत्रण