SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Downloaden Sie, um offline zu lesen
K. L. Poland, Revision F                                                               T1 - Basic Transmission Theory



7.0           Quantization and Pulse Code Modulation
              If eight bits are allowed for the PCM sample, this gives a total of 256 possible values. PCM
              assigns these 256 possible values as 127 positive and 127 negative encoding levels, plus
              the zero-amplitude level. (PCM assigns two samples to the zero level.) These levels are
              divided up into eight bands called chords. Within each chord is sixteen steps. Figure 23
              shows the chord/step structure for a linear encoding scheme.



                                                          127   =   1 000 0000

                                                          112   =   1 000 1111
                                                                                                  107 = 10010100
                                                           96   =   1 0011111

                                                           80   =   1 010 1111
                                16
                                                                                                   72 = 10111001
    8 Chords                   Steps                       64   =   1 011 1111

                                                           48   =   1 100 1111

                                                           32   =   1 101 1111

                                                           16   =   1 110 1111                     19 = 11101100

                                                            0   =   1 111 1111


                                                                                     PAM               PCM
                                                            Polarity Chord   Step   Samples           Values


                                     Figure 23: PCM Quantization levels - Chords and Steps


              Three examples of PAM samples are shown in Figure 23. Each PAM sample’s peak falls
              within a specific chord and step, giving it a numerical value. This value translates into a
              binary code which becomes the corresponding PCM value. Figure 23 only shows the
              positive-value PCM values, for simplicity.
              Figure 24 shows the conversion function for a linear quantization process. As a voice
              signal sample increases in amplitude the quantization levels increase uniformly. The 127
              quantization levels are spread evenly over the voice signal’s dynamic range. This gives
              loud voice signals the same degree of resolution (same step size) as soft voice signals.
              Encoding an analog signal in this manner, while conceptually simplistic, does not give
              optimized fidelity in the reconstruction of human voice.




/home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm                                                    Page 17 of 53
T1 - Basic Transmission Theory                                                          K. L. Poland, Revision F




                                 Voice signal
                                  amplitude




                                                              Quantization value




         Figure 24: Linear Quantization, Signal Amplitude versus Quantization Value


         Notice this transfer function gives two values for a zero-amplitude signal. In PCM, there
         is a “positive zero” and a “negative zero”.

7.1      Companding

         Dividing the amplitude of the voice signal up into equal positive and negative steps is not
         an efficient way to encode voice into PCM. Figure 23 shows PCM chords and steps as
         uniform increments (such as would be created by the transfer function depicted in Figure
         24). This does not take advantage of a natural property of human voice: voices create low-
         amplitude signals most of the time (people seldom shout on the telephone). That is, most
         of the energy in human voice is concentrated in the lower end of voice’s dynamic range.
         To create the highest-fidelity voice reproduction from PCM, the quantization process must
         take into account this fact that most voice signals are typically of lower amplitude. To do
         this the vocoder adjusts the chords and steps so that most of them are in the low-amplitude



Page 18 of 53                                                             /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm
K. L. Poland, Revision F                                                          T1 - Basic Transmission Theory



              end of the total encoding range. In this scheme, all step sizes are not equal. Step sizes are
              smaller for lower-amplitude signals.
              Quantization levels distributed according to a logarithmic, instead of linear, function gives
              finer resolution, or smaller quantization steps, at lower signal amplitudes. Therefore,
              higher-fidelity reproduction of voice is achieved. Figure 25 shows a conversion function
              for a logarithmic quantization process.
              A vocoder that places most of the quantization steps at lower amplitudes by using a non-
              linear function, such as a logarithm, is said to compress voice upon encoding, then expand
              the PCM samples to re-create an analog voice signal. Such a vocoder is hence called a
              compander (from compress and expand).




                                                     Voice signal
                                                     amplitude




                                                                       Quantization value




         Figure 25: Logarithmic Quantization, Signal Amplitude versus Quantization Value
              In reality, voice quantization does not exactly follow the logarithmic curve step for step, as
              Figure 25 appears to indicate. PCM in North America uses a logarithmic function called
              µ-law. The encoding function only approximates a logarithmic curve, as steps within a
              chord are all the same size, and therefore linear. The steps change in size only from chord



/home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm                                               Page 19 of 53
T1 - Basic Transmission Theory                                                          K. L. Poland, Revision F


         to chord. The chords form linear segments that approximate the µ-law logarithmic curve.
         The chords form a piece-wise linear approximation of the logarithmic curve.

7.2      Quantization Error

         Figure 26 shows three PAM samples that have their amplitudes measured and given PCM
         values. If a PAM sample’s level lies between two steps, it is assigned the value of the
         highest step it crosses. A PAM sample that just reaches this step would be given the same
         quantization value. Therefore, all PAM samples are treated as if they fall exactly on a step
         level.
         PAM samples with amplitudes that are not close to each other (e.g., B & C in Figure 26)
         can be given the same quantization value. Even though the PAM samples represent
         different amplitudes of the original signal, they receive the same PCM value. This causes
         an impreciseness in the voice encoding process called quantization error.
         Figure 26 shows how the quantization process can alter a voice signal. Samples A and B
         are closest in amplitude, with C being much lower. However, due to how the samples fall
         into the quantization levels, the sample steps created from the PCM words have B and C at
         the same amplitude. Obviously, the reconstructed waveform will be different from the
         original waveform.




                                                              Sample A


                                                              Sample B


                                                              Sample C


                                                     one step




            Quantization level steps   Encode: PAM to PCM                Decode: PCM to Step


        Figure 26: Quantization Error: Recovered Step levels do not match PAM levels

7.2.1    Fidelity: Maintaining a high Signal-to-Noise ratio

         Quantization error is another reason for using compressed encoding for digitizing a voice
         signal. Compressed encoding allows a higher signal-to-quantization-noise ratio (SNQR)
         than linear encoding. This ratio defined as
                                                           S
                                        SN Q R = 20log 〈 -------〉
                                                         NQ



Page 20 of 53                                                             /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm
K. L. Poland, Revision F                                                                  T1 - Basic Transmission Theory



              where S is the voice signal level and NQ is noise due to the quantization error. Clearly,
              keeping the quantization error small is key to keeping a high SNQR. As signal amplitude
              gets smaller, NQ must get smaller to keep SNQR from dropping. Compression
              accomplishes this by forcing quantization error magnitude to decrease with lower
              amplitudes.




                                      Step
              Higher amplitude




                                                                                  Waveform to quantize

                                                     Chord


                                                                                Magnification of small signal
              Lower amplitude




                                                                                   PAM sample




                                              Figure 27: Linear Quantization, another View
              Without increasing the overall number of quantization samples, it is desirable to increase
              the SNQR for small-amplitude signals.        This is what logarithmic quantization
              accomplishes.
              Figure 27 gives another view (as opposed to Figure 24) of the scale for a linear quantizer.
              The quantization levels are shown to the left for the positive range of a voice waveform.
              This is only the positive half of the quantization scale. There is a mirror image scale for

/home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm                                                       Page 21 of 53
T1 - Basic Transmission Theory                                                         K. L. Poland, Revision F



         the negative half of the voice signal (not shown here for simplicity). The magnification of
         a small-amplitude portion of the voice signal shows the relative coarseness of the sampling
         function. Few sample levels for a small signal corresponds to a low-fidelity (low SNQR)
         encoding technique.




                            Step
         Higher amplitude




                                                                   Waveform to quantize


                                   Chord


                                                                 Magnification of small signal
         Lower amplitude




                                                                    PAM sample




                            Figure 28: Logarithmic Quantization, another View


         Figure 28 gives another view (as opposed to Figure 25) of a logarithmic quantizer process.
         The magnification of a low-amplitude region of the signal shows how sampling levels are
         close together, compared to the same low-amplitude signal quantized by linear encoding
         (see Figure 27). Smaller quantizing steps for low-amplitude signals allows a better signal-
         to-noise ratio, which amounts to better fidelity, when sampling voice signals.


Page 22 of 53                                                            /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm

Weitere ähnliche Inhalte

Was ist angesagt?

Delta modulation
Delta modulationDelta modulation
Delta modulationHanu Kavi
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGADr. Mohieddin Moradi
 
A_law_and_Microlaw_companding
A_law_and_Microlaw_compandingA_law_and_Microlaw_companding
A_law_and_Microlaw_compandingAkshay Sharma
 
Differential pulse code modulation
Differential pulse code modulationDifferential pulse code modulation
Differential pulse code modulationRamraj Bhadu
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulationUmang Gupta
 
Pcm transmitter and receiver
Pcm transmitter and receiverPcm transmitter and receiver
Pcm transmitter and receiverBPrabhaPalani
 
Pulse code modulation and Demodulation
Pulse code modulation and DemodulationPulse code modulation and Demodulation
Pulse code modulation and DemodulationAbdul Razaq
 
47296653 testing-adc
47296653 testing-adc47296653 testing-adc
47296653 testing-adcGururaj B
 
Comm theory matlab project report martin
Comm theory matlab project report martinComm theory matlab project report martin
Comm theory matlab project report martinNchang Martin
 
Lect 11.regenerative repeaters
Lect 11.regenerative repeatersLect 11.regenerative repeaters
Lect 11.regenerative repeatersNebiye Slmn
 
LPC for Speech Recognition
LPC for Speech RecognitionLPC for Speech Recognition
LPC for Speech RecognitionDr. Uday Saikia
 
pulse shaping and equalization
pulse shaping and equalizationpulse shaping and equalization
pulse shaping and equalizationremyard
 

Was ist angesagt? (18)

Adm
AdmAdm
Adm
 
30 CHL PCM PDH SDH BY SKG
30 CHL PCM PDH SDH BY SKG30 CHL PCM PDH SDH BY SKG
30 CHL PCM PDH SDH BY SKG
 
Delta modulation
Delta modulationDelta modulation
Delta modulation
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGA
 
A_law_and_Microlaw_companding
A_law_and_Microlaw_compandingA_law_and_Microlaw_companding
A_law_and_Microlaw_companding
 
Presentation ct
Presentation ctPresentation ct
Presentation ct
 
Differential pulse code modulation
Differential pulse code modulationDifferential pulse code modulation
Differential pulse code modulation
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulation
 
Pcm transmitter and receiver
Pcm transmitter and receiverPcm transmitter and receiver
Pcm transmitter and receiver
 
NI Presenation Delta
NI Presenation DeltaNI Presenation Delta
NI Presenation Delta
 
Pulse code modulation and Demodulation
Pulse code modulation and DemodulationPulse code modulation and Demodulation
Pulse code modulation and Demodulation
 
47296653 testing-adc
47296653 testing-adc47296653 testing-adc
47296653 testing-adc
 
Comm theory matlab project report martin
Comm theory matlab project report martinComm theory matlab project report martin
Comm theory matlab project report martin
 
Digital communication unit II
Digital communication unit IIDigital communication unit II
Digital communication unit II
 
Lect 11.regenerative repeaters
Lect 11.regenerative repeatersLect 11.regenerative repeaters
Lect 11.regenerative repeaters
 
LPC for Speech Recognition
LPC for Speech RecognitionLPC for Speech Recognition
LPC for Speech Recognition
 
pulse shaping and equalization
pulse shaping and equalizationpulse shaping and equalization
pulse shaping and equalization
 
7 227 2005
7 227 20057 227 2005
7 227 2005
 

Andere mochten auch

Analysis of image compression algorithms using wavelet transform with gui in ...
Analysis of image compression algorithms using wavelet transform with gui in ...Analysis of image compression algorithms using wavelet transform with gui in ...
Analysis of image compression algorithms using wavelet transform with gui in ...eSAT Publishing House
 
Design of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABDesign of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABIJEEE
 
ADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMODADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMODaniruddh Tyagi
 
EBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFFEBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFFaniruddh Tyagi
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4aniruddh Tyagi
 
Securable image compression using spiht algorithm
Securable image compression using spiht algorithmSecurable image compression using spiht algorithm
Securable image compression using spiht algorithmIAEME Publication
 
Discrete cosine transform
Discrete cosine transformDiscrete cosine transform
Discrete cosine transformaniruddh Tyagi
 
BUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTERBUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTERaniruddh Tyagi
 

Andere mochten auch (10)

Analysis of image compression algorithms using wavelet transform with gui in ...
Analysis of image compression algorithms using wavelet transform with gui in ...Analysis of image compression algorithms using wavelet transform with gui in ...
Analysis of image compression algorithms using wavelet transform with gui in ...
 
Design of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABDesign of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLAB
 
ADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMODADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMOD
 
EBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFFEBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFF
 
digital_set_top_box2
digital_set_top_box2digital_set_top_box2
digital_set_top_box2
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4
 
DCT
DCTDCT
DCT
 
Securable image compression using spiht algorithm
Securable image compression using spiht algorithmSecurable image compression using spiht algorithm
Securable image compression using spiht algorithm
 
Discrete cosine transform
Discrete cosine transformDiscrete cosine transform
Discrete cosine transform
 
BUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTERBUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTER
 

Ähnlich wie quantization_PCM

Pulse code modulation (PCM)
Pulse code modulation (PCM)Pulse code modulation (PCM)
Pulse code modulation (PCM)Mahima Shastri
 
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdfpcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdfNahshonMObiri
 
Te 4 pulse_modulation
Te 4 pulse_modulationTe 4 pulse_modulation
Te 4 pulse_modulationShohan Ean
 
Digital-transmission.pptx
Digital-transmission.pptxDigital-transmission.pptx
Digital-transmission.pptxDennisA6
 
_Pulse-Modulation-Techniqnes.pdf
_Pulse-Modulation-Techniqnes.pdf_Pulse-Modulation-Techniqnes.pdf
_Pulse-Modulation-Techniqnes.pdfSoyallRobi
 
Pulse code modulation and Quantization
Pulse code modulation and QuantizationPulse code modulation and Quantization
Pulse code modulation and QuantizationMuhamamd Awaissaleem
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulationNaveen Sihag
 
TeleCom Lecture 07.ppt
TeleCom Lecture 07.pptTeleCom Lecture 07.ppt
TeleCom Lecture 07.pptRiyaBatool
 
CE_PCM.ppt
CE_PCM.pptCE_PCM.ppt
CE_PCM.ppttasmitha
 
PCM and delta modulation.ppt
PCM and delta modulation.pptPCM and delta modulation.ppt
PCM and delta modulation.ppt1637ARUNIMADAS
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleNeha Kurale
 
Fpga implementation of soft decision low power convolutional decoder using vi...
Fpga implementation of soft decision low power convolutional decoder using vi...Fpga implementation of soft decision low power convolutional decoder using vi...
Fpga implementation of soft decision low power convolutional decoder using vi...ecejntuk
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversionwajahat Gul
 
4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppttest22333
 

Ähnlich wie quantization_PCM (20)

Pulse code modulation (PCM)
Pulse code modulation (PCM)Pulse code modulation (PCM)
Pulse code modulation (PCM)
 
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdfpcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
 
Te 4 pulse_modulation
Te 4 pulse_modulationTe 4 pulse_modulation
Te 4 pulse_modulation
 
Digital-transmission.pptx
Digital-transmission.pptxDigital-transmission.pptx
Digital-transmission.pptx
 
_Pulse-Modulation-Techniqnes.pdf
_Pulse-Modulation-Techniqnes.pdf_Pulse-Modulation-Techniqnes.pdf
_Pulse-Modulation-Techniqnes.pdf
 
Pulse code modulation and Quantization
Pulse code modulation and QuantizationPulse code modulation and Quantization
Pulse code modulation and Quantization
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 
Lecture 09
Lecture 09Lecture 09
Lecture 09
 
TeleCom Lecture 07.ppt
TeleCom Lecture 07.pptTeleCom Lecture 07.ppt
TeleCom Lecture 07.ppt
 
Analog_to_Digital.pdf
Analog_to_Digital.pdfAnalog_to_Digital.pdf
Analog_to_Digital.pdf
 
CE_PCM.ppt
CE_PCM.pptCE_PCM.ppt
CE_PCM.ppt
 
Pulse code mod
Pulse code modPulse code mod
Pulse code mod
 
PCM and delta modulation.ppt
PCM and delta modulation.pptPCM and delta modulation.ppt
PCM and delta modulation.ppt
 
Ch4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kuraleCh4 1 Data communication and networking by neha g. kurale
Ch4 1 Data communication and networking by neha g. kurale
 
Fpga implementation of soft decision low power convolutional decoder using vi...
Fpga implementation of soft decision low power convolutional decoder using vi...Fpga implementation of soft decision low power convolutional decoder using vi...
Fpga implementation of soft decision low power convolutional decoder using vi...
 
Analog-to Digital Conversion
Analog-to Digital ConversionAnalog-to Digital Conversion
Analog-to Digital Conversion
 
1 PCM & Encoding
1  PCM & Encoding1  PCM & Encoding
1 PCM & Encoding
 
Unit 3.pptx
Unit 3.pptxUnit 3.pptx
Unit 3.pptx
 
4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt4. Analog to digital conversation (1).ppt
4. Analog to digital conversation (1).ppt
 
ch4_2_v1.ppt
ch4_2_v1.pptch4_2_v1.ppt
ch4_2_v1.ppt
 

Mehr von aniruddh Tyagi

Mehr von aniruddh Tyagi (20)

whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4
 
BUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTERBUC BLOCK UP CONVERTER
BUC BLOCK UP CONVERTER
 
digital_set_top_box2
digital_set_top_box2digital_set_top_box2
digital_set_top_box2
 
Discrete cosine transform
Discrete cosine transformDiscrete cosine transform
Discrete cosine transform
 
DCT
DCTDCT
DCT
 
EBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFFEBU_DVB_S2 READY TO LIFT OFF
EBU_DVB_S2 READY TO LIFT OFF
 
ADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMODADVANCED DVB-C,DVB-S STB DEMOD
ADVANCED DVB-C,DVB-S STB DEMOD
 
DVB_Arch
DVB_ArchDVB_Arch
DVB_Arch
 
haffman coding DCT transform
haffman coding DCT transformhaffman coding DCT transform
haffman coding DCT transform
 
Classification
ClassificationClassification
Classification
 
tyagi 's doc
tyagi 's doctyagi 's doc
tyagi 's doc
 
quantization_PCM
quantization_PCMquantization_PCM
quantization_PCM
 
ECMG & EMMG protocol
ECMG & EMMG protocolECMG & EMMG protocol
ECMG & EMMG protocol
 
7015567A
7015567A7015567A
7015567A
 
Basic of BISS
Basic of BISSBasic of BISS
Basic of BISS
 
euler theorm
euler theormeuler theorm
euler theorm
 
fundamentals_satellite_communication_part_1
fundamentals_satellite_communication_part_1fundamentals_satellite_communication_part_1
fundamentals_satellite_communication_part_1
 
quantization
quantizationquantization
quantization
 
art_sklar7_reed-solomon
art_sklar7_reed-solomonart_sklar7_reed-solomon
art_sklar7_reed-solomon
 
DVBSimulcrypt2
DVBSimulcrypt2DVBSimulcrypt2
DVBSimulcrypt2
 

Kürzlich hochgeladen

Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 

Kürzlich hochgeladen (20)

Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 

quantization_PCM

  • 1. K. L. Poland, Revision F T1 - Basic Transmission Theory 7.0 Quantization and Pulse Code Modulation If eight bits are allowed for the PCM sample, this gives a total of 256 possible values. PCM assigns these 256 possible values as 127 positive and 127 negative encoding levels, plus the zero-amplitude level. (PCM assigns two samples to the zero level.) These levels are divided up into eight bands called chords. Within each chord is sixteen steps. Figure 23 shows the chord/step structure for a linear encoding scheme. 127 = 1 000 0000 112 = 1 000 1111 107 = 10010100 96 = 1 0011111 80 = 1 010 1111 16 72 = 10111001 8 Chords Steps 64 = 1 011 1111 48 = 1 100 1111 32 = 1 101 1111 16 = 1 110 1111 19 = 11101100 0 = 1 111 1111 PAM PCM Polarity Chord Step Samples Values Figure 23: PCM Quantization levels - Chords and Steps Three examples of PAM samples are shown in Figure 23. Each PAM sample’s peak falls within a specific chord and step, giving it a numerical value. This value translates into a binary code which becomes the corresponding PCM value. Figure 23 only shows the positive-value PCM values, for simplicity. Figure 24 shows the conversion function for a linear quantization process. As a voice signal sample increases in amplitude the quantization levels increase uniformly. The 127 quantization levels are spread evenly over the voice signal’s dynamic range. This gives loud voice signals the same degree of resolution (same step size) as soft voice signals. Encoding an analog signal in this manner, while conceptually simplistic, does not give optimized fidelity in the reconstruction of human voice. /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm Page 17 of 53
  • 2. T1 - Basic Transmission Theory K. L. Poland, Revision F Voice signal amplitude Quantization value Figure 24: Linear Quantization, Signal Amplitude versus Quantization Value Notice this transfer function gives two values for a zero-amplitude signal. In PCM, there is a “positive zero” and a “negative zero”. 7.1 Companding Dividing the amplitude of the voice signal up into equal positive and negative steps is not an efficient way to encode voice into PCM. Figure 23 shows PCM chords and steps as uniform increments (such as would be created by the transfer function depicted in Figure 24). This does not take advantage of a natural property of human voice: voices create low- amplitude signals most of the time (people seldom shout on the telephone). That is, most of the energy in human voice is concentrated in the lower end of voice’s dynamic range. To create the highest-fidelity voice reproduction from PCM, the quantization process must take into account this fact that most voice signals are typically of lower amplitude. To do this the vocoder adjusts the chords and steps so that most of them are in the low-amplitude Page 18 of 53 /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm
  • 3. K. L. Poland, Revision F T1 - Basic Transmission Theory end of the total encoding range. In this scheme, all step sizes are not equal. Step sizes are smaller for lower-amplitude signals. Quantization levels distributed according to a logarithmic, instead of linear, function gives finer resolution, or smaller quantization steps, at lower signal amplitudes. Therefore, higher-fidelity reproduction of voice is achieved. Figure 25 shows a conversion function for a logarithmic quantization process. A vocoder that places most of the quantization steps at lower amplitudes by using a non- linear function, such as a logarithm, is said to compress voice upon encoding, then expand the PCM samples to re-create an analog voice signal. Such a vocoder is hence called a compander (from compress and expand). Voice signal amplitude Quantization value Figure 25: Logarithmic Quantization, Signal Amplitude versus Quantization Value In reality, voice quantization does not exactly follow the logarithmic curve step for step, as Figure 25 appears to indicate. PCM in North America uses a logarithmic function called µ-law. The encoding function only approximates a logarithmic curve, as steps within a chord are all the same size, and therefore linear. The steps change in size only from chord /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm Page 19 of 53
  • 4. T1 - Basic Transmission Theory K. L. Poland, Revision F to chord. The chords form linear segments that approximate the µ-law logarithmic curve. The chords form a piece-wise linear approximation of the logarithmic curve. 7.2 Quantization Error Figure 26 shows three PAM samples that have their amplitudes measured and given PCM values. If a PAM sample’s level lies between two steps, it is assigned the value of the highest step it crosses. A PAM sample that just reaches this step would be given the same quantization value. Therefore, all PAM samples are treated as if they fall exactly on a step level. PAM samples with amplitudes that are not close to each other (e.g., B & C in Figure 26) can be given the same quantization value. Even though the PAM samples represent different amplitudes of the original signal, they receive the same PCM value. This causes an impreciseness in the voice encoding process called quantization error. Figure 26 shows how the quantization process can alter a voice signal. Samples A and B are closest in amplitude, with C being much lower. However, due to how the samples fall into the quantization levels, the sample steps created from the PCM words have B and C at the same amplitude. Obviously, the reconstructed waveform will be different from the original waveform. Sample A Sample B Sample C one step Quantization level steps Encode: PAM to PCM Decode: PCM to Step Figure 26: Quantization Error: Recovered Step levels do not match PAM levels 7.2.1 Fidelity: Maintaining a high Signal-to-Noise ratio Quantization error is another reason for using compressed encoding for digitizing a voice signal. Compressed encoding allows a higher signal-to-quantization-noise ratio (SNQR) than linear encoding. This ratio defined as S SN Q R = 20log 〈 -------〉 NQ Page 20 of 53 /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm
  • 5. K. L. Poland, Revision F T1 - Basic Transmission Theory where S is the voice signal level and NQ is noise due to the quantization error. Clearly, keeping the quantization error small is key to keeping a high SNQR. As signal amplitude gets smaller, NQ must get smaller to keep SNQR from dropping. Compression accomplishes this by forcing quantization error magnitude to decrease with lower amplitudes. Step Higher amplitude Waveform to quantize Chord Magnification of small signal Lower amplitude PAM sample Figure 27: Linear Quantization, another View Without increasing the overall number of quantization samples, it is desirable to increase the SNQR for small-amplitude signals. This is what logarithmic quantization accomplishes. Figure 27 gives another view (as opposed to Figure 24) of the scale for a linear quantizer. The quantization levels are shown to the left for the positive range of a voice waveform. This is only the positive half of the quantization scale. There is a mirror image scale for /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm Page 21 of 53
  • 6. T1 - Basic Transmission Theory K. L. Poland, Revision F the negative half of the voice signal (not shown here for simplicity). The magnification of a small-amplitude portion of the voice signal shows the relative coarseness of the sampling function. Few sample levels for a small signal corresponds to a low-fidelity (low SNQR) encoding technique. Step Higher amplitude Waveform to quantize Chord Magnification of small signal Lower amplitude PAM sample Figure 28: Logarithmic Quantization, another View Figure 28 gives another view (as opposed to Figure 25) of a logarithmic quantizer process. The magnification of a low-amplitude region of the signal shows how sampling levels are close together, compared to the same low-amplitude signal quantized by linear encoding (see Figure 27). Smaller quantizing steps for low-amplitude signals allows a better signal- to-noise ratio, which amounts to better fidelity, when sampling voice signals. Page 22 of 53 /home/tellabg-2/ken/T1/T1_intro/part_3_portrait.fm