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’)
对应的幅频响应图如下: