在使用librosa.feature.rmse进行声音特征提取时,我有以下几点经验:
import librosa
import numpy as np
wav_file = "C://TEM//tem//CantinaBand3.wav"
y, sr = librosa.load(wav_file)
chroma_stft = librosa.feature.chroma_stft(y=y, sr=sr)
rmse=librosa.feature.rmse(y=y)[0]
print rmse它给了我:
AttributeError: 'module' object has no attribute 'rmse'获得它的正确方法是什么?谢谢。
示例文件:https://www2.cs.uic.edu/~i101/SoundFiles/CantinaBand3.wav
发布于 2019-11-25 17:10:36
我猜您正在运行最新的librosa之一。如果你检查0.7的changelog,你会注意到rmse被删除而支持rms。只需运行:
rmse=librosa.feature.rms(y=y)[0]你应该会好起来的。
https://stackoverflow.com/questions/59027941
复制相似问题