mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 07:49:59 +08:00
修改文档细节
This commit is contained in:
parent
20506f7143
commit
97fe6039b7
17
api_v2.py
17
api_v2.py
@ -14,7 +14,9 @@
|
|||||||
|
|
||||||
endpoint: `/tts`
|
endpoint: `/tts`
|
||||||
GET:
|
GET:
|
||||||
`http://127.0.0.1:9880/tts?text=先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。&text_lang=zh&ref_audio_path=archive_jingyuan_1.wav&prompt_lang=zh&prompt_text=我是「罗浮」云骑将军景元。不必拘谨,「将军」只是一时的身份,你称呼我景元便可&text_split_method=cut5&batch_size=1&media_type=wav&streaming_mode=true`
|
```
|
||||||
|
http://127.0.0.1:9880/tts?text=先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。&text_lang=zh&ref_audio_path=archive_jingyuan_1.wav&prompt_lang=zh&prompt_text=我是「罗浮」云骑将军景元。不必拘谨,「将军」只是一时的身份,你称呼我景元便可&text_split_method=cut5&batch_size=1&media_type=wav&streaming_mode=true
|
||||||
|
```
|
||||||
|
|
||||||
POST:
|
POST:
|
||||||
```json
|
```json
|
||||||
@ -52,7 +54,9 @@ command:
|
|||||||
"exit": 结束运行
|
"exit": 结束运行
|
||||||
|
|
||||||
GET:
|
GET:
|
||||||
`http://127.0.0.1:9880/control?command=restart`
|
```
|
||||||
|
http://127.0.0.1:9880/control?command=restart
|
||||||
|
```
|
||||||
POST:
|
POST:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -68,8 +72,9 @@ RESP: 无
|
|||||||
endpoint: `/set_gpt_weights`
|
endpoint: `/set_gpt_weights`
|
||||||
|
|
||||||
GET:
|
GET:
|
||||||
`http://127.0.0.1:9880/set_gpt_weights?weights_path=GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt`
|
```
|
||||||
|
http://127.0.0.1:9880/set_gpt_weights?weights_path=GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt
|
||||||
|
```
|
||||||
RESP:
|
RESP:
|
||||||
成功: 返回"success", http code 200
|
成功: 返回"success", http code 200
|
||||||
失败: 返回包含错误信息的 json, http code 400
|
失败: 返回包含错误信息的 json, http code 400
|
||||||
@ -80,7 +85,9 @@ RESP:
|
|||||||
endpoint: `/set_sovits_weights`
|
endpoint: `/set_sovits_weights`
|
||||||
|
|
||||||
GET:
|
GET:
|
||||||
`http://127.0.0.1:9880/set_sovits_weights?weights_path=GPT_SoVITS/pretrained_models/s2G488k.pth`
|
```
|
||||||
|
http://127.0.0.1:9880/set_sovits_weights?weights_path=GPT_SoVITS/pretrained_models/s2G488k.pth
|
||||||
|
```
|
||||||
|
|
||||||
RESP:
|
RESP:
|
||||||
成功: 返回"success", http code 200
|
成功: 返回"success", http code 200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user