Skip to content

Commit

Permalink
fixed extra parameters added due to a bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AznamirWoW committed Oct 29, 2024
1 parent 7d4df26 commit b32c246
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def run_infer_script(
delay_mix: float = 0.5,
sid: int = 0,
):
infer_pipeline = import_voice_converter()
kwargs = {
"audio_input_path": input_path,
"audio_output_path": output_path,
Expand Down Expand Up @@ -153,19 +152,6 @@ def run_infer_script(
"clipping": clipping,
"compressor": compressor,
"delay": delay,
"formant_shifting": formant_shifting,
"formant_qfrency": formant_qfrency,
"formant_timbre": formant_timbre,
"reverb": reverb,
"pitch_shift": pitch_shift,
"limiter": limiter,
"gain": gain,
"distortion": distortion,
"chorus": chorus,
"bitcrush": bitcrush,
"clipping": clipping,
"compressor": compressor,
"delay": delay,
"reverb_room_size": reverb_room_size,
"reverb_damping": reverb_damping,
"reverb_wet_level": reverb_wet_gain,
Expand Down Expand Up @@ -193,6 +179,7 @@ def run_infer_script(
"delay_mix": delay_mix,
"sid": sid,
}
infer_pipeline = import_voice_converter()
infer_pipeline.convert_audio(
**kwargs,
)
Expand Down Expand Up @@ -277,8 +264,6 @@ def run_batch_infer_script(
"protect": protect,
"hop_length": hop_length,
"f0_method": f0_method,
"input_folder": input_folder,
"output_folder": output_folder,
"pth_path": pth_path,
"index_path": index_path,
"split_audio": split_audio,
Expand Down Expand Up @@ -2353,12 +2338,12 @@ def main():
clean_strength=args.clean_strength,
export_format=args.export_format,
embedder_model=args.embedder_model,
embedder_model_custom=args.embedder_model_custom,
upscale_audio=args.upscale_audio,
f0_file=args.f0_file,
formant_shifting=args.formant_shifting,
formant_qfrency=args.formant_qfrency,
formant_timbre=args.formant_timbre,
embedder_model_custom=args.embedder_model_custom,
sid=args.sid,
post_process=args.post_process,
reverb=args.reverb,
Expand Down

0 comments on commit b32c246

Please sign in to comment.