问题描述
您好,我正在将音频文件的MFCC提取到csv数据集中。我想知道如何只接收超过6000Hz的音频。一种可能的方法是应用高通滤波器,但是,我不知道如何在python中实现它。下面是我现在拥有的代码:
for filename in os.listdir(directoryName):
if filename.endswith('.wav'):
(rate,audio)=wavfile.read(filename)
audio = highpass(audio,rate,15,6000)
mfcc_feat = mfcc(audio,nfft=1200)
fbank_feat = logfbank(audio,nfft=1200)
features = Recorder.mean_features(mfcc_feat)
所以我要实现:
If the signal inside an audio file is over 6kHz,take the MFCCs of this audio and write into dataset;
else discard it.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)