人声提取工具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暴击(∩_∩)

相关推荐
老星*25 分钟前
Cal.com:开源日程预约管理平台,Calendly的最佳替代方案
开源
IvorySQL2 小时前
PostgreSQL 19 重磅新语法终于补齐这个缺口
数据库·postgresql·开源
IvorySQL3 小时前
PostgreSQL 技术日报 (3月23日)|使用 rdtsc 减少 EXPLAIN ANALYZE 的计时开销
数据库·postgresql·开源
IvorySQL3 小时前
PostgreSQL 技术日报 (3月21日)|这些机制,可能并非 “ 理所当然 ”
数据库·postgresql·开源
研究点啥好呢8 小时前
3月22日GitHub热门项目推荐|网页浏览,何须手动
人工智能·python·开源·github
搜佛说9 小时前
下一代操作系统 与现在的操作系统 ,相差几何
开源
darkb1rd9 小时前
ClawTeam:让 AI 代理组成集群,实现全自动化工作流
开源·github·好物分享
老星*11 小时前
1Panel:现代化开源Linux服务器运维管理面板
运维·服务器·开源
lucky_syq11 小时前
Windows电脑部署OpenClaw保姆级教程(2026最新版)
人工智能·windows·开源·电脑·openclaw
大雷神11 小时前
HarmonyOS APP<玩转React>开源教程二十:收藏功能实现
前端·react.js·开源·harmonyos