人声提取工具Spleeter安装使用教程(Mac系统)

前段时间一直在钻研视频制作的技术,其中有对素材视频进行人声分离的操作,研究了后做了下整理,在此分享给大家:

1、下载并安装Anaconda

Spleeter是基于python语言的工具,而Anaconda就是可以便捷获取python包且对包能够进行管理,同时对环境可以统一管理的发行版本,可以大大减少因为包等依赖项的问题而造成的困扰,提升效率,Anaconda可以更方便的进行安装Spleeter。 下载地址: www.anaconda.com/products/in...

下载完后双击安装:

2、修改配置

Anaconda安装成功后打开命令窗口输入:

lua 复制代码
conda config --add channels r

此时,目录 /Users/<你的用户名>/ 下就会生成配置文件.condarc,将文件内容替换为如下内容:

ruby 复制代码
channels:
  - defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
ssl_verify: true

3、更新Anaconda

在命令行窗口输入以下命令

sql 复制代码
conda update anaconda

4、安装python

在命令行窗口输入以下命令

ini 复制代码
conda install python=3.7

5、安装spleeter

在命令行窗口输入以下命令

arduino 复制代码
pip install tensorflow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
conda install -c conda-forge spleeter

6、人声提取

先切换到文件提取后需要保存的目录

bash 复制代码
cd /Users/James/Desktop

再执行以下命令,其中/Users/James/Desktop/my_song.mp3为音频文件路径

css 复制代码
spleeter separate -i /Users/James/Desktop/my_song.mp3 -p spleeter:2stems -o output

注意:如果报No module named 'numba.decorators'的错误,则执行重新安装下numba模块,依次执行如下命令:

ini 复制代码
pip uninstall numba
pip install numba==0.48 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

结语

感谢您的阅读,请动动您可爱的小手✌~点赞,留言,关注,转载 4暴击(∩_∩)

相关推荐
冬奇Lab1 天前
每日一个开源项目(第142篇):android/skills - Google 官方 Android 开发 AI Skill 库
人工智能·开源·资讯
冬奇Lab1 天前
Skill 系列(06):Skill 工程化与治理——路由准确率 38%、压缩节省 76%
人工智能·开源·agent
冬奇Lab2 天前
Skill 系列(05):Skill 工作流串联——4 种模式实测,并发加速 1.5x
人工智能·开源
冬奇Lab2 天前
每日一个开源项目(第141篇):hiring-agent - HackerRank 开源了他们的简历评分系统,你的简历能得几分?
人工智能·面试·开源
喝拿铁写前端2 天前
我替你试了:GitNexus 不是更强的搜索框
开源·资讯
Tigger3 天前
受不了 ¥98/年的订阅,我用 Vibe Coding 自己写了个剪贴板工具
人工智能·开源·mac
冬奇Lab3 天前
每日一个开源项目(第140篇):AgentScope 2.0 - 阿里开源的生产级 Agent 框架
人工智能·开源·agent
冬奇Lab3 天前
Skill 系列(04):Skill 指标体系——L1/L2/L3 三层监控,让质量下降有据可查
人工智能·开源·llm
修己xj4 天前
Ian Xiaohei Illustrations:让 AI 为你画出文章的“认知锚点”
开源
冬奇Lab4 天前
每日一个开源项目(第139篇):Voicebox - 本地运行的开源 ElevenLabs 替代品
人工智能·开源·资讯