{{short description|ITU-T Recommendation}} {{Use mdy dates|date=September 2025}} {{Infobox technology standard | title = G.729 | long_name = Coding of speech at 8&nbsp;kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP) | image = Pcm.svg | caption = | status = In force | year_started = | version = (10/17) | version_date = October 2017 | preview = | preview_date = | organization = ITU-T | committee = ITU-T Study Group 16 | base_standards = | related_standards = G.191, G.711, G.729.1 | abbreviation = | domain = audio compression | license = Freely available | website = https://www.itu.int/rec/T-REC-G.729 }} '''G.729''' is a royalty-free<ref>{{cite web |author=Michael Graves |date=March 6, 2017 |title=It's Official! The patents on G.729 have expired |url=https://www.mgraves.org/2017/03/its-official-the-patents-on-g-729-have-expired/}}</ref> narrow-band vocoder-based audio data compression algorithm using a frame length of {{val|6.3|u=ms}}. It is officially described as ''Coding of speech at 8&nbsp;kbit/s using code-excited linear prediction'' speech coding (CS-ACELP), and was introduced in 1996.<ref>{{Cite web |title=G.729: Coding of speech at 8 kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP) |url=https://www.itu.int/rec/T-REC-G.729 |url-status=live |archive-url=https://web.archive.org/web/20210406195519/https://www.itu.int/rec/T-REC-G.729 |archive-date=April 6, 2021 |access-date=April 6, 2021 |website=www.itu.int}}</ref> The wide-band extension of G.729 is called G.729.1, which equals G.729 Annex J.

Because of its low bandwidth requirements, G.729 is mostly used in voice over Internet Protocol (VoIP) applications when bandwidth must be conserved. Standard G.729 operates at a bit rate of {{val|8|u=kbit/s}}, but extensions provide rates of {{val|6.4|u=kbit/s}} (Annex D, F, H, I, C+) and {{val|11.8|u=kbit/s}} (Annex E, G, H, I, C+) for worse and better speech quality, respectively.

G.729 has been extended with various features, commonly designated as G.729a and G.729b: * G.729: This is the original codec using a high-complexity algorithm. * G.729A or Annex A: This version has a medium complexity, and is compatible with G.729. It provides a slightly lower voice quality. * G.729B or Annex B: This version extends G.729 with silence suppression, and is not compatible with the previous versions. * G.729AB: This version extends G.729A with silence suppression, and is only compatible with G.729B. * G.729.1 or Annex J: This version extends G.729A and B with scalable variable encoding using hierarchical enhancement layers. It provides support for wideband speech and audio, using modified discrete cosine transform (MDCT) coding.<ref name="Nagireddi"/>

Dual-tone multi-frequency signaling (DTMF), fax transmissions, and high-quality audio cannot be transported reliably with this codec. DTMF requires the use of the named telephony events in the RTP payload for DTMF digits, telephony tones, and telephony signals as specified in RFC 4733.

==G.729 annexes== {| class="wikitable" |- style="text-align: center; width: auto;" ! rowspan="2" style="background:#F0D0D0; text-align:center;" | Functionality !! colspan="12" style="background:#F0D0D0; text-align:center;" | G.729 Annexes <ref name="g729-2007-01">{{cite journal |author=ITU-T |author-link=ITU-T |date=January 2007 |title=G.729 : Coding of speech at 8 kbit/s using conjugate-structure algebraic-code-excited linear prediction (CS-ACELP) |url=https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-G.729-201206-I!!SOFT-ZST-E&type=items |format=PDF |page=i |access-date=July 21, 2009}}</ref> |- ! style="background:#F0D0D0;" | - !! style="background:#F0D0D0;" | A !! style="background:#F0D0D0;" | B !! style="background:#F0D0D0;" | C !! style="background:#F0D0D0;" | D !! style="background:#F0D0D0;" | E !! style="background:#F0D0D0;" | F !! style="background:#F0D0D0;" | G !! style="background:#F0D0D0;" | H !! style="background:#F0D0D0;" | I !! style="background:#F0D0D0;" | C+!! style="background:#F0D0D0;" | J |- ! Low complexity || || X || X || || || || || || || || || |- ! Fixed-point || X || X || X || || X || X || X || X || X || X || || X |- ! Floating-point || || || || X || || || || || || || X || |- ! {{val|8|u=kbit/s}} || X || X || X || X || X || X || X || X || X || X || X || X |- ! {{val|6.4|u=kbit/s}} || || || || || X || || X || || X || X || X || |- ! {{val|11.8|u=kbit/s}} || || || || || || X || || X || X || X || X || |- ! DTX || || || X || || || || X || X || || X || X || |- ! Embedded <br/>variable bit rate, <br/>wideband || || || || || || || || || || || || X |}

===G.729 Annex A=== G.729a is a compatible extension of G.729, but requires less computational power. This lower complexity, however, bears the cost of marginally reduced speech quality.

G.729a was developed by a consortium of organizations: France Télécom, Mitsubishi Electric Corporation, Nippon Telegraph and Telephone Corporation (NTT).

The features of G.729a are: * Sampling frequency {{val|8|u=kHz}}/16-bit (80 samples for {{val|10|u=ms}} frames) * Fixed bit rate (8&nbsp;kbit/s {{val|10|u=ms}} frames) * Fixed frame size ({{val|10|u=bytes}} (80 bits) for {{val|10|u=ms}} frame) * Algorithmic delay is 15 ms per frame, with {{val|5|u=ms}} look-ahead delay * G.729a is a hybrid speech coder which uses Algebraic Code Excited Linear Prediction (ACELP) * The complexity of the algorithm is rated at 15, using a relative scale where G.711 is 1 and G.723.1 is 25. * PSQM testing under ideal conditions yields mean opinion scores of 4.04 for G.729a, compared to 4.45 for G.711 (μ-law){{citation needed|date=October 2019}} * PSQM testing under network stress yields mean opinion scores of 3.51 for G.729a, compared to 4.13 for G.711 (μ-law)

Some VoIP phones incorrectly use the description "G729a/8000" in SDP (e.g. this affects some Cisco and Linksys phones). This is incorrect as G729a is an alternative method of encoding the audio, but still generates data decodable by either G729 or G729a - i.e. there is no difference in terms of codec negotiation. Since the SDP RFC allows static payload types to be overridden by the textual rtpmap description this can cause problems calling from these phones to endpoints adhering to the RFC unless the codec is renamed in their settings since they will not recognise 'G729a' as 'G729' without a specific workaround in place for the bug.

===G.729 Annex B=== G.729 has been extended in Annex B (G.729b) which provides a silence compression method that enables a voice activity detection (VAD) module. It is used to detect voice activity in the signal. It also includes a discontinuous transmission (DTX) module which decides on updating the background noise parameters for non speech (noisy frames). It uses 2-byte Silence Insertion Descriptor (SID) frames transmitted to initiate comfort noise generation (CNG). If transmission is stopped, and the link goes quiet because of no speech, the receiving side might assume that the link has been cut. By inserting comfort noise, analog hiss is simulated digitally during silence to assure the receiver that the link is active and operational.

===G.729 Annex J (G.729.1)=== {{main|G.729.1}}

G.729 Annex J, maintained by G.729.1, provides support for wideband speech and audio. Introduced in 2006,<ref name="Nagireddi">{{cite book |last1=Nagireddi |first1=Sivannarayana |url=https://books.google.com/books?id=5AneeZFE71MC&pg=PA69 |title=VoIP Voice and Fax Signal Processing |date=2008 |publisher=John Wiley & Sons |isbn=9780470377864 |page=69}}</ref> it defines variable bit-rate wideband enhancement using up to 12 hierarchical layers. The core layer is an {{val|8|u=kbit/s}} G.729 bitstream, the second layer is a {{val|4|u=kbit/s}} narrowband enhancement layer, and the third {{val|2|u=kbit/s}} layer is a bandwidth enhancement layer. Further layers provide wideband enhancement in {{val|2|u=kbit/s}} steps. The G.729.1 uses three-stage coding: embedded code-excited linear prediction (CELP) coding of the lower band, parametric coding of the higher band by Time-Domain Bandwidth Extension (TDBWE), and enhancement of the full band by a predictive transform coding algorithm called time-domain aliasing cancellation (TDAC), also known as modified discrete cosine transform (MDCT) coding.<ref name="Nagireddi"/> Bit rate and the obtained quality are adjustable by simple bitstream truncation.

==Licensing== As of January 1, 2017, the patent terms of most licensed patents under the G.729 Consortium have expired, the remaining unexpired patents are usable on a royalty-free basis.<ref>{{cite web |author=Sipro Lab Telecom |date=January 28, 2017 |title=About G.729 |url=http://www.sipro.com/G729.html |archive-url=https://web.archive.org/web/20170202062530/http://www.sipro.com/G729.html |archive-date=February 2, 2017}}</ref> G.729 includes patents from several companies which were until the expiry licensed by Sipro Lab Telecom, the authorized Intellectual Property Licensing Administrator for G.729 technology and patent pool.<ref>{{Cite web |title=Sipro Lab Telecom Website |url=http://www.sipro.com/ |url-status=dead |archive-url=https://web.archive.org/web/20121225140523/http://www.sipro.com/ |archive-date=December 25, 2012 |access-date=March 31, 2007}}</ref><ref name="sipro">{{cite web |author=VoiceAge Corporation |date=October 14, 2007 |title=G.729 Licensing |url=http://www.voiceage.com/licg729.php |url-status=dead |archive-url=https://web.archive.org/web/20071014162058/http://www.voiceage.com/licg729.php |archive-date=October 14, 2007 |access-date=September 17, 2009}}</ref><ref name="siprolab-faq">{{cite web |author=Sipro Lab Telecom |date=October 25, 2007 |title=FAQ G.729 and G.723.1 |url=http://www.sipro.com/faq.php |url-status=dead |archive-url=https://web.archive.org/web/20071025051836/http://www.sipro.com/faq.php |archive-date=October 25, 2007 |access-date=September 17, 2009}}</ref><ref name="siprolab-g729">{{cite web |author=Sipro Lab Telecom |date=October 29, 2006 |title=G.729 IPR Pool |url=http://www.sipro.com/g729onestop.php |url-status=dead |archive-url=https://web.archive.org/web/20061029005724/http://www.sipro.com/g729onestop.php |archive-date=October 29, 2006 |access-date=September 17, 2009}}</ref>

===Past patent litigation=== AIM IP LLC, a California Limited Liability Company based in Mission Viejo, CA<ref name="California Secretary of State Database">{{cite web |title=Business Search - Results |url=https://businesssearch.sos.ca.gov/CBS/SearchResults?SearchType=LPLLC&SearchCriteria=aim+ip+llc&SearchSubType=Keyword |website=Business Search - Business Entities - Business Programs {{!}} California Secretary of State}}</ref> filed 17 patent infringement lawsuits<ref name="RPX Patent Database">{{Cite web |title=US 5,920,853 A - Signal compression using index mapping technique for the sharing of quantization tables &#124; RPX Insight |url=https://insight.rpxcorp.com/patent/US5920853A}}</ref> in the Central District Courts of California accusing 22 different companies, including, Cisco Systems, Polycom and others of infringing U.S. Patent No. 5,920,853.<ref name="RPX Litigation Database">{{Cite web |title=Patent Litigations Search &#124; RPX Insight |url=https://insight.rpxcorp.com/advanced_search/search_litigations |website=insight.rpxcorp.com}}</ref><ref name="Priorsmart.com">{{cite web |title=Aim Ip LLC v. Cisco Systems Inc et. al. patent lawsuit |url=http://news.priorsmart.com/aim-ip-v-cisco-systems-l3Tu/ |archive-url=https://web.archive.org/web/20140201191615/http://news.priorsmart.com/aim-ip-v-cisco-systems-l3Tu/ |archive-date=February 1, 2014}}</ref> The '853 patent was filed at the United States Patent and Trademark Office in 1996 by Rockwell International. The inventors listed on the '853 patent are Benyassine Adil, Su Huan-Yu and Shlomot Eyal.<ref name="USPTO Issued Patent 5,920,853">{{Cite web |title=Patent Public Search &#124; USPTO |url=https://ppubs.uspto.gov/pubwebapp/static/pages/landing.html |website=ppubs.uspto.gov}}</ref>

In 2000, the '853 patent was assigned by Rockwell International to Conexant Systems,<ref name="853-patent-assignments">{{Cite web |title=United States Patent and Trademark Office |url=https://assignment.uspto.gov/patent/index.html#/patent/search/resultAbstract?id=5920853&type=patNum |website=assignment.uspto.gov}}</ref> an American-based software developer and fabless semiconductor company, which began as a division of Rockwell before being spun-off as its own public company.<ref>{{cite web |author=Mark Lapedus |date=November 10, 1998 |title=Rockwell Semi spin-off Conexant will target communications IC market |url=https://www.eetimes.com/document.asp?doc_id=1119907 |website=EE Times}}</ref> In 2010, the '853 patent was sold by Conexant Systems to AIM IP LLC, a California Limited Liability Company based in Mission Viejo.<ref name="853-patent-assignments"/>

The '853 patent contains patent claims which cover lookup tables used in G.729. The patent has since expired and is no longer in force due to its patent term expiring.<ref name="United States Patent and Trademark Office Assignment Record Database">{{cite web |title=US5920853A - Signal compression using index mapping technique for the sharing of quantization tables |url=https://patents.google.com/patent/US5920853 |website=Google Patents}}</ref>

==RTP payload type== G.729 is assigned the static payload type 18 for RTP by IANA.<ref>{{cite web |title=Real-Time Transport Protocol (RTP) Parameters |url=https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xml |access-date=September 18, 2013 |publisher=Iana.org}}</ref> The rtpmap parameter description for this payload type is "G729/8000".

Both G.729a and G.729b use the same rtpmap description as G.729. G.729a and G.729b are indicated using annexb=no or annexb=yes, respectively. G.729 Annex B (G.729b) is the default in absence of parameter ''annexb'' in the Session Description Protocol.<ref name="rfc3555">{{cite web |author=S. Casner, P. Hoschka |date=July 2003 |title=MIME Type Registration of RTP Payload Formats |url=http://tools.ietf.org/html/rfc3555#section-4.1.9 |access-date=February 27, 2013}}</ref>

==See also== * List of codecs * Comparison of audio coding formats * RTP audio video profile

==References== {{Reflist}}

==External links== * [http://www.itu.int/rec/recommendation.asp?type=folders&lang=e&parent=T-REC-G.729 ITU-T Recommendation G.729] - technical specification. * [https://web.archive.org/web/20081030043328/http://www.cs.columbia.edu/techreports/cucs-016-01.pdf#search=%22g.729%20error%20recovery%20for%20internet%20telephony%22 G.729 Error Recovery for Internet Telephony] * [http://www.itu.int/ITU-T/dbase/patent/index.html ITU Patent database] * [https://web.archive.org/web/20121225140523/http://www.sipro.com/ Sipro Lab Telecom (administers the patent pools for G.723.1 and G.729)] * [http://www.voiceage.com/openinit_g729.php Voiceage's G.729 implementation]

{{Compression formats}}

Category:Audio codecs Category:Speech codecs Category:ITU-T recommendations Category:ITU-T G Series Recommendations