Question: 2 . 1 Task 1 : Quantization First, you should build a function that reads the sound file helloWorld.wav and saves it along with its
Task : Quantization
First, you should build a function that reads the sound file helloWorld.wav
and saves it along with its sampling frequency. Play the sound file to listen to the quality of the signal before its transmission. Using a uniform quantizer as done in a previous homework, quantize the signal using Ln levels, where n is the number of bits per sample. Your
code should be generic enough to allow any general n to be used. The output of this should be a stream of bits representing the quantized signal. Note that you should be able to transform the bits back to the quantized levels, which you will need in Task Play the quantized sound file for n and note the difference compared to the original one.
Task : Pulse Shaping
Before sending the stream of bits on the channel, each bit needs to be pulse shaped. In this task, we will be using the raised cosine pulse, denoted prct discussed in class. Transform the stream of bits from Task into binary polar signaling, and then shape each symbol with prct via convolution. Note that you need to upsample the stream of bits before convolving it with prct Make sure the energy of prct is normalized.
Plot the first T shaped samples. Make sure the time vector accurately
describes the true time.
Task : AWGN Channel
For a specific SNR value in dB send the shaped symbols into an AWGN
channel by simply adding Gaussian noise. Plot the T noisy shaped samples and compare to the figure from Task Pass the output of the channel through a matched filter to maximize the received SNR Acquire samples from the matched filter output every Tb Note that you need to start sampling after some specific delay. Compare the samples to the optimum threshold to detect the binary data. Compute the empirical BER Pb and compare to the analytical BER derived in class. Convert the detected bits back to their corresponding quantized levels. Play the received signal and compare to the quantized one before transmission as well as the original one.
Finally, redo Task for different SNR values from dB to dB and
plot the BER vs SNR using the semilogy command. On the same curve, plot the analytical BER vs SNR and compare.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
