You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.8 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 数字人项目使用说明
本项目包含三个主要模块LiveTalking、GPT-SoVITS 和 SRS。以下为各模块的启动方法及服务器信息。
---
## 一、LiveTalking 启动方法
* **服务器地址**`192.168.10.96`
* **登录用户**`root`
### 启动步骤:
```bash
# 进入项目目录
cd /root/fpt/LiveTalking
# 激活 conda 环境
conda activate nerfstream
# 启动服务(后台运行)
nohup python app.py \
--transport webrtc \
--model wav2lip \
--avatar_id model_4_10 \
--tts gpt-sovits \
--TTS_SERVER http://192.168.10.113:9880 \
> log/livetalking.log 2>&1 &
# 实时查看日志(可选)
tail -n 50 -f log/livetalking.log
```
---
## 二、GPT-SoVITS 启动方法
* **服务器地址**`192.168.10.113`端口222
* **登录用户**`root`
### 启动步骤:
```bash
# 进入项目目录
cd /mnt/workspace/GPT-SoVITS
# 激活 conda 环境
conda activate gpt-sovits
# 启动服务(后台运行)
nohup python api.py \
-dr "input/doubao.wav" \
-dt "刚进直播间的宝子们,左上角先点个关注,点亮咱们家的粉丝灯牌!我是你们的主播陈婉婉,今天给大家准备了超级重磅的福利" \
-dl "zh" \
> log/gptsovits.log 2>&1 &
# 实时查看日志(可选)
tail -n 50 -f log/gptsovits.log
```
---
## 三、SRS 服务启动方法
* **服务器地址**`192.168.10.96`
* **登录用户**`root`
### 启动步骤:
```bash
# 后台运行 SRS 容器
docker run -d \
--name srs-rtc \
--env CANDIDATE=110.40.131.100 \
-p 1935:1935 \
-p 8080:8080 \
-p 1985:1985 \
-p 8000:8000/udp \
--restart unless-stopped \
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5 \
objs/srs -c conf/rtc.conf
```
### 查看日志:
```bash
# 实时查看容器日志
docker logs -f srs-rtc
```
---