欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

利用python提取wav文件的mfcc方法

程序员文章站 2023-10-20 12:09:50
如下所示: import scipy.io.wavfile as wav from python_speech_features import mfcc fs...

如下所示:

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方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。