librosa是处理音频库里的opencv,使用python脚本研究音频,先安装三方库librosa。
如下通过清华镜像源安装librosa;
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple librosa
D:\D00_Python3\D00A2_python3.7.3\install>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple librosa
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing c:\users\administrator\appdata\local\pip\cache\wheels\6e\d3\47\7582e7e63ee9127f4773adeb8dcd8490771c063e2607354ba0\librosa-0.7.2-py3-none-any.whl
Requirement already satisfied: numba>=0.43.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.50.0)
Requirement already satisfied: joblib>=0.12 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.15.1)
Requirement already satisfied: resampy>=0.2.2 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.2.2)
Requirement already satisfied: numpy>=1.15.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (1.18.5)
Requirement already satisfied: audioread>=2.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (2.1.8)
Requirement already satisfied: scipy>=1.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (1.4.1)
Requirement already satisfied: soundfile>=0.9.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.10.3.post1)
Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (0.23.1)
Requirement already satisfied: six>=1.3 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (1.15.0)
Requirement already satisfied: decorator>=3.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from librosa) (4.4.2)
Requirement already satisfied: setuptools in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba>=0.43.0->librosa) (47.1.1)
Requirement already satisfied: llvmlite<0.34,>=0.33.0.dev0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from numba>=0.43.0->librosa) (0.33.0)
Requirement already satisfied: cffi>=1.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from soundfile>=0.9.0->librosa) (1.14.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from scikit-learn!=0.19.0,>=0.14.0->librosa) (2.1.0)
Requirement already satisfied: pycparser in d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages (from cffi>=1.0->soundfile>=0.9.0->librosa) (2.20)
Installing collected packages: librosa
Successfully installed librosa-0.7.2
D:\D00_Python3\D00A2_python3.7.3\install>
pip list查看三方包:
D:\D00_Python3\D00A2_python3.7.3\install>pip list Package Version -------------------- ------------ absl-py 0.9.0 astor 0.8.1 audioread 2.1.8 cffi 1.14.0 decorator 4.4.2 defusedxml 0.6.0 gast 0.3.3 google-pasta 0.2.0 grpcio 1.29.0 h5py 2.10.0 importlib-metadata 1.6.1 joblib 0.15.1 Keras-Applications 1.0.8 Keras-Preprocessing 1.1.2 librosa 0.7.2 llvmlite 0.33.0 Markdown 3.2.2 networkx 2.2 numba 0.50.0 numpy 1.18.5 pip 20.1.1 protobuf 3.12.2 pycparser 2.20 resampy 0.2.2 scikit-learn 0.23.1 scipy 1.4.1 setuptools 47.1.1 six 1.15.0 SoundFile 0.10.3.post1 tensorboard 1.14.0 tensorflow 1.14.0 tensorflow-estimator 1.14.0 termcolor 1.1.0 threadpoolctl 2.1.0 Werkzeug 1.0.1 wheel 0.34.2 wrapt 1.12.1 zipp 3.1.0 D:\D00_Python3\D00A2_python3.7.3\install>
如上
librosa ---- 0.7.2
numba-----0.50.0
下面使用librosa,报的是numba的错误!
D:\D00_Python3\D00A2_python3.7.3\install>python -c "import librosa" Traceback (most recent call last): File "<string>", line 1, in <module> File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\__init__.py", line 12, in <module> from . import core File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\core\__init__.py", line 125, in <module> from .time_frequency import * # pylint: disable=wildcard-import File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\core\time_frequency.py", line 11, in <module> from ..util.exceptions import ParameterError File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\__init__.py", line 77, in <module> from .utils import * # pylint: disable=wildcard-import File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\utils.py", line 15, in <module> from .decorators import deprecated File "D:\D00_Python3\D00A2_python3.7.3\install\lib\site-packages\librosa\util\decorators.py", line 9, in <module> from numba.decorators import jit as optional_jit ModuleNotFoundError: No module named 'numba.decorators' D:\D00_Python3\D00A2_python3.7.3\install>
解决办法:
卸载numba后,重新安装降版本的numba,安装numba==0.48.0
pip uninstall numba
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numba==0.48.0
python -c "import librosa;print(librosa.__version__) "
可以看到成功安装了正确可使用的librosa库!
D:\D00_Python3\D00A2_python3.7.3\install>pip uninstall numba Found existing installation: numba 0.50.0 Uninstalling numba-0.50.0: Would remove: d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages\numba-0.50.0.dist-info\* d:\d00_python3\d00a2_python3.7.3\install\lib\site-packages\numba\* d:\d00_python3\d00a2_python3.7.3\install\scripts\numba d:\d00_python3\d00a2_python3.7.3\install\scripts\pycc Proceed (y/n)"import librosa;print(librosa.__version__) " 0.7.2
总结
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
- 凤飞飞《我们的主题曲》飞跃制作[正版原抓WAV+CUE]
- 刘嘉亮《亮情歌2》[WAV+CUE][1G]
- 红馆40·谭咏麟《歌者恋歌浓情30年演唱会》3CD[低速原抓WAV+CUE][1.8G]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[320K/MP3][193.25MB]
- 【轻音乐】曼托凡尼乐团《精选辑》2CD.1998[FLAC+CUE整轨]
- 邝美云《心中有爱》1989年香港DMIJP版1MTO东芝首版[WAV+CUE]
- 群星《情叹-发烧女声DSD》天籁女声发烧碟[WAV+CUE]
- 刘纬武《睡眠宝宝竖琴童谣 吉卜力工作室 白噪音安抚》[FLAC/分轨][748.03MB]
- 理想混蛋《Origin Sessions》[320K/MP3][37.47MB]
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]