This article includes alist of references,related reading,orexternal links,but its sources remain unclear because it lacksinline citations.(February 2013) |
AnA-law algorithmis a standardcompandingalgorithm, used inEuropean8-bitPCMdigital communicationssystems to optimize, i.e. modify, thedynamic rangeof ananalog signalfor digitizing. It is one of the two companding algorithms in theG.711standard fromITU-T,the other being the similarμ-law,used in North America and Japan.
For a given input,the equation for A-law encoding is as follows:
whereis the compression parameter. In Europe,.
A-law expansion is given by the inverse function:
The reason for this encoding is that the widedynamic rangeofspeechdoes not lend itself well to efficient linear digital encoding. A-law encoding effectively reduces the dynamic range of the signal, thereby increasing thecodingefficiency and resulting in a signal-to-distortionratio that is superior to that obtained by linear encoding for a given number of bits.
Comparison to μ-law
editTheμ-law algorithmprovides a slightly larger dynamic range than the A-law at the cost of worse proportional distortion for small signals. By convention, A-law is used for an international connection if at least one country uses it.
See also
editExternal links
edit- Waveform Coding Techniques- Has details of implementation (but note that the A-law equation is incorrect)
- A-law implementation in C-language with example code