MATLAB程序原始语音信号波形与加噪信号波形(最新整理)_第1页
MATLAB程序原始语音信号波形与加噪信号波形(最新整理)_第2页
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;

3、t=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(原始语音信号频谱);xl

4、abel(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 an

5、d 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,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论