Documente Academic
Documente Profesional
Documente Cultură
Lab 1
Group: Mark:
Students:
1 Objectives
• Used data acquisition systems for audio processing.
• Design lters with the fdatool from Matlab.
• Process audio signals to reduce noise.
2 Theory
2.1 Nyquist Theorem
Nyquist theorem is a fundamental theorem in way of digitalizing signals. Mainly, it ensures a correct
sampling time Ts to adequately discretize signals. Given a baseband signal with maximum frequency f ,
then
fs ≥ 2f (1)
where fs = 1
Ts is the sampling frequency.
A common assumption is to model the noise r(t) as additive signal, so that the signal under consideration
can be express as follows
1
2.3 FFT
Fast Fourier Transform (FFT) is a tool to map time domain signals, like voice or audio signals, to the
frequency domain. It is dened as:
N
(5)
X 2πj
X (k) = x [n] e− N (n−1)(k−1)
n=1
Example 1: generate some seconds of a two-tone signal with frequencies f1 = 110Hz and f2 = 220Hz
with mixing coecients w1 = 0.5 and w2 = 1, i.e.:
L = length(x);
NFFT = 2^nextpow2(L);
Xf = fft(x,NFFT)/L;
%
f = fs/2*linspace(0,1,NFFT/2+1);
Xf_one = Xf(1:NFFT/2+1);
%
plot(f,2*abs(Xf_one))
xlabel('f(Hz)')
ylabel('|X(f)|')
2.4 Filters
2
• Chebyshev II
• Eliptic
Order n Rice
Butterworth high No
Chebyshev I moderate in pass band
Chebyshev II moderate in rejected band
Elliptic low both
Table 1: Main features of lters.
Matlab oers several ways of designing lters, among them, the fdatool is the easiest way to congure
the lter and obtain the lter coecients (Fig. 2)
Once the lter coecients are obtained, the filter command can be used.
3
3 Practical
3.1 AWGN
r(t) ∼ N µ, σ 2 (9)
where µ and σ 2 are the mean and variance of the signal which should be set to 0 and 0.2, respectively.
2. Plot the spectral power distribution of new signal
3.2 Voice