Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sampling.
Quantization.
Encoding.
Compression (Optional).
Sampling
Nyquist Theorem
In order to digitize an analog signal,
the signal must be sampled at a rate
equal to that of twice the highest
frequency of the signal to be digitized.
Sampling
200 Hz 20,000 Hz
250 Hz 10,000 Hz
300 Hz 3,000 Hz
Sampling
Nyquist Theorem
Fq = 2fm
Fq = 2 (4000) Hz
Fq = 8000 Hz
Sampling
ts = 1 / 8000
ts = 125 ms
G.711
1 sample = 8 bits
8000 Sample = 64000
= 64 kbps
G.729
1 sample = 1 bits
8000 Sample = 8000
= 8 kbps
Quantization
256 combinations
255 are used
127 above zero, 127 below and 1 for zero it self.
Bit patern of all zero’s is never used.
mu-Law
a-Law
Quantization
Amplitude
Quantization scale
Quantified value
(8- bit values assigned to
each delineation)
Zero reference
Time Note: Each line represents
1/8000 of a second
(samples)
Quantization
Amplitude
Quantization scale
Quantified value
(8- bit values assigned to
each delineation)
Zero reference
Time Note: Each line represents
1/8000 of a second
(samples)
Quantization
If a samples amplitude fell exactly between two
samples – “quantization error”
Quantization error creates “quantization noise”
One error may not be heard but continuous error
can create hearable noise.
Encoding
Sampling Quantization Encoding
P Se Se Se St St St St
P - Polarity
Se - Segment
St - Step
Encoding
First bit represents Polarity (+ve , -ve)
1 0 1 1 0 1 0 1
P Se St
Quantization.
Each sample is quantified in comparison to a scale that has
delineation grouped in segments
Review
Encoding.
Each quantifies sample will produce an encoded 8-bit word
that represents the sample’s amplitude.
NOTE:
8000 samples per second times 8 bits per sample yields
64000 - bits per second to represent one second of sound.
Compression
Vocoder Compression:
Synthesized voice with processing intelligence.
Hybrid Compression:
A combination of wave and vocoder compression.
Wave Form Compression
Subset of the encoding schemes.
ADPCM
Pros –
Reduced bandwidth consumption
Simple and inexpensive to process
Cons –
Poorer audio quality at low rate.
Vocoder Compression
Pros –
Deduced bandwidth consumption
Cons –
Expensive to process
Requires specialized electronics
Sound synthetic
Speaker is not recognized
Hybrid Compression
“Comfort noise”