1 / 51

“Noise Gate”

“Noise Gate”. Texas Instruments University Programme Teaching Materials. Noise Gate. Introduction. Listening to speech when there is a high level of background noise can be fatiguing A “noise gate” only lets through speech, but blocks background noise

Download Presentation

“Noise Gate”

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “Noise Gate” Texas Instruments University Programme Teaching Materials

  2. Noise Gate

  3. Introduction • Listening to speech when there is a high level of background noise can be fatiguing • A “noise gate” only lets through speech, but blocks background noise • It is useful in applications where there is a high level of ambient noise, for example in an aircraft

  4. Objectives • To look at the properties of signals and noise • To introduce autocorrelation • To apply autocorrelation to signals and random noise • To implement a noise gate on the TMS320C5505 USB stick.

  5. Knowledge Required • In order to fully understand the statistical techniques being discussed here, some additional reading is required on the following subjects: • Variance and Standard Deviation • 95% and 99% confidence levels • Details of an article on www.cnx.org by Michael Haag are given in the references section.

  6. Signals and Noise

  7. Signal and Noise • Between audio signals there is background noise. Audio Signal Background Noise

  8. Background Noise • Is generated by random movement of electrons. • Sometimes described as “hiss” and “pop”. • Makes listening difficult. • If the background noise content is reduced, then the signal is easier to hear.

  9. Replace Noise with Silence • Replace noise with silence for easier listening. Signal Silence

  10. Setting a Noise Threshold

  11. Set Simple Noise Thresholds • If –0.1 < input < 0.1 then output = 0: Trend Line Noise Thresholds

  12. Problem: Small Signals Ignored • Small signals below threshold are ignored.

  13. Problem: Noise Let Through • High levels of noise will be let through.

  14. Problems with Thresholds • A simple threshold does not work because: • Low level signals are ignored • High level noise is let through • We need a better method to distinguish between • signals and noise • For this we will use autocorrelation.

  15. Autocorrelation

  16. Autocorrelation • The equation for the autocorrelation of a data series of size N is: • This is the “biased” correlation of a data series with itself • Autocorrelation calculates the energy/power in the data series.

  17. Autocorrelation of Sine Wave

  18. Biased Autocorrelation

  19. Unbiased Autocorrelation • A variant of the autocorrelation process is to use “unbiased” autocorrelation • This is useful for periodic signals to keep the amplitude constant.

  20. Unbiased Autocorrelation

  21. Autocorrelation of Random Signals

  22. Autocorrelation of Random Values

  23. Expected Value and Variance • Expected value of the autocorrelation r11(j): • Variance of r11(j):

  24. 95% Confidence Limits • The 95% confidence limits (2 Standard Deviations) for autocorrelated random noise are: • When N = 100: • 95% Upper Confidence Limit = -0.01+0.20 = 0.19 • 95% Lower Confidence Limit = -0.01-0.20 = -0.21

  25. 99% Confidence Limits • The 99% confidence limits (3 Standard Deviations) for autocorrelated random noise are: • When N = 100: • 99% Upper Confidence Limit = -0.01+0.30 = 0.29 • 99% Lower Confidence Limit = -0.01-0.30 = -0.31

  26. Confidence Limits Random Data 95% Confidence Limit 99% Confidence Limit

  27. Statistical Identification • From the result of the autocorrelation, we can • distinguish between a signal and random noise using • statistics. • Our limits will be set by the number of Standard Deviations.

  28. Identification of Noise • For random noise, only 1% of the autocorrelated values > 3 Standard Deviations. 99% Confidence Limit

  29. Identification of Signal • For an audio signal, there should be ~10% of the autocorrelated values > 3 standard deviations. Values outside expected random range

  30. Two Stage Autocorrelation

  31. Two Stage Autocorrelation • In speech analysis, the output of the autocorrelation is again autocorrelated • This greatly reduces a random data series to nearly zero.

  32. Two Stage Autocorrelation

  33. Two Stage Autocorrelation 0.3 0.0015

  34. C Code Implementation

  35. Autocorrelation • Autocorrelation is implemented using the acorr() function in DSPLIB. • The input data to acorr() needs to be scaled so that it lies in the range –4096 to +4095, otherwise overload occurs. • A convenient frame size 128 is elements. • The 95% confidence limits have been used.

  36. Supported Autocorrelation • The function acorr() supports the following types of autocorrelation: • Raw • Biased • Unbiased • The required type is selected using the keyword “bias”, “unbias” or “raw” when calling the acorr() function.

  37. Introduction to Laboratory

  38. Connecting up the System USB Stick USB to PC Microphone Headphones

  39. Installing the Application • Copy the code given in Application16 Noise Gate to the workspace • Follow the steps previously given in Chapter 1 to set up the new project.

  40. Create New CCS Project

  41. Files Used in Project

  42. Console • First setting – determine if input is signal or noise • Second setting – noise gate.

  43. About the Program • Makes the decision whether the input is: • signal • noise • If the input is a signal, output = input • If the input is noise over a certain duration, then output = 0 (silence) • The attack time (the time from off to on) and decay times are adjustable.

  44. High Pass Filter • A 150 Hz filter cuts off low frequency mains noise.

  45. Experiments

  46. Autocorrelation Length • Change BUFFER_SIZE from 128 to 256 in autocorrelation.c • It will be necessary to calculate new 95% confidence limits.

  47. Autocorrelation Types • In the call to acorr() in autocorrelation.c, experiment with “raw”, “bias” and “unbias” • Try each type autocorrelation with: • an audio signal • random noise • mixture of signal + noise.

  48. “bias” and “unbias” • In the case of “bias” and “unbias”, the autocorrelation output is divided by the number of samples N, here 128 • Therefore the confidence limits will also need to be divided by the number of samples N.

  49. Debugging Using “bias”

  50. Questions • Why is it not possible to use simple thresholds to distinguish between signals and noise? • What are the differences between the autocorrelation of signals and random noise? • How do we use autocorrelation to decide between signal and noise? • What is the best type of autocorrelation (raw, biased or unbiased) to detect: • random noise • audio signal?

More Related