<< Chapter < Page Chapter >> Page >

Down load the audio files speech.au and music.au . Use your Uquant function to quantize each of these signals to 7, 4, 2 and 1 bits/sample.Listen to the original and quantized signals and answer the following questions:

  • For each signal, describe the change in quality as the number of b/sample is reduced?
  • For each signal, is there a point at which the signal quality deteriorates drastically?At what point (if any) does it become incomprehensible?
  • Which signal's quality deteriorates faster as the number of levels decreases?
  • Do you think 4 b/sample is acceptable for telephone systems? ... 2 b/sample?

Use subplot to plot in the same figure, the four quantized speech signals over theindex range 7201:7400. Generate a similar figure for the music signal, using the same indices.Make sure to use orient tall before printing these out.

Hand in answers to the above questions, and the two Matlab figures.

Error analysis

As we have clearly observed, quantization produces errors in a signal. The most effective methods for analysis of the error turn outto be probabilistic. In order to apply these methods, however, one needs to have a clear understanding of the error signal'sstatistical properties. For example, can we assume that the error signal is white noise? Can we assume that it is uncorrelatedwith the quantized signal? As you will see in this exercise, both of these are good assumptions if the quantization intervalsare small compared with sample-to-sample variations in the signal.

If the original signal is X , and the quantized signal is Y , the error signal is defined by the following:

E = Y - X

Compute the error signal for the quantized speech for 7, 4, 2 and 1 b/sample.

When the spacing, Δ , between quantization levels is sufficiently small,a common statistical model for the error is a uniform distribution from - Δ 2 to Δ 2 . Use the command hist(E,20) to generate 20-bin histograms for each of the four error signals.Use subplot to place the four histograms in the same figure.

Inlab report

  1. Hand in the histogram figure.
  2. How does the number of quantization levels seem to affect the shape of the distribution?
  3. Explain why the error histograms you obtain might not be uniform?

Next we will examine correlation properties of the error signal. First compute and plot an estimate of the autocorrelation functionfor each of the four error signals using the following commands:

[r,lags] = xcorr(E,200,'unbiased');

plot(lags,r)

Now compute and plot an estimate of the cross-correlation function between the quantized speech Y and each error signal E using

[c,lags] = xcorr(E,Y,200,'unbiased');

plot(lags,c)

Inlab report

  1. Hand in the autocorrelation and cross-correlation estimates.
  2. Is the autocorrelation influenced by the number of quantization levels? Do samples in the error signal appear to be correlated with each other?
  3. Does the number of quantization levels influence the cross-correlation?

Signal to noise ratio

One way to measure the quality of a quantized signal is by the Power Signal-to-Noise Ratio (PSNR).This is defined by the ratio of the power in the quantized speech to power in the noise.

Questions & Answers

what is biology
daniel Reply
what is diffusion
Emmanuel Reply
passive process of transport of low-molecular weight material according to its concentration gradient
AI-Robot
what is production?
Catherine
Pathogens and diseases
how did the oxygen help a human being
Achol Reply
how did the nutrition help the plants
Achol Reply
Biology is a branch of Natural science which deals/About living Organism.
Ahmedin Reply
what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
cell is the smallest unit of the humanity biologically
Abraham
what is biology
Victoria Reply
what is biology
Abraham
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask