G.711 represents logarithmic pulse-code modulation (PCM) samples for signals of voice frequencies, sampled at the rate of 8000 samples/second.
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.
G.711, also known as Pulse Code Modulation (PCM), is a very commonly used waveform codec. G.711 uses a sampling rate of 8,000 samples per second, with the tolerance on that rate 50 parts per million (ppm). Non-uniform quantization with 8 bits is used to represent each sample, resulting in a 64 kbit/s bit rate. There are two slightly different versions; μ-law, which is used primarily in North America, and A-law, which is in use in most other countries outside North America. 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. When using μ-law G.711 in networks where suppression of the all 0 character signal is required, the character signal corresponding to negative input values between decision values numbers 127 and 128 should be 00000010 and the value at the decoder output is -7519. The corresponding decoder output value number is 125.
|Linear input code||Compressed code|
Where s is the sign bit. So for example, 1000000010101111 maps to 10001010 (according to the first row of the table), and 0000000110101111 maps to 00011010 (according to the second).
In addition, the standard specifies that all resulting even bits 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 0x55 instead of 0x00 in the octets (or 0xD5 if the sign bit happens to be set), and a silent μ-law encoded PCM has 0xFF in the 8 bit samples.
Note that the ITU define bit 1 to have the value 128 and bit 8 to have the value 1, i.e. 'big-endian'.
The more widely accepted convention has bit 7 = 128 and bit 0 = 1, which is known as 'little-endian'.
Note that when data is sent over E0 (G.703), MSB (signbit) is sent first and LSB is sent last.
A recent extension to G.711, G.711.1, allows the addition of narrowband and/or wideband (16000 samples/s) enhancements, each at 25 % of the bitrate of the (included) base G.711 bitstream, leading to data rates of 64, 80 or 96 kbit/s.
US Patent Issued to Electronics and Telecommunications Research Institute on July 23 for "Encoding and Decoding Apparatuses for Improving Sound Quality of G.711 Codec" (South Korean Inventors)
Jul 23, 2013; ALEXANDRIA, Va., July 23 -- United States Patent no. 8,494,843, issued on July 23, was assigned to Electronics and...
WIPO ASSIGNS PATENT TO ALCATEL-LUCENT USA FOR "SINGLE CHANNEL EVRCX, ISLP AND G. 711 TRANSCODING IN PACKET NETWORKS" (AMERICAN INVENTOR)
Jul 19, 2011; GENEVA, July 19 -- Publication No. WO/2011/084966 was published on July 14. Title of the invention: "SINGLE CHANNEL EVRCx, ISLP...
US Patent Issued to Alcatel Lucent on Aug. 20 for "Single Channel EVRCx, ISLP and G.711 Transcoding in Packet Networks" (Illinois Inventor)
Aug 20, 2013; ALEXANDRIA, Va., Aug. 20 -- United States Patent no. 8,515,769, issued on Aug. 20, was assigned to Alcatel Lucent (ParisSingle...