gpt4 book ai didi

python - 图书馆 : MFCC feature calculation

转载 作者:太空宇宙 更新时间:2023-11-04 00:48:41 27 4
gpt4 key购买 nike

给定一个 22 分钟(1320 秒) 的音频文件,Librosa 通过以下方式提取 MFCC 特征data = librosa.feature.mfcc(y=None, sr=22050, S=None, n_mfcc=20, **kwargs)

data.shape (20,56829) It returns numpy array of 20 MFCC features of 56829 frames .

我的问题是它是如何计算出56829的。是否有任何计算可以实现这一帧?每帧的窗口大小是多少?

最佳答案

可以指定跳数

mfcc = librosa.feature.mfcc(y=y, sr=sr, hop_length=hop_length, n_mfcc=13)

librosa 使用居中帧,因此第 k 帧以样本 k * hop_length 为中心

我认为默认跳值是 512,你的数据是 (1320*22050)/56829 = 512,16

关于python - 图书馆 : MFCC feature calculation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38149210/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com