170712 python_speech_features

来源:互联网 发布:淘宝闲鱼下载 编辑:程序博客网 时间:2024/06/16 22:05

Welcome to python_speech_features’s documentation!
Audio tools for Linux commandline geeks
Managing Linguistic Data
Timit
快速克隆网站(Teleport Ultra)
这里写图片描述

Code:

from python_speech_features import mfccfrom python_speech_features import logfbankimport scipy.io.wavfile as wav(rate,sig) = wav.read("file.wav")mfcc_feat = mfcc(sig,rate)fbank_feat = logfbank(sig,rate)print(fbank_feat[1:3,:])

mfcc_feat, fbank_feat are 2D matrics
mfcc_feat: the number of row stands for the the frame number, each frame(帧) covers a sub-band of signal
mfcc_feat: the number of columns stands for the filters numbers

原创粉丝点击