Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Efficient Voice Coding: Sampling & Delta Modulation in Digital Voice Processing, Lab Reports of Electrical and Electronics Engineering

An introduction to digital voice processing, focusing on digital sampling theory and delta modulation. The concept of pcm (pulse code modulation) and its limitations, as well as the advantages of delta modulation for voice coding. Students will learn about the relationship between sampling rate, bit resolution, and overall bit rate, and will be encouraged to experiment with different combinations to find the minimal rate for intelligible voice transmission. The document also touches upon the importance of voice digitization for voice recognition and synthesis equipment.

Typology: Lab Reports

Pre 2010

Uploaded on 08/09/2009

koofers-user-d1j
koofers-user-d1j 🇺🇸

10 documents

1 / 18

Toggle sidebar

Related documents


Partial preview of the text

Download Efficient Voice Coding: Sampling & Delta Modulation in Digital Voice Processing and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity! 1 Rensselaer Polytechnic Institute ECSE-4760 Computer Applications Laboratory DIGITAL VOICE PROCESSING EXPERIMENT Number of Sessions – 4 INTRODUCTION The idea of converting the human voice to a digital format traces back to the 1940's. One of the original motivations was message security. It was thought that the digitized form was so odd and the equipment so expensive that eavesdroppers would pose little threat. Digital techniques were not to appear in more practical ways until the integrated circuit era. Today, digital voice processing is an attractive alternative to analog processing for many reasons. 1) The digital format allows long distance transmission through a chain of repeaters. The noise introduced by such a chain increases much more slowly in a digital chain than in an analog one. Carrying telephone calls through light fibers, for instance, is difficult over any great distance without digital transmission. 2) Digital processing and switching have steadily dropped in cost as the price of integrated circuits has dropped. The filters and other circuits needed for analog transmission remain relatively expensive. 3) Message security is much easier to maintain with digital transmission because it is easy to encrypt bit streams. New services such as car telephones that use the open radio medium have a particular need for this protection. 4) Different digital messages may be multiplexed onto a single transmission line and separated at the receiving end without crosstalk between them. Voice, data, and video may easily be combined on the same line. The heart of a digital voice processor is a conversion of the analog signal from a microphone or other input into digital format. Some processors convert the signal into fewer bits per analog sample than others. If two systems both achieve the same quality of conversion, the one with the lower bit rate is likely to be much more complicated and expensive. A practical design is a compromise between quality, bit rate, and cost. The simplest voice converter is the simple PCM (Pulse Code Modulation) scheme, which just maps the sample amplitude to a binary code (a 12 bit code in our PC). The code is transmitted and reconverted to analog format at the receiver end. The first part of the Digital Voice Processing experiment is a study of digital sampling. It shows voice coding as an application of PCM A/D and D/A conversion and it explores some of the problems that arise here. It is assumed that you have already performed the lab dealing with A/D and D/A converters. Of interest is the time spent on conversion and the total time used by the computer program, since these control the maximum rate of conversion which in turn sets an upper limit on voice quality. The effect of coarse quantization is also studied. The second part of the experiment explores the properties of the voice signal. The human voice contains certain periodic and non-periodic segments that alternate and it has a definite peak-to-rms 2 ratio (known as the crest factor). These and other properties may be used to design voice coders that are more efficient than simple PCM. The third part deals with one of these alternative voice coders called delta modulation. This scheme digitizes the difference between successive voice samples, rather than the sample values themselves. This approach requires fewer bits/second than PCM for the same voice quality. PART I - DIGITAL SAMPLING THEORY Figure 1 shows the basic steps in the digital transmission of analog signals by PCM. You should already be familiar with the operation of the A/D and D/A converters in the PC. Sampler MediumInput Output 1001110101. . . A/D D/A FIGURE 1. Basic digital system, including a sampler, A/D converter, and D/A converter. The output assumes that the D/A contains a sample and hold circuit. Two factors affect the quality of the transmission in Figure 1: 1. Discreteness in amplitude. The number of bits that describe each sample is called N. The lab will demonstrate the effect of quantization on an intelligible signal. 2. Discreteness in time. The rate at which the signal is sampled is R samples per second. R must be greater than twice the maximum frequency component in the voice signal. Experience has shown that an 8-bit resolution at a sampling rate of 8 kHz will encode good quality voice, a quality similar to that of a good telephone call. It is assumed that the amplitude of the analog voice is well matched to the A/D amplitude range. The overall bit rate here is C = (8 bits) × (8 kHz) = 64000 bits/second Lowering the number of bits/sample reduces the voice quality somewhat, and so does lowering the sampling rate at the same bit resolution. Consequently, the overall bit rate, C, is a rough measure of the coding quality. C also specifies the bit rate needed in the transmission medium. Thus C is an important parameter in the voice system design. People who design voice systems are interested in finding the lowest bit rate that gives intelligible output. The cost of transmitting a digital signal through space (as with a telephone) or through time (as with a compact disc) is proportional to the number of bits transmitted. There are several approaches to bit rate reduction. One is to design a more sophisticated digitizer, that uses the properties of speech to reduce the bit rate at a given voice quality level. A simple method that we will explore is delta modulation, which takes advantage of the spectral nature of speech. Because speech is low pass, each sample of it is close in amplitude to the next sample, and serves as a good predictor of the sample. The delta modulator encodes only this small difference, instead of the large sample amplitude. There are other voice coding methods that take advantage of the predictability of the speech signal, notably a method called differential PCM, or DPCM. DPCM is much more efficient than delta modulation, but it is beyond our scope. 5 • BNC to Banana cables, audio cables, BNC – alligator cables or BNC – ! 1 8 ” stereo mini plug • Oscilloscope and Function generator • PC or Sun workstation with PC card • RS 232 9 pin cables – available in the studio if not already attached to the PC FIGURE 5. The experimental setup. Equipment Setup: 1. Connect the RS232 COM1 port on the PC to the EVM DB9 port P2 (DEBUG) and the RS232 COM2 port (or COM5 from the SUN PC USB/RS232 converter) to the EVM DB9 port P1. 2. Attach the function generator output to channel 1 of scope and to bottom (left) audio-in port (P4 LINE IN) on the EVM using a BNC- ! 1 8 ” stereo mini plug cable or BNC-alligator and audio cables. Alternatively, this signal may instead come from the speaker out port on the computer’s soundcard or the microphone preamplifier. Note: on the ! 1 8 ” stereo mini plug, the sleeve is ground, the tip is positive-right channel and the ring is positive-left channel. 3. With another BNC-mini plug cable or audio cable and a BNC-alligator, connect the output top (right) audio port (P6 LINE OUT) on the EVM to channel 2 of the scope. 6 4. (OPTIONAL) Attach speakers or headphones to the P5 Headphone OUT port on the DSP56303 EVM with a stereo audio cable. 5. Connect EVM power cables to the +12 V and Ground of the power supply. 6. Turn Power Supply, Scope, and function generator ON. Getting Started: 1. Go to Cal WebCT page and click on Course Handouts → CAL_Spring, Laboratory Information → download [voicedlt.cld] and [voicedlt.lst]. NOTE: these may have already been downloaded and saved in \CStudio\(New_)CAL_LAB\VOICE\voicedlt.cld. 2. Open the ProComm Plus program. It is found under Start → Programs → Data Terminal. 3. After this opens, go to Options → System Options → Modem Connection. 4. Select direct connect-Com2 (in some machines it may be Com5 that needs to be selected). Com1 is automatically selected as one of the ports but you need two ports opened for two-way communication. 5. Check the box that says Make this connection available to ProComm Plus. 6. Click on the Modem/Connection Properties radio button. 7. Ensure that the Use hardware flow control option is UNCHECKED here and click OK. 8. Click OK to exit the Setup panel. 9. At the bottom of the ProComm screen on the second to last status bar, you will find either 19200 or 9600. This indicates the baud rate. Ensure that this is set to 9600. 10. On the same status bar, on the leftmost corner you may see ADM 3a. Place the cursor on this, click and change this to ANSI BBS. 11. Click on Start → Programs → EVM30xW. (C:\CStudio\DSP56303\EVM30XW\EVM30XW.EXE) 12. This will bring up a four-paneled window. 13. Above the left top panel you will find a red STOP button. Click STOP. 14. From File → Load, load the voicedlt.cld file. (…\VOICE\voicedlt.cld) 15. If you see a little error box that says –vector error–, click OK. You may need to quit EVM30XW, power down the EVM for a few seconds, and go back to Step 11. 16. When the program finishes loading, click the Green Arrow button or on the left bottom panel type ‘GO Start’ and press enter. 17. The information is now being transferred to the EVM and a set of instructions will appear on the Blue ProComm Plus Screen. 18. The demo is now running. The last line of this text should be s - 8 - 48/1 (see Figure 6) to denote that the signal is being processed at Basic Sampling (S mode), 8 bit samples, and at 48kHz. Start the audio source, and you should hear the sound through the speakers/headphones. 19. S indicates the sampling mode, which can be changed to the Delta Modulation mode by hitting the M key. 20. 8 indicates the resolution or the bit samples. 21. 48/1 indicates the sampling frequency. 22. You can change the resolution by typing 1 to 9 and a to g. 23. <Shift>1 to <Shift>9 and A to D will change the sampling frequency. s - 8 - 48/1 Mode Resolution(bits)|Δ Step Size Downsampling S – Sampled 1 – 48 kHz D0 – Delta 0 Step size = 2 – 24 kHz D1 – Delta 1 0.0397 × 2# of bits mV 3 – 16 kHz D2 – Delta 2 4 – 12 kHz D3 – Delta 3 5 – 9.6 kHz … FIGURE 6. Key for status code. Basic Sampling: Basic sampling processes the input signal as if it were doing an analog to digital (A/D) conversion on it at a certain bit resolution and storing that value. The output would then be that same digital value sent out through a digital to analog (D/A) converter. This is simulated by doing a 16 bit A/D 7 conversion on the input signal, masking the low order bits to force the value into the required number of bits, then sending it back out through the D/A converter. Resolutions of 1 to 16 bits can be accomplished. By pressing 1 through 9 and a through g in the ProComm Plus window, the resolution will be changed, 1 - 9 corresponding to 1 - 9 and a - g to 10 - 16. The amount of memory required to hold one second of a sound sample using this algorithm is calculated by multiplying the resolution (in bits) by the sampling rate in kHz. This gives a result in kilobits per second. Divide this result by 8 to get kbytes/sec. There are three adjustable parameters used by this program. They are the sampling frequency (48 kHz maximum), the number of bits (16 bits maximum) to be used by the A/D and D/A converters, and the mode of operation: basic sampling or delta modulation. The default values are 48 kHz and 8 bits. Type go start in to execute the loaded program (VOICEDLT.CLD). The basic mode is used in all steps 1 through 7 below and the delta modulator is used in Part III. When executing, data is passed through the A/D converter, with the parameters specified, and is subsequently passed through the D/A converter. The status line s - 8 - 48/1 appears on the terminal. This line tells you the current sample rate and bit resolution. The s identifies the mode of operation. The last fraction (decimal 48/1) is the sample frequency. The last digit (1) is the divide-by value for the sample rate. The signal was originally sampled at 48,000 samples per second. To get the output sample rate, divide 48,000 by the number that appears. The default value of 1 yields an output rate of 48,000 samples per second. To change the output sample rate, type the corresponding keyboard character d where d is the divide-by ratio in decimal. The following table shows the correspondence between d and the sample frequency. Keystroke {with <Shift>} d Sample frequency 1 {!} 1 48,000 Hz 2 {@} 2 24,000 Hz 3 {#} 3 16,000 Hz 4 {$} 4 12,000 Hz 5 {%} 5 9,600 Hz 6 {^} 6 8,000 Hz 7 {&} 7 6,857 Hz 8 (*) 8 6,000 Hz 9 ( ( ) 9 5,333 Hz A 10 4,800 Hz B 16 3,000 Hz C 24 2,000 Hz D 32 1,500 Hz The value $FFFF00 is the hexadecimal bit mask. Each hex digit represents 4 bits of precision. To change the output bit resolution, type the corresponding keyboard character. The following table shows the correspondence between the keystroke and the number of bits of resolution. Keystroke hhhhhh Resolution Delta modulator Step size g ffff00 16 bits (Do not use) f fffe00 15 bits 1.13 V e fffc00 14 bits 0.56 V d fff800 13 bits 0.28 V c fff000 12 bits 0.14 V b ffe000 11 bits 75.0 mV a ffc000 10 bits 40.7 mV 9 ff8000 9 bits 20.3 mV 8 ff0000 8 bits 10.2 mV 7 fe0000 7 bits 5.08 mV 6 fc0000 6 bits 2.54 mV 5 f80000 5 bits 1.27 mV 10 NOTE: The files may be too large to be read into PC-MATLAB directly. They have been segmented into files with 2000 words each, and may be read into MATLAB using the load filename command. There are 8 files corresponding to each sentence, indexed a through h. For example, samp.one is broken up into files file1a.dat, file1b.dat, … file1h.dat. All files, the original complete sentences, as well as the segments, are on the development PC, in the directory C:\CAL_LAB\SPEECH and on the RCS file system in /afs/rpi.edu/dept/ecse/cal/speech. To load a file on the RCS workstations, you may need to use the full pathname, e.g. load /dept/ecse/cal/speech/samp1.dat. Use plot(samp1(1:500)) to only display the first 500 points of the vector. Any portion of the vector may be displayed this way. Now you can manipulate and analyze the waveform with different MATLAB functions. A suggested procedure is as follows: 1 Determine what parts of the files are voiced or unvoiced. If they are voiced, measure the pitch period. (Typical pitch periods are 5-10 ms). 2 Find the peak-to-rms ratio for the waveforms. Compare what you find to the peak-to-rms ratio for a simple waveform like a sine wave. (Speech ratios can be very high, as large as 10; however, speech peaks may be truncated without much audible distortion). 3 Try to identify consonants as opposed to vowels in your waveforms. Trace any changes in the short-term average energy of the consonants. 4 Determine the Fourier transform of some sections of the speech waveform, using the fft function in MATLAB. Transforms of voiced segments should show a line spectrum, at least roughly. Example Calculations: Sample period = ! 1 8 kHz = 0.125 ms ; Signal Period = 60 samples; Pitch Period = 60×0.125 ms = 7.5 ms. Signal Period can be found when you zoom into a MATLAB plot of a sample – samp1. The distance between the peaks will be the signal period – usually between 50 and 75 depending on the words. Average peak-to-rms ratio for say samples between 8000 and 10000 – MATLAB code load sample1.dat y=abs(sample1(8000:10000)); rms=sqrt((sample1(8000:10000)*sample1(8000:10000)’)/size(sample1(8000:10000),2)); crestfact=max(y)/rms; You may substitute the average of a few peaks in the range instead of the single highest peak max(y) FFT – MATLAB code z=sample1(8000:10000); f=fft(z); r=real(fft(z)); i=imag(fft(z)); subplot(2,1,1), plot(r), subplot(2,1,2), plot(i); plot(abs(f)); PART III – DELTA MODULATION THEORY Because of the low pass spectral nature of speech, the difference between successive samples is small compared to the signal's peak amplitude. It is therefore more economical to digitize the difference between successive samples, rather than their amplitudes. Because the difference is much smaller than the amplitudes, fewer bits are needed for a given size of quantization error. At the receiving end, each difference is added to the previous output to form the new, updated output value. The third part of the voice processing lab will study the simplest of the differential voice digitizers, the delta modulator. 11 Before looking into delta modulation, let us summarize what we have learned about the different kinds of voice digitizers. Simple PCM is the simplest digitizer and it produces the highest overall output bit rate; it requires perhaps 40 to 60 kb/sec for good quality voice. Schemes that use the differential idea need 16 to 40 kb/sec for the same quality, depending on how subtly they make use of the correlation among the speech samples. Really low rate speech digitizers must obtain and use the speech sound parameters that we discussed in the previous section. These schemes range in rate down to 1 kb/sec, although their voice quality is not very good below 4 kb/sec. Delta modulation is the simplest of the differential schemes. It is illustrated in Figure 7. An input analog sample is compared to the sum of all the previous incremental steps, which have been accumulated in the box labeled “ADD”. In the most basic delta modulator, the difference between the sample and the sum is 1-bit quantized. If the difference is positive, the quantizer henceforth represents it as +V and the digital output is ‘1’; otherwise, the representation is -V and the output is ‘0’. In effect, the quantizer extracts the sign of the difference. Successive values of +V and -V accumulate in the “ADD” box. The delta modulation receiver is simply an “ADD” box that accumulates the +V and -V steps. Each channel bit either increments or decrements this box. The approximation to the analog signal is a series of up and down stairsteps. Figure 8 shows the signal approximation when the input is a step function. At first the delta modulation output climbs up a flight of stairs. Note that in the steady state the output oscillates in a limit cycle about the desired value. This is because the 1-bit quantizer never gives a zero output, and the modulator output must increase or decrease each time. If this oscillation were large (i.e., the increment size is too large) the output would be a poor representation of the input. This puts a limit on how large the increment size may be. On the other hand, if the increment is too small, the approximation will be slow to follow the step change. Voice engineers call this a slope overload. The best increment size V must be the result of a tradeoff between slope overload noise and quantization noise from the coarseness of the steps. Transmission MediumInput ! + - +v -v 1-bit Quantizer ADD Synch ADD SynchX Output FIGURE 7. A block diagram of a delta modulator. The "output" and the signal at "X" will be the same in the absence of errors in the medium Figure 9 shows the circuit operation for a sine wave input. An important thing to note is that when the sinusoid reaches its maximum slope, the approximation has the most trouble keeping up. The maximum rate at which the output may change is V/T, where T is the time between samples. For the output to follow the analog input accurately, V/T must be comparable to the maximum slope of the sine wave. To make this happen, we may increase V or decrease T. 12 Volts time0 Step Input Output time0 1 FIGURE 8. The output bit stream response of a 1-bit delta modulator to a step function input. Bit '1' means 1-bit quantizer output +V and bit '0' means -V Bits 1 0 time Volts time FIGURE 9. The response of a 1-bit delta modulator to a sine wave, demonstrating the phenomenon of slope overload. Typically, a delta modulator needs a T much smaller than that specified by the Nyquist rule; that is, it must sample much faster than the Nyquist rate. But the basic circuit produces only 1 bit per sample, so that the overall bit rate is quite low. One purpose of this lab is to try out several sample rates to track an audio signal. At each sampling rate the optimal increment size should be found by trying different values and comparing the slope overload and the quantization noise. If the increment size is suitable at each rate, you will find that the audio quality improves with the sampling rate. 15 The program implements five types of delta modulators: 1-bit (D0), 1-bit deadband (D1), 2-bit, and 2-bit deadband (D2). Currently a 2-bit without a deadband is not supported but D3 implements a 3-bit deadband modulator. A 5th mode (D4) is in progress to implement a fully adjustable delta modulator where A, B, C, D (as defined in Figure 12) and the sample frequency can be arbitrarily selected. The input signal must not be greater than 2.6 V due to the limitations of the A/D converter. The user can then change the parameters of the modulator for reconstruction of the input. Delta modulation uses a bit stream to specify a change to the signal rather than recording the actual signal. By doing this, the amount of memory required to hold a sample is significantly reduced. This program uses five different algorithms to accomplish five versions of delta modulation. The first algorithm, denoted D0, uses only one bit per sample, and therefore can only represent two states. One state indicates that the signal is greater now than at the previous sample, the other state indicates that it is less now. If it is greater, the signal increases by a predetermined amount (step size). If it is less, the signal decreases by the same step size (see Figure 13a). The step size is shown in the ProComm Plus window in the place where the resolution was for Basic Sampling. The step size is ! 0.0397" 2 nmvolts. On a steady signal, this algorithm will cause the output to oscillate at the sampling frequency, with an amplitude of the step size. The second algorithm, D1, uses one bit per sample and adds a third state to D0’s algorithm. This third state is a ‘dead zone’ that allows the output signal to be constant when a constant input is supplied (see Figure 13b). The dead zone is determined by a threshold value that is half the step size. When the difference between adjacent samples is smaller than this threshold, there is no change in the output. When the magnitude of the difference is greater than the threshold, the output changes according to the sign of the difference and the step size given in the equation for D0. An unimplemented algorithm would use two bits per sample, and adds two more states to D0’s algorithm (see Figure 12, bottom right). These additional two states allow for larger changes in the output signal by enabling large steps in the output as well as small steps to track an input signal better. The third algorithm implemented, D2, uses two bits per sample, and adds a dead zone to the previous algorithm. This allows two step sizes as well as a zero output for a total of 5 states. The forth implemented algorithm, D3, is a 3-bit deadband modulator that can be used for performance comparison to the other three. The last algorithm, D4, is a generic 2-bit delta modulator that permits the direct and independent setting of the A, B, C and D parameters. This is incomplete and still under development. NOTE: The codec used with the DSP blocks DC and has a fairly high order LPF to smooth the reconstructed signal from the samples. In effect there is a BPF from about 50 Hz to 50 kHz that is filtering all signals through the DSP. You should be able to verify this with output signal data from low and high frequency waveforms. To observe the DC blocking, input a 100 Hz square wave and watch the droop on the output signal using the S mode or any of the Dx modes. The output LPF smoothes the signal from sample to sample, with some ringing, sometimes making individual samples hard to see. The system also has an overall gain just slightly less than unity (about 0.94) that should be considered when making all measurements. Delta Modulation Guidelines: 1. For the output of the function generator use a square or triangle wave. Voltages exceeding 2.6 V (P-P) will be clipped by the converter. Aliasing will start when the input frequency is more than half the sampling frequency. 16 2. Start with delta mode D0, choose several sampling frequencies for observing details on input and output signals, capture these pictures, and mark sample period and step size. Are they true to what you might expect? Explain. 3. Keep the mode the same but vary the step size and frequency. Observe and note the results. 4. Do the same for D1, D2 and D3 modes. 5. Obtain the settings for the best approximation of the input signal, i.e. what step size and sampling frequency outputs the best representation of the input signal. Using the Program: Once the program is running (following the steps on pages 6 and 7), the mode, sampling rate, and resolution/step size are changed as follows. Mode: Press the M key to cycle through the 6 modes - Basic Sampling (S), Delta 0 (D0), Delta 1 (D1), Delta 2 (D2), Delta 3 (D3), Delta 4 (D4). Sampling Rate: Hold down the <Shift> key and press 1 – 9 or A - D for sample frequencies of 48 kHz to 1.5 kHz. Refer to the table on page 7. Resolution/stepsize: Press 1 – 9 or a – g for 1 – 9 bits and 10 – 16 bits. The values of the A, B, C and D parameters may be adjusted by following instructions on the terminal if they are adjustable. The selected mode will determine which parameters are relevant and available for adjustment and the current version of the software will explain what can be done. For modes D0 – D3 the step size is B as shown in Figure 13. For D1, D = B/2 as in Figure 13b. For D2, D = 9B/14, C = 3B/14 and A = 2B/7 as in Figure 13c. Again, ideally the program would be able to record about 5 seconds of audio at maximum resolution and then permit repeated playing back of the clip using different sample frequencies, step sizes and deadband thresholds, allowing qualitative comparison to a fixed standard signal. As before, use an audio clip (preferably just plain talking initially) off a CD as an input signal that can be replayed over and over. Once the program is started, it runs continuously, sampling the input signal and reconstructing the output based on the current mode and parameter settings. B B D B DC A a. Delta 0 b. Delta 1 c. Delta 2 d. Delta 3 FIGURE 13. Three Delta Modulator voltage input/output functions. KNOWN ISSUES: Using 16 bits for the step size in the delta modulators should be avoided since it does not work correctly in all modes. In general the larger step sizes are less than what the formula predicts due to slew rate and other hardware limitations. Occasionally the reconstruction will jump up and down on the y-axis and produce smaller steps than should be allowed. This can usually be fixed by choosing a different value for the step size and then going back to the original value, repeating if necessary. Here is a suggested procedure: 1. 1-bit delta modulation a) Set up the 1-bit quantizer and verify that it works properly by observing the output on the oscilloscope for triangle and square wave inputs (1.25 volt amplitude; 2.5 volt p-p). Verify the B 17 sampling rate and the increment size V and explain how you did this. This signal should bypass the amplifier and LPF and go directly to the DSP input. b) Vary the input sinusoid frequency from 0 to 24 kHz for several increment sizes and note the effect on the output. Find the highest frequency that the modulator will track for each increment size. Compare the ratio V/T to the theoretical maximum slope of this sine wave. Make sketches at several frequencies and discuss what is occurring. 2. The deadband modulator In this variation, the quantizer puts out the three level output (-V, 0, +V) instead of -V and +V. a) Set up this scheme and try it out on a sine wave. Note that there is a second parameter hidden in the definition, namely the width of the quantizer input range over which the output is 0; this is the deadband. b) What are the advantages and disadvantages of the deadband modulator? 3. 2-bit delta modulation (with deadband) a) Set up the 2-bit quantizer configuration and verify the sampling rate and the quantizer input- output characteristic. b) Find and record sets of parameters A, B, C and D (set B and determine the corresponding values of A, C & D) that give the best reconstruction of sinusoids of 50 Hz, 100 Hz and 200 Hz at input levels 0.3 and 1.2 Volts. Explain the effect on the output of changing one parameter while holding the others constant, in varying degrees and combinations. Explain any oscillations that you observe at the peaks of the waveforms. 4. Compare the advantages and disadvantages of 1-bit versus 2-bit delta modulators. Compare delta modulation to straight PCM at the same overall bit rate. In comparing these three, think about which has the highest audio quality and which is the simplest to implement. 5. Assume that a signal sample is random and is equally likely to fall anywhere in the ±10 Volt range. Derive the relationship between the quantization noise and the bits per sample in a simple PCM digitizer. APPENDIX Signal Sources on the Suns and Sun PCs The workstations can be used as signal sources for this lab. The CD drives can be used with audio CDs to generate voice & music signals and the NCH Tone Generator program under Start → Programs → Tone Generator can be used to create sine, square, triangle, sawtooth, impulse, and white noise signals. Sun Audio Jacks Sun PC card Audio Jacks Microphone purple Ω Microphone red Ω Headphones black ⊃ Headphones black ⊃ Line-in black ← Line-in purple ← Line-out pink → Line-out green →
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved