INNER CODE UNIT · Python
db_thresh
voicepaw/so-vits-svc-fork · src/so_vits_svc_fork/inference/main.py:38
db_thresh: int = -40,
pad_seconds: float = 0.5,
chunk_seconds: float = 0.5,
absolute_thresh: bool = False,
max_chunk_seconds: float = 40,
device: str | torch.device = get_optimal_device(),
):
if isinstance(input_path, (str, Path)):
input_path = [input_path]
if isinstance(output_path, (str, Path)):
output_path = [output_path]
if len(input_path) != len(output_path):
raise ValueError(f"input_path and output_path must have same length, but got {len(input_path)} and {len(output_path)}")
model_path = Path(model_path)
config_path = Path(config_path)
output_path = [Path(p) for p in output_path]
input_path = [Path(p) for p in input_path]