音频信号采集及处理
程序代码及实验结果图:
[voice,fs
]=audioread
('notify.wav');
%声音读取
sound(
voice,fs
);%声音回放
n=length(voice);
%计算长度
voice1=
fft(voice,n
); %
快速傅里叶变换
figure(1);
subplot(2,1,1);
plot(voice);
%绘出时域波
xlabel
('t');
ylabel
('amp');
%坐标名称
title('
初始音频信号时域波形
');
grid on;
subplot(2,1,2);
plot(abs(
fftshift
(voice1)));
%绘出原始音频信号
频谱title('
初始音频信号频域波形
');
xlabel
('f');
ylabel
('amp');
grid on;
t=0:1/fs:(n-1)/fs;
noise=0.05*
sin(2*pi*100000*t ...


雷达卡


京公网安备 11010802022788号







