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。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值