Compare commits

...

3 Commits

Author SHA1 Message Date
foreverhell
540aa7f442
Merge 36df18cbb94041a71f30501c10f3b73b18e8a1e4 into 4987df5a71696cb1333fc4c2108cc3491c4e64f5 2025-06-19 22:08:34 +08:00
Ella Zhang
4987df5a71
fixed syntax errors in api_v2.py (#2473) 2025-06-19 15:34:11 +08:00
foreverhell
36df18cbb9
Create api_v4.py
支持API调用v4
2025-05-07 18:13:01 +08:00
2 changed files with 1214 additions and 3 deletions

View File

@ -33,14 +33,14 @@ POST:
"text_split_method": "cut0", # str. text split method, see text_segmentation_method.py for details.
"batch_size": 1, # int. batch size for inference
"batch_threshold": 0.75, # float. threshold for batch splitting.
"split_bucket: True, # bool. whether to split the batch into multiple buckets.
"split_bucket": True, # bool. whether to split the batch into multiple buckets.
"speed_factor":1.0, # float. control the speed of the synthesized audio.
"streaming_mode": False, # bool. whether to return a streaming response.
"seed": -1, # int. random seed for reproducibility.
"parallel_infer": True, # bool. whether to use parallel inference.
"repetition_penalty": 1.35 # float. repetition penalty for T2S model.
"repetition_penalty": 1.35, # float. repetition penalty for T2S model.
"sample_steps": 32, # int. number of sampling steps for VITS model V3.
"super_sampling": False, # bool. whether to use super-sampling for audio when using VITS model V3.
"super_sampling": False # bool. whether to use super-sampling for audio when using VITS model V3.
}
```

1211
api_v4.py Normal file

File diff suppressed because it is too large Load Diff