做国际网站有补贴吗,只选设计师的网站,企业文化墙装修效果图,什么建站程序好收录一、环境
ubuntu 20.04
python 3.8
cuda 11.8二、部署
1、docker方式部署
1.1、安装docker
如何安装docker#xff0c;可以参考这篇文章
1.2、拉取镜像
docker run -dp 127.0.0.1:8501:8501 syq163/emoti-voice:latest2、完整安装
安装python依赖
conda create -n Emo…一、环境
ubuntu 20.04
python 3.8
cuda 11.8二、部署
1、docker方式部署
1.1、安装docker
如何安装docker可以参考这篇文章
1.2、拉取镜像
docker run -dp 127.0.0.1:8501:8501 syq163/emoti-voice:latest2、完整安装
安装python依赖
conda create -n EmotiVoice python3.8 -y
conda activate EmotiVoice
pip install torch torchaudio
pip install numpy numba scipy transformers4.26.1 soundfile yacs g2p_en jieba pypinyin安装git lfs和下载模型
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
git lfs install
git lfs clone https://huggingface.co/WangZeJun/simbert-base-chinese WangZeJun/simbert-base-chinese下载预训练模型
https://drive.google.com/drive/folders/1y6Xwj_GG9ulsAonca_unSGbJ4lxbNymM将预训练模型放在源码中的位置
WangZeJun/simbert-base-chinese下载源码
git clone https://github.com/lukeewin/EmotiVoice.git在源码路径中创建目录保存预训练模型
mkdir -p outputs/style_encoder/ckpt
mkdir -p outputs/prompt_tts_open_source_joint/ckpt将g_*, do_*文件放到outputs/prompt_tts_open_source_joint/ckpt将checkpoint_*放到outputs/style_encoder/ckpt中
推理输入文本格式是speaker|style_prompt/emotion_prompt/content|phoneme|content
例如: 8051|非常开心|sos/eos uo3 sp1 l ai2 sp0 d ao4 sp1 b ei3 sp0 j ing1 sp3 q ing1 sp0 h ua2 sp0 d a4 sp0 x ve2 sos/eos|我来到北京清华大学其中的音素phonemes可以这样得到python frontend.py data/my_text.txt data/my_text_for_tts.txt.
TEXTdata/inference/text
python inference_am_vocoder_joint.py \
--logdir prompt_tts_open_source_joint \
--config_folder config/joint \
--checkpoint g_00140000 \
--test_file $TEXT合成的语音结果在outputs/prompt_tts_open_source_joint/test_audio
pip install streamlit
streamlit run demo_page.py更多内容