Skip to content

Commit

Permalink
doc: README updated on docker deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrasev committed May 30, 2024
1 parent 1095d4e commit 11dcd83
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pip3 install requirements.txt
uvicorn main:app --host "0.0.0.0" --port 8000
```

## 使用示例
### 本地使用示例

```bash
curl -X POST -H 'content-type: application/json' -d\
Expand All @@ -25,6 +25,26 @@ curl -X POST -H 'content-type: application/json' -d\
- `output_path`:合成音频的保存路径
- `seed`:音色种子,不同的种子会产生不同的音色,默认为 697(测试的一个比较好的音色)

## Docker 部署
```bash
docker run -d --name chattts -p8000:8000 -v /tmp/audio:/audio ghcr.io/ultrasev/chattts:latest
```
注:
1. `/tmp/audio`,本地存储音频文件的路径
2. `/audio`,docker 里面存储音频文件的路径,这两个都可以更改。

在使用时应该指定 `output_path = /audio/abc.wav`,以便把音频写到 `/audio` 下面。

```bash
curl -X POST -H 'content-type: application/json' -d\
'{"text":"朋友你好啊,今天天气怎么样 ?", "output_path": "/audio/abc.wav", "seed":232}' \
http://localhost:8000/tts
```





# For @yihong0618's fork

- pip3 install chattts-fork
Expand Down

0 comments on commit 11dcd83

Please sign in to comment.