【AI技术】PaddleSpeech部署方案
技术介绍
PaddleSpeech是飞浆平台的一款TTS框架。
优点
开源、兼容的模版多,声音模型较多。
缺点
维护人员低、不能在torch下进行二次开发,框架的容错率比较低。
部署
基础环境的搭建
分步详解
国内镜像源切换
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo echo ``>sources.list
sudo bash -c "cat << EOF > /etc/apt/sources.list && apt update
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF"
所需环境1 g++
sudo apt install -y git
sudo apt install -y gcc
sudo apt-get install -y g++
所需环境2 vim
# 所需环境2
sudo apt update
sudo apt install -y libxml2
sudo apt install -y vim
所需环境3 cuda
cd /workspace
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
sudo sh cuda_11.8.0_520.61.05_linux.run
所需环境4 cudnn
注意:我在使用过程中发现wget无法下载这个文件,我是自己用下载工具下载以后放进去的,这个文件800mb+
cd /workspace
wget https://developer.nvidia.com/downloads/compute/cudnn/secure/8.9.7/local_installers/11.x/cudnn-linux-x86_64-8.9.7.29_cuda11-archive.tar.xz
tar -xvf cudnn-linux-x86_64-8.9.7.29_cuda11-archive.tar.xz
cd cudnn-linux-x86_64-8.9.7.29_cuda11-archive/
sudo cp include/cudnn*.h /usr/local/cuda-11.8/include
sudo cp -P lib/libcudnn* /usr/local/cuda-11.8/lib64
sudo chmod a+r /usr/local/cuda-11.8/include/cudnn*.h /usr/local/cuda-11.8/lib64/libcudnn*
编辑环境变量
vim ~/.bashrc
在最后的部分加上
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda
刷新环境变量
source ~/.bashrc
所需环境5 ssl
cd /workspace
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
源码拉取
cd /workspace
git clone https://github.com/PaddlePaddle/PaddleSpeech.git
PaddleSpeech环境安装
cd /workspace/PaddleSpeech
pip install .
部署文件分享
待定
DockerHub
待定
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » 【AI技术】PaddleSpeech部署方案
发表评论 取消回复