在 librosa.load 中使用“kaiser_fast”时遇到错误

问题描述 投票:0回答:1

我想加载 *.wav 文件。我正在使用以下代码

 audio, sample_rate = librosa.load(file_name, res_type='kaiser_fast', duration=20) 

但是,我收到以下错误

No module named 'resampy'

我尝试安装 resampy 并且安装成功。然而,错误并没有解决。

我希望使用 kaise_fast 并且不会出现错误。

python deep-learning google-colaboratory wav librosa
1个回答
0
投票

只需使用以下命令安装“resampy”库:

pip install resampy

如果存在错误,报告新的错误。 我安装resampy后没有出现错误

© www.soinside.com 2019 - 2024. All rights reserved.