Share to: share facebook share twitter share wa share telegram print page

G.711

G.711
Pulse code modulation (PCM) of voice frequencies
StatusIn force
Year started1972
Latest version(02/00)
February 2000
OrganizationITU-T
Related standardsG.191, G.711.0, G.711.1, G.729
Domainaudio compression
Websitehttps://www.itu.int/rec/T-REC-G.711

G.711 is a narrowband audio codec originally designed for use in telephony that provides toll-quality audio at 64 kbit/s. It is an ITU-T standard (Recommendation) for audio encoding, titled Pulse code modulation (PCM) of voice frequencies released for use in 1972.

G.711 passes audio signals in the frequency band of 300–3400 Hz and samples them at the rate of 8000 Hz, with the tolerance on that rate of 50 parts per million (ppm).

It uses one of two different logarithmic companding algorithms: μ-law, which is used primarily in North America and Japan, and A-law, which is in use in most other countries outside North America. Each companded sample is quantized as 8 bits, resulting in a 64 kbit/s bit rate.

G.711 is a required standard in many technologies, such as in the H.320 and H.323 standards.[1] It can also be used for fax communication over IP networks (as defined in T.38 specification).

Two enhancements to G.711 have been published: G.711.0 utilizes lossless data compression to reduce the bandwidth usage and G.711.1 increases audio quality by increasing bandwidth.

Features

Types

G.711 defines two main companding algorithms, the μ-law algorithm and A-law algorithm. Both are logarithmic, but A-law was specifically designed to be simpler for a computer to process[citation needed]. The standard also defines a sequence of repeating code values which defines the power level of 0 dB.

The μ-law and A-law algorithms encode 14-bit and 13-bit signed linear PCM samples (respectively) to logarithmic 8-bit samples. Thus, the G.711 encoder will create a 64 kbit/s bitstream for a signal sampled at 8 kHz.[1]

G.711 μ-law tends to give more resolution to higher range signals while G.711 A-law provides more quantization levels at lower signal levels.

The terms PCMU, G711u and G711MU are also used for G.711 μ-law, and PCMA and G711A for G.711 A-law.[2]

A-law

A-law encoding thus takes a 13-bit signed linear audio sample as input and converts it to an 8 bit value as follows:

Linear input code
[note 1]
Compressed code
XOR 01010101
Linear output code
[note 2]
s0000000abcdx s000abcd s0000000abcd1
s0000001abcdx s001abcd s0000001abcd1
s000001abcdxx s010abcd s000001abcd10
s00001abcdxxx s011abcd s00001abcd100
s0001abcdxxxx s100abcd s0001abcd1000
s001abcdxxxxx s101abcd s001abcd10000
s01abcdxxxxxx s110abcd s01abcd100000
s1abcdxxxxxxx s111abcd s1abcd1000000
  1. ^ This value is produced by taking the two's complement representation of the input value, and inverting all bits after the sign bit if the value is negative.
  2. ^ Signed magnitude representation

Where s is the sign bit, s is its inverse (i.e. positive values are encoded with MSB = s = 1), and bits marked x are discarded. Note that the first column of the table uses different representation of negative values than the third column. So for example, input decimal value −21 is represented in binary after bit inversion as 1000000010100, which maps to 00001010 (according to the first row of the table). When decoding, this maps back to 1000000010101, which is interpreted as output value −21 in decimal. Input value +52 (0000000110100 in binary) maps to 10011010 (according to the second row), which maps back to 0000000110101 (+53 in decimal).

This can be seen as a floating-point number with 4 bits of mantissa m (equivalent to a 5-bit precision), 3 bits of exponent e and 1 sign bit s, formatted as seeemmmm with the decoded linear value y given by formula

which is a 13-bit signed integer in the range ±1 to ±(212 − 26). Note that no compressed code decodes to zero due to the addition of 0.5 (half of a quantization step).

In addition, the standard specifies that all resulting even bits (LSB is even) are inverted before the octet is transmitted. This is to provide plenty of 0/1 transitions to facilitate the clock recovery process in the PCM receivers. Thus, a silent A-law encoded PCM channel has the 8 bit samples coded 0xD5 instead of 0x80 in the octets.

When data is sent over E0 (G.703), MSB (sign) is sent first and LSB is sent last.

ITU-T STL[3] defines the algorithm for decoding as follows (it puts the decoded values in the 13 most significant bits of the 16-bit output data type).

void            alaw_expand(lseg, logbuf, linbuf)
  long            lseg;
  short          *linbuf;
  short          *logbuf;
{
  short           ix, mant, iexp;
  long            n;

  for (n = 0; n < lseg; n++)
  {
    ix = logbuf[n] ^ (0x0055);	/* re-toggle toggled bits */

    ix &= (0x007F);		/* remove sign bit */
    iexp = ix >> 4;		/* extract exponent */
    mant = ix & (0x000F);	/* now get mantissa */
    if (iexp > 0)
      mant = mant + 16;		/* add leading '1', if exponent > 0 */

    mant = (mant << 4) + (0x0008);	/* now mantissa left justified and */
    /* 1/2 quantization step added */
    if (iexp > 1)		/* now left shift according exponent */
      mant = mant << (iexp - 1);

    linbuf[n] = logbuf[n] > 127	/* invert, if negative sample */
      ? mant
      : -mant;
  }
}

See also "ITU-T Software Tool Library 2009 User's manual" that can be found at.[4]

μ-law

The μ-law (sometimes referred to as ulaw, G.711Mu, or G.711μ) encoding takes a 14-bit signed linear audio sample in two's complement representation as input, inverts all bits after the sign bit if the value is negative, adds 33 (binary 100001) and converts it to an 8 bit value as follows:

Linear input value
[note 1]
Compressed code
XOR 11111111
Linear output value
[note 2]
s00000001abcdx s000abcd s00000001abcd1
s0000001abcdxx s001abcd s0000001abcd10
s000001abcdxxx s010abcd s000001abcd100
s00001abcdxxxx s011abcd s00001abcd1000
s0001abcdxxxxx s100abcd s0001abcd10000
s001abcdxxxxxx s101abcd s001abcd100000
s01abcdxxxxxxx s110abcd s01abcd1000000
s1abcdxxxxxxxx s111abcd s1abcd10000000
  1. ^ This value is produced by taking the two's complement representation of the input value, inverting all bits after the sign bit if the value is negative, and adding 33.
  2. ^ Signed magnitude representation. Final result is produced by decreasing the magnitude of this value by 33.

Where s is the sign bit, and bits marked x are discarded.

In addition, the standard specifies that the encoded bits are inverted before the octet is transmitted. Thus, a silent μ-law encoded PCM channel has the 8 bit samples transmitted 0xFF instead of 0x00 in the octets.

Adding 33 is necessary so that all values fall into a compression group and it is subtracted back when decoding.

Breaking the encoded value formatted as seeemmmm into 4 bits of mantissa m, 3 bits of exponent e and 1 sign bit s, the decoded linear value y is given by formula

which is a 14-bit signed integer in the range ±0 to ±8031.

Note that 0 is transmitted as 0xFF, and −1 is transmitted as 0x7F, but when received the result is 0 in both cases.

G.711.0

G.711.0, also known as G.711 LLC, utilizes lossless data compression to reduce the bandwidth usage by as much as 50 percent.[5] The Lossless compression of G.711 pulse code modulation standard was approved by ITU-T in September 2009.[6][7]

G.711.1

G.711.1 "Wideband embedded extension for G.711 pulse code modulation" is a higher-fidelity extension to G.711, ratified in 2008 and further extended in 2012.[8]

G.711.1 allows a series of enhancement layers on top of a raw G.711 core stream (Layer 0): Layer 1 codes 16-bit audio in the same 4kHz narrowband, and Layer 2 allows 8kHz wideband using MDCT; each uses a fixed 16 kbps in addition to the 64 kbps core. They may be used together or singly, and each encodes the differences from the previous layer. Ratified in 2012, Layer 3 extends Layer 2 to 16kHz "superwideband," allowing another 16 kbps for the highest frequencies, while retaining layer independence. Peak bitrate becomes 96 kbps in original G.711.1, or 112 kbps with superwideband. No internal method of identifying or separating the layers is defined, leaving it to the implementation to packetize or signal them.[9][10]

A decoder that doesn't understand any set of fidelity layers may ignore or drop non-core packets without affecting it, enabling graceful degradation across any G.711 (or original G.711.1) telephony system with no changes.

Also ratified in 2012 was G.711.0 lossless extended to the new fidelity layers. Like G.711.0, full G.711 backward compatibility is sacrificed for efficiency, though a G.711.0 aware node may still ignore or drop layer packets it doesn't understand.

Licensing

The patents for G.711, released in 1972, have expired, so it may be used without the need for a licence.[1]

See also

References

  1. ^ a b c "G.711 : Pulse code modulation (PCM) of voice frequencies". www.itu.int. Archived from the original on 2019-06-17. Retrieved 2019-11-11.
  2. ^ "Video/Voice/Speech Codecs". Grandstream=. Retrieved 19 July 2020.
  3. ^ G.191 : Software tools for speech and audio coding standardization. Function alaw_expand in file Software/stl2009/g711/g711.c. Itu.int. Retrieved on 2013-09-18.
  4. ^ G.191 : ITU-T Software Tool Library 2009 User's manual. Itu.int (2010-07-23). Retrieved on 2013-09-18.
  5. ^ ITU-T (2009-07-17). "ITU-T Newslog - Voice codec gets new lossless compression". Archived from the original on 2016-03-03. Retrieved 2010-02-28.
  6. ^ ITU-T. "G.711.0 : Lossless compression of G.711 pulse code modulation". Retrieved 2010-02-28.
  7. ^ Recent Audio/Speech Coding Developments in ITU-T and future trends (PDF), August 2008, retrieved 2010-02-28
  8. ^ G.711.1 : Wideband embedded extension for G.711 pulse code modulation, ITU-T, 2012, retrieved 2022-12-24
  9. ^ Lapierre; et al. (2008-08-25), Noise shaping in an ITU-T G.711-Interoperable embedded codec (PDF), retrieved 2024-06-11
  10. ^ Hiwasaki; et al. (2008-08-25), G. 711.1: a wideband extension to ITU-T G. 711 (PDF), retrieved 2024-06-11

Read other articles:

У этого термина существуют и другие значения, см. Киевская митрополия. Киевская митропо́лия (Западнору́сская митрополия, Киево-Литовская митрополия) — православная митрополия Константинопольского патриархата на территории Великого княжества Литовского и Речи Поспо

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2016) نجمة داوودمعلومات عامةالصنف الفني تشويق و إثارة ، دراما ، رعب ، غموضتاريخ الصدور5 مايو 2015 (2015-05-05) (مصر)مدة العرض 56 دقيقةاللغة الأصلية العربيةالبلد …

Messier 98Messier 98Data pengamatan (J2000 epos)Rasi bintangComa BerenicesAsensio rekta 12j 13m 48.292d[1]Deklinasi +14° 54′ 01.69″[1]Pergeseran merah−0.000474[2]Kecepatan radial helio−142 ± 4 km/s[2]Jarak44.4 Jtc (13.6 Mpc)[3]Magnitudo semu (V)11.0[4]Ciri-ciriJenisSAB(s)ab[3]Ukuran semu (V)9′.8 × 2′.8[4]Penamaan lainNGC 4192, UGC 7231, PGC 39028[2] Messier 98, atau dike…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) جوشوا ديكسون معلومات شخصية الميلاد 2 نوفمبر 1994 (29 سنة)  برث  مواطنة نيوزيلندا  الحياة العملية المهنة لاعب اتحاد الرغبي  الرياضة اتحاد الرغبي  تعديل…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2016) سارة تومي معلومات شخصية الميلاد 16 أكتوبر 1987 (36 سنة)  باريس  الجنسية تونسية - فرنسية الحياة العملية سبب الشهرة مشروع مليون شجرة من أجل تونس الجوائز  جوائ…

Album by The Mothers of Invention This article is about the album. For the Canadian band, see Absolutely Free (band). For the song by Frank Zappa, see Absolutely Free (song). This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original resear…

Albanian Music Award This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: IMA Awards – news · newspapers · books · scholar · JSTOR (April 2016) (Learn how and when to remove this template message) IMA AwardsLocationOnlineCountryAlbania and KosovoFirst awarded2011Websitewww.imalbania.com/awards/ The InfoMedia Albania Awards (often shortened to IMA Awards) is an …

NATO standards classifying how much weight a road can carry Road sign The Military Load Classification (MLC) is a system of standards used by NATO to classify the safe amount of load a surface can withstand. Load-carrying capacity is shown in whole numbers for vehicles, bridges, roads, and routes. Vehicles are classified by weight, type, and effect on routes. Bridges, roads, and routes are classified by physical characteristics, type and flow of traffic, effects of weather, and other special con…

لوحة تحكُّم الاستدامة هي حزمة برمجية مجّانية وغير تجارية تم تكوينها لتبيّن العلاقات المُعقّدة بين القضايا الاقتصادية والاجتماعية والبيئية. البرمجية صُمِّمَت لمساعدة الدول النامية لتحقيق الأهداف الإنمائية للألفية والعمل باتجاه التنمية المُستدامة.وقد تم تطويرها بواسطة أ

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada April 2016. OVO di depan kantor polisi pada Luminale 2012 Resonate di Luminale 2012 Luminale adalah sebuah festival cahaya yang diselenggarakan setiap dua tahun sekali sejak 2000 di Frankfurt am Main, Jerman. Acara ini selalu diadakan bersamaan dengan Light+Building, s…

لا يزال النص الموجود في هذه الصفحة في مرحلة الترجمة إلى العربية. إذا كنت تعرف اللغة المستعملة، لا تتردد في الترجمة. (أبريل 2019) Allure of the Seas Allure of the Seas in فالماوث  [لغات أخرى]‏, جامايكا تأريخ المالك: مجموعة رويال كاريبيانالمشغّل: رويال كاريبيان إنترناشيونالميناء التسجيل: ن

ЛусільйосLucillos Герб {{{official_name}}}ГербПрапорМуніципалітетКраїна  ІспаніяАвтономна спільнота Кастилія-Ла-МанчаПровінція ТоледоКоординати 39°59′13″ пн. ш. 4°36′47″ зх. д. / 39.987° пн. ш. 4.613° зх. д. / 39.987; -4.613Координати: 39°59′13″ пн. ш. 4°36′47″ …

اقتصاديات التعليمصنف فرعي من اقتصاد تطبيقي جزء من اقتصاد المواضيع تعليم — مدرسة شخصيات مهمة غاري بيكرJacob Mincer (en) تعديل - تعديل مصدري - تعديل ويكي بيانات اقتصاديات التعليم أو اقتصاد التعليم هي دراسة القضايا الاقتصادية المتعلقة بالتعليم، بما في ذلك الطلب على التعليم، وتمويل ا

Thecodontosaurus Periode Rhaetian~203.6–201.3 jtyl PreЄ Є O S D C P T J K Pg N ↓ Restorasi kerangkaTaksonomiKerajaanAnimaliaFilumChordataKelasReptiliaOrdoSaurischiaGenusThecodontosaurus Tata namaSinonim takson ?Agrosaurus Seeley, 1891 ?Pantydraco Galton, Yates & Kermack, 2007[1] lbs Thecodontosaurus adalah sebuah genus dinosaurus sauropodomorfa basal herbivora yang hidup pada zaman akhir Trias (zaman Rhaetian). Jasadnya kebanyakan ditemukan di Inggris Selatan. Thecodon…

← 1852 •  • 1869 → Elecciones de Asambleístas Constituyentes de Ecuador de 186138 diputados constituyentes Fecha 1861 Tipo Legislativas Presidente de la Asamblea Nacional Constituyente de 1861 TitularPedro Moncayo ElectoJuan José Flores Las elecciones para diputados constituyentes de 1861 determinaron quienes conformarían la Asamblea Constituyente de Ecuador de 1861, la cual tenía como objetivo la redacción de un nuevo texto constitucional para el país…

1 2 3 4 5 6 7 8 9 10 11 11 A Divisão N.º 2 é uma das onze divisões do censo da província canadense de Terra Nova e Labrador, compreendendo principalmente a Península de Burin. Como todas as divisões do censo em Terra Nova e Labrador, mas ao contrário das divisões do censo de algumas outras províncias, a divisão existe apenas como uma divisão estatística para os dados do censo, e não é uma entidade política. No Censo de 2011 do Canadá, a divisão tinha uma população de 21351 ha…

蠟筆小新:幽靈忍者珍風傳クレヨンしんちゃん もののけニンジャ珍風伝電影海報基本资料导演橋本昌和编剧 上野貴美子 橋本昌和 原著蠟筆小新臼井儀人作品主演 小林由美子 楢橋美紀 森川智之 興梠里美 高垣彩陽 花江夏樹 浦山迅(日语:浦山迅) 悠木碧 雨宫天 來賓聲優 川榮李奈 岩井勇氣(原市) 澤部佑(原市) 配乐 荒川敏行 宮崎慎二 主題曲綠黃色社會〈太陽仍會…

この記事の文章は日本語として不自然な表現、または文意がつかみづらい状態になっています。文意を分かりやすくするよう、修正が必要とされています。(2022年12月) マルシン・ブドコウスキーMarcin Budkowski生誕 (1977-04-23) 1977年4月23日(46歳) マゾフシェ県ワルシャワ国籍 ポーランド フランス教育インペリアル・カレッジ・ロンドンISAE SUPAERO業績専門分野 自動車エンジ…

В Википедии есть статьи о других людях с такой фамилией, см. Ерохин; Ерохин, Александр. Александр Ерохин Общая информация Полное имя Александр Юрьевич Ерохин Родился 13 октября 1989(1989-10-13)[1] (34 года)Барнаул, РСФСР, СССР Гражданство  Россия Рост 195[2] см Позиция полузащ…

Racetrack This article contains content that is written like an advertisement. Please help improve it by removing promotional content and inappropriate external links, and by adding encyclopedic content written from a neutral point of view. (January 2014) (Learn how and when to remove this template message) Brennan Poole in a UMP modified at Houston Raceway Park in 2008 Houston Raceway Park, formerly known as Royal Purple Raceway, is a quarter-mile dragstrip in Baytown, Texas, just outside Houst…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.17.176.127