Sound feature attributeError: 'rmse'
Sound feature attributeError: 'rmse'
在使用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
我猜你是 运行最新的 librosa
之一。如果您检查 0.7
的 changelog,您会注意到 rmse
被 rms
取代。只需 运行:
rmse=librosa.feature.rms(y=y)[0]
你应该没事。
在使用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
我猜你是 运行最新的 librosa
之一。如果您检查 0.7
的 changelog,您会注意到 rmse
被 rms
取代。只需 运行:
rmse=librosa.feature.rms(y=y)[0]
你应该没事。