From eeee661acc3cba5166c2bebc836f93520ca4c74b Mon Sep 17 00:00:00 2001 From: Seto <61304189@qq.com> Date: Thu, 20 Jun 2024 15:54:36 +0800 Subject: [PATCH] align tts endpoint GET and POST default parameters --- api_v3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api_v3.py b/api_v3.py index a121dfc..bdf41a4 100644 --- a/api_v3.py +++ b/api_v3.py @@ -158,7 +158,7 @@ class TTS_Request(BaseModel): streaming_mode: bool = False parallel_infer: bool = True repetition_penalty: float = 1.35 - tts_infer_yaml_path: str = None + tts_infer_yaml_path: str = "GPT_SoVITS/configs/tts_infer.yaml" """推理时需要加载的声音模型的yaml配置文件路径,如:GPT_SoVITS/configs/tts_infer.yaml""" @@ -373,7 +373,7 @@ async def tts_get_endpoint( top_k: int = 5, top_p: float = 1, temperature: float = 1, - text_split_method: str = "cut0", + text_split_method: str = "cut5", batch_size: int = 1, batch_threshold: float = 0.75, split_bucket: bool = True,