时间:2022-05-28 08:46:07 | 栏目:Python代码 | 点击:次
如下所示:
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 进行安装