speex使用filter_dc_notch16函数去除直流,其系统函数为:
matlab代码:
NLen = 1000;
fs = 16000;
radius = 0.982;
den2 = 0.9646;
a2 = [1 -2*radius den2];
b2 = [1*radius -2*radius 1*radius];
[h1,w1] = freqz(b2,a2,NLen);
figure(5),
semilogx(fs/2*w1/pi,20*log10(abs(h1)));
xlabel(‘Frequency(Hz)’)
ylabel(‘Magnitude(dB)’)
title(‘memath speex notch filter’)
对应的幅频响应图如下:
本文介绍了使用Speex库中的filter_dc_notch16函数去除信号中的直流分量的方法,并给出了对应的MATLAB实现代码及幅频响应图。
1953

被折叠的 条评论
为什么被折叠?



