GPT-SoVITS 部署

vicowong發表於2024-04-18

GPT-SoVITS
https://github.com/RVC-Boss/GPT-SoVITS
https://www.yuque.com/baicaigongchang1145haoyuangong/ib3g1e


git clone https://github.com/RVC-Boss/GPT-SoVITS.git
conda create -n GPTSoVits python=3.9
conda activate GPTSoVits


bash install.sh

sudo vim startup.sh
#!/bin/bash
nohup python3 webui.py > /dev/null 2>&1 &

http://127.0.0.1:9874/


sudo vim /etc/systemd/system/sovits.service
[Unit]
Description=GPT-SoVITS Service
After=network-online.target

[Service]
User=ai
Group=ai
ExecStart=/home/ai/GPT-SoVITS/startup.sh

[Install]
WantedBy=default.target

### 下載預訓練模型
https://hf-mirror.com/lj1995/GPT-SoVITS
ll GPT-SoVITS/GPT_SoVITS/pretrained_models
drwxrwxr-x 2 ai ai 4096 Apr 17 10:23 chinese-hubert-base/
drwxrwxr-x 2 ai ai 4096 Apr 17 10:23 chinese-roberta-wwm-ext-large/
-rw-rw-r-- 1 ai ai 155093966 Apr 17 10:23 s1bert25hz-2kh-longer-epoch%3D68e-step%3D50232.ckpt
-rw-rw-r-- 1 ai ai 93533667 Apr 17 10:23 s2D488k.pth
-rw-rw-r-- 1 ai ai 105969649 Apr 17 10:23 s2G488k.pth

### 下載UVR5(人聲/伴奏分離和混響移除)
https://hf-mirror.com/lj1995/VoiceConversionWebUI/tree/main/uvr5_weights
ll GPT-SoVITS/tools/uvr5/uvr5_weights
-rw-rw-r-- 1 ai ai 63454827 Apr 17 10:24 HP2_all_vocals.pth
-rw-rw-r-- 1 ai ai 63454827 Apr 17 10:24 HP3_all_vocals.pth
-rw-rw-r-- 1 ai ai 63454827 Apr 17 10:24 HP5_only_main_vocal.pth
-rw-rw-r-- 1 ai ai 63666335 Apr 17 10:24 VR-DeEchoAggressive.pth
-rw-rw-r-- 1 ai ai 111925279 Apr 17 10:25 VR-DeEchoDeReverb.pth
-rw-rw-r-- 1 ai ai 63666335 Apr 17 10:24 VR-DeEchoNormal.pth
drwxrwxr-x 2 ai ai 4096 Apr 17 10:24 onnx_dereverb_By_FoxJoy/


### 中文自動語音識別
https://modelscope.cn/models/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/files
https://modelscope.cn/models/iic/speech_fsmn_vad_zh-cn-16k-common-pytorch/files
https://modelscope.cn/models/iic/punc_ct-transformer_zh-cn-common-vocab272727-pytorch/files

ll GPT-SoVITS/tools/asr/models
drwxrwxr-x 4 ai ai 4096 Apr 17 10:25 punc_ct-transformer_zh-cn-common-vocab272727-pytorch/
drwxrwxr-x 4 ai ai 4096 Apr 17 10:25 speech_fsmn_vad_zh-cn-16k-common-pytorch/
drwxrwxr-x 4 ai ai 4096 Apr 17 10:25 speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/


### 英語與日語自動語音識別
https://hf-mirror.com/Systran/faster-whisper-large-v3

相關文章