Professional Documents
Culture Documents
by Noise Subtraction
Abdelshakour Abuzneid, Moeen Uddin, Shaid Ali Naz, Omar Abuzaghleh
Department of Computer Science
University of Bridgeport
abuzneid@bridgeport.edu, moeenu@bridgeport.edu, snaz@bridgeport.edu, oabuzagh@bridgeport.edu
I. INTRODUCTION
Whenever we speak in microphone, it does not catch only
the waves which come out from our mouth, but it also catches
the waves coming from other sources like fan, vacuum
cleaner, phone ringing, or other sources, and combines the
noise with the real voice signal. The input signal to the B. Frequency
microphone becomes noisy.
This is the rate of change the signal undergoes every
To remove this noise we have to know the characteristics of second, expressed in Hertz (Hz), or cycles per second. A 30Hz
the noise and the needed voice signal, so that we can separate signal changes thirty times a second. In speech, we also refer
noise from the original voice signal. The three main to it as the number of vibrations per second. As we speak, the
characteristics of signals are, air is forced out of our mouths, being vibrated by our voice
box. Men, on average, tend to vibrate the air at a lower rate
A. Amplitude than women, thus tend to have deeper voices. A cycle is one
complete movement of the wave, from its original start
This is the strength of the signal. It can be expressed in a position and back to the same point again. The number of
number of different ways (as volts, decibels). The higher the cycles (or waves) within one second time interval is called
amplitude, the stronger (louder) the signal. The decibel is a cycles-per-second, or Hertz [8].
popular measure of signal strength [8].
40db normal speech
90db lawn mowers
110db shotgun blast
120db jet engine taking off
120db rock concerts
T. Sobh (ed.), Advances in Computer and Information Sciences and Engineering, 5–10.
© Springer Science+Business Media B.V. 2008
6 ABUZNEID ET AL.
C. Phase
This is the rate at which the signal changes its relationship
to time, expressed as degrees. One complete cycle of a wave
begins at a certain point, and continues till the same point is
reached again. Phase shift occurs when the cycle does not
complete, and a new cycle begins before the previous one has
fully completed [8].
Step 2:
Figure 9: Output signal 1 after subtracting noise strip Figure 11: Output signal 1
Figure 10: Output signal 2 after subtracting noise strip Figure 12: Output signal 2
We played these signals and found that there was no noise We played these signals and examined that the final output
during the voice and without voice. But unfortunately the signals were mostly noise free signal. We have chosen the
voice signal is little bit effected it seems like the voice signal range +8 to -10. This is a critical point; since the clarity of
lost some of its characteristics. voice depends on the range we may choose.
Step 3:
[m,n] = size(a);
Input Voice
j=1;
k=1;
% Recording Noise
for i = 1 : m
if (a(i,1) <= 0) && ( a(i,1) >= -1.5 )
Add noise to Voice
b(i,1) = a(i,1);
else
b(i,1) = 0;
end
end
% Subtracting Noise
for i = 1 : m
Separate noise if ( a(i,1) < 0 )
from recorded
signal
r(i,1)=a(i,1)-b(i,1);
elseif ( a(i,1) > 0 )
r(i,1)=a(i,1)+b(i,1);
end
end
% Plotting Signals
Noise
Signal figure, plot(a);
figure, plot(b);
figure, plot(r);
x=audioplayer(a,22050,8);
y=audioplayer(b,22050,8);
z=audioplayer(r,22050,8);
% Playing Signals
Subtract noise play(x);
from Noisy signal
play(y);
play(z);
B. Module 2 code
% Recording Audio Signal
Noise free
signal
micrecorder = audiorecorder(22050,8,1);
record(micrecorder,3);
a = getaudiodata(micrecorder, ‘int8’);
[m,n] = size(a);
IV. MATLAB CODE
j=1;
The algorithm has three modules which are coded in Matlab k=1;
7.0. We used a microphone to record 3 seconds of 22-kHz, 8-
bit, mono data. % Recording Noise
for i = 1 : m
A. Module 1 code if (a(i,1) <= 0) && ( a(i,1) >= -1.5 )
% Recording Audio Signal b(i,1) = a(i,1);
micrecorder = audiorecorder(22050,8,1); c(j,1) = a(i,1);
record(micrecorder,3); j = j+1;
else
10 ABUZNEID ET AL.