Add example

This commit is contained in:
KamioRinn 2024-08-19 23:38:29 +08:00
parent f20e90fac6
commit 3907c77d23

5
api.py
View File

@ -75,7 +75,7 @@ RESP:
手动指定当次推理所使用的参考音频并提供参数:
GET:
`http://127.0.0.1:9880?refer_wav_path=123.wav&prompt_text=一二三&prompt_language=zh&text=先帝创业未半而中道崩殂今天下三分益州疲弊此诚危急存亡之秋也&text_language=zh&top_k=20&top_p=0.6&temperature=0.6&speed=1`
`http://127.0.0.1:9880?refer_wav_path=123.wav&prompt_text=一二三&prompt_language=zh&text=先帝创业未半而中道崩殂今天下三分益州疲弊此诚危急存亡之秋也&text_language=zh&top_k=20&top_p=0.6&temperature=0.6&speed=1&inp_refs="456.wav"&inp_refs="789.wav"`
POST:
```json
{
@ -87,7 +87,8 @@ POST:
"top_k": 20,
"top_p": 0.6,
"temperature": 0.6,
"speed": 1
"speed": 1,
"inp_refs": ["456.wav","789.wav"]
}
```