0% found this document useful (0 votes)
76 views2 pages

Analysis and Processing Speech Signal Based On Matlab

The document discusses analyzing and processing speech signals using MATLAB. It describes adding noise to a speech signal, using the short-time Fourier transform principle, and designing a filter to process an actual voice signal with noise. MATLAB is shown to be a convenient, fast, and effective tool for processing speech signals.

Uploaded by

NishantKumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views2 pages

Analysis and Processing Speech Signal Based On Matlab

The document discusses analyzing and processing speech signals using MATLAB. It describes adding noise to a speech signal, using the short-time Fourier transform principle, and designing a filter to process an actual voice signal with noise. MATLAB is shown to be a convenient, fast, and effective tool for processing speech signals.

Uploaded by

NishantKumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Analysis and Processing Speech Signal Based on

MATLAB
Yuliang Feng

Xiange Sun*

Electronic and information Institute


Yangtze University

Electronic and information Institute


Yangtze University

Jingzhou, China
Email: [email protected]

Jingzhou, China
Email: [email protected]

AbstractAs powerful and practical engineering software,


MATLAB is used in data analysis and processing widely. This paper
describes an example of separating noise from the raw speech.
Firstly, high frequency noise is added to the speech signal. And then
the principle of short time Fourier transform is analysis. Finally, a
filter is designed to process the actual acquisition of a voice signal
with noise. It is obvious that using Matlab software to process speech
signal is convenient, fast and work less.

3.1
,
Matlab,
,

Matlab[4,5,6]
[y,Fs,bits]=wavread('D:\ \mywav1.wav');
y=y( 1:70000 ,1);
sound(y,Fs,bits);
t=1:70000;
u=[sin(2*pi*1200*t)]';
u(15000:70000)=0;
s=u(1:15000);
k=flipud(s);
f=[zeros(1,55000) k'];
d=f'+u;
d(1:7000)=0;
d(63000:70000)=0;
d=d./max(d).*0.005;
a=ifft(abs(d));
a=a./max(a).*0.03;
q=y+a;
wavwrite(q,Fs,'yuan');
sigLength=length(q);
Fs=44100;
d=100;
L=512;
k=L-d;
w=fix(sigLength/k);
frame_length=512;
r=(rectwin(frame_length));
for a1=1:w
n1=(L-d)*(a1-1)+1;
n2=(L-d)*(a1-1)+frame_length;
s=q(n1:n2);
sf=fft(s'.*r',512 );
X1(n1:n2)=sf(1:frame_length);
end
SIZE=8000;
Y=zeros(SIZE,1);
Y=20*log10(abs(X1));
figure,plot(Y(1:4000));title('');
figure,plot(t,q./max(q));title('');

Keywords- speech signal; MATLAB; STFT; filter; frequency


character analysis

0DWODE

7RROER[ 

>@
 

[2]
,
,

, ,

10~30ms10~30ms[3]

978-1-4244-8165-1/11/$26.00 2011 IEEE

555

figure,subplot(2,1,1);plot(abs(fft(a))./max(abs(fft(a))));title('
');
subplot(2,1,2);plot(t,a./max(a));title('');

1
0.5

50

-0.5

-50
-100

500

1000

1500

2000

2500

3000

3500

4000

-1

7
4

x 10

0.5
0
-0.5
-1

7
x 10

 

0.5

7
x 10

-50

1
0.5
0

-100
0

-0.5
-1

7
x 10

500

1000

1500

2000

2500

3000

3500

4000

2
1

24410Hz

3.2 
Matlab

wp=0.116*pi wr=0.20*pi
Ap=0.25Ar=50[7]

MATLAB

MATLAB

REFERENCES

wp=0.116*pi;
wr=0.20*pi;
Ap=0.25;
Ar=50;

[1]

[2]

T=1;Omegap=(2/T)*tan(wp/2);
Omegar=(2/T)*tan(wr/2);
[c,d]=afd_elip(Omegap,Omegar,Ap,Ar);
[b,a]=bilinear(c,d,T);

34

[3]

Hu Hang. Speech Signal Processing[M]. Harbin:Harbin Institute


Of Technology Press.2000.(In Chinese) .

[4]

Zhao HongyiZhang Changnian.Digital Signal Processing Based On


MATLB[M]. Beijing:Chemical Industry Press.2002. (In Chinese) .
Chen Houjin,Xue Jian,Hu Jian. Digital Signal Processing [M]. Beijing:
Higher Education Press.2004. (In Chinese) .
=KDR6KXPLQJ. Application of Speech Signal Spectrum Analysis Based
On MATLAB [J]. Academic Research,2010. (In Chinese) .
Zhang Zhiyong.Proficient in matlab version 6.5[M]. Beijing: BeiHang
University Press.2003. (In Chinese)

[5]
[6]

wavwrite

MATLAB

[7]

556

The MathWorks. MATLAB User' s Gu ide: High-performance Numeric


Computation and Visualization Software [M] .SouthNat ick, MA, The
Math Works Inc, 19841994.
Zhao Li.Speech Signal Processing[M]. Beijing:China Machine Press
2009.(In Chinese)

You might also like