0
点赞
收藏
分享

微信扫一扫

SambertHifigan个性化语音合成 体验

在环境安装方面简单步步坑,在此记述一下备忘。

注意:只能在GPU环境中运行,CPU环境中会失败。


环境安装

操作系统

最好是Ubuntu。

国内很多使用的CentOS,由于 CentOS被Redhat收购后,出现许多问题。导致很多软件适配不积极,存在许多问题。

Python版本管理工具

推荐:miniconda

其它的conda、anaconda应该也行。


创建虚拟环境

conda create -n modelscope python=3.7
conda activate modelscope

# sox

安装pytorch

参考:<https://pytorch.org/get-started/locally/>

安装modescope库

pip install -U modelscope -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://mirror.sjtu.edu.cn/pypi/web/simple

安装sox

在容器中,可能需要先更新一下才能安装

sudo apt-get update

需要在操作系统中同时安装

sudo apt-get install sox

安装python 库

pip3 install sox -i https://pypi.tuna.tsinghua.edu.cn/simple

安装SambertHifigan相关库

pip install tts-autolabel -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip install kantts -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install unidecode -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install PyWavelets -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip3 install tensorboardX -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip3 install pysptk -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip3 install bitstring -i https://mirror.sjtu.edu.cn/pypi/web/simple


测试

参考官方文档就行:SambertHifigan个性化语音合成-中文-预训练-16k · 模型库 (modelscope.cn)





举报

相关推荐

0 条评论