Lec11 Audio Comp
Lec11 Audio Comp
Lecture 11
Audio Compression
Digital Sound Basics
2 of
17
Digital Sound Basics
Redundant information
Implicit in the remaining
information
Ex. oversampled audio signal
Irrelevant information
Perceptually insignificant
Cannot be recovered from
remaining information
5 of
17
Audio Compression- DPCM Principles
Differential pulse code modulation is a derivative of the
standard PCM
It uses the fact that the range of differences in
amplitudes between successive samples of the audio
waveform is less than the range of the actual sample
amplitudes
Hence fewer bits to represent the difference signals
Encoder
• Previously digitized sample is held in the register (R)
• The DPCM signal is computed by subtracting the current contents (Ro)
from the new output by the ADC (PCM)
• The register value is then updated before transmission
Decoder
• Decoder simply adds the previous register contents (PCM) with the DPCM
• Since ADC will have noise there will be cumulative errors in the value of
the register signal
Differential pulse-code modulation (DPCM)
0 2 2+0=2
0 2 2+0=2
1 2 2+1=3
0 3 3+0=3
0 3 3+0=3
Received signal = {2 , 2 , 2 , 3 , 3 , 3}
Example
consider the 8x8 image f(x,y) below, where x=0 to 7, and y=0 to 7.
Explain how predictive coding can be used to compress the above image with
showing the transmitted image and the received image, Assume that
the prediction formula is p(x,y)=0 when x=0 and p(x,y)=f(x-1,y) when x>0
Advantages Disadvantages
Bandwidth requirements High bit rate
is less compared to PCM
Practical usage is
The prediction filters limited
reduces the problem of
It needs predicator
quantization error
circuits to be used
The number of bits used which is very complex
to represent one sample
value is also reduced
compared to PCM