matlab语音波形,MATLAB程序原始语音信号波形与加噪信号波形(最新整理)

《MATLAB程序原始语音信号波形与加噪信号波形(最新整理)》由会员分享,可在线阅读,更多相关《MATLAB程序原始语音信号波形与加噪信号波形(最新整理)(3页珍藏版)》请在人人文库网上搜索。

1、用 MATLAB 对原始语音信号进行分析,画出它的时域波形和频谱fs=22050;x1 =wavread(C:Documents and SettingsAdministrator桌面1.wav ) ;sound(x1,22050);%播放语音信号y1=fft(x1,1024);%对信号做 1024 点 FFT 变换f=fs*(0:511)/1024;figure(1)plot(x1)%做原始语音信号的时域图形title(原始语音信号);xlabel(time n); ylabel(fuzhi n); figure(2)freqz(x1)%绘制原始语音信号的频率响应图title(频率响应图) 。

2、figure(3) subplot(2,1,1);plot(abs(y1(1:512)%做原始语音信号的 FFT 频谱图title(原始语音信号 FFT 频谱) subplot(2,1,2); plot(f,abs(y1(1:512);title(原始语音信号频谱)xlabel(Hz);ylabel(幅值);%给原始的语音信号加上一个高频余弦噪声,频率为(56Khz 任选)。对加噪后的语音进行分析,并画出其信号时域和频谱图。fs=22050;x1=wavread(C:Documents and SettingsAdministrator桌面1.wav );f=fs*(0:511)/1024;t。

3、=0:1/fs:(length(x1)-1)/fs; Au=0.03;d=Au*cos(2*pi*5000*t); x2=x1+d;sound(x2,22050);wavwrite(x2,8000,16, C:Documents and SettingsAdministrator桌面2.wav);y2=fft(x2,1024); figure(4);plot(t,x2) title(加噪后的信号);xlabel(time n); ylabel(fuzhi n); figure(5) subplot(2,1,1); plot(f,abs(y1(1:512);title(原始语音信号频谱);xla。

4、bel(Hz);ylabel(fuzhi);subplot(2,1,2); plot(f,abs(y2(1:512); title(加噪后的信号频谱);xlabel(Hz);ylabel(fuzhi);“”“”At the end, Xiao Bian gives you a passage. Minand once said, people who learn to learn are very happy people. In every wonderful life, learning is an eternal theme. As a professional clerical and。

5、 teaching position, I understand the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can achieve better self. Only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise development and innovate to meet the needs of the market. This document is also edited by my studio professionals, there may be errors in the document, if there are errors, please correct, thank you。

你可能感兴趣的:(matlab语音波形)