如下所示:importscipy.io.wavfileaswavfrompython_speech_featuresimportmfccfs,audio=wav.read("abc.wav")feature_mfcc=m
如下所示:
import scipy.io.wavfile as wav
from python_speech_features import mfcc
fs, audio = wav.read("abc.wav")
feature_mfcc = mfcc(audio, samplerate=fs)
print(feature_mfcc)
print(feature_mfcc.shape)
注:python_speech_features 不存在, 通过 pip install python_speech_features 进行安装
以上这篇利用python提取wav文件的mfcc方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
python wav mfcc