如下所示:
1
2
3
4
5
6
|
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方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。
原文链接:https://blog.csdn.net/zuck888/article/details/80676730