Vladimir Alabov commited on
Commit
3927ad3
1 Parent(s): 8668f22

Fix inference_cmd #2

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def run_inference(input_audio, speaker):
75
  soundfile.write(raw_path, audio, 16000, format="wav")
76
  raw_path.seek(0)
77
 
78
- inference_cmd = f"svc infer {raw_path} -m {model_path} -c {config_path} {f'-k {cluster_path} -r {cluster_ratio}' if cluster_path != '' and cluster_ratio > 0 else ''} -t {transpose} --f0-method {f0_method} -n {noise_scale} -o {INFERENCE_OUTPUT_DIRNAME}/{raw_path.name} {'' if is_pitch_prediction_enabled else '--no-auto-predict-f0'}"
79
  print(inference_cmd)
80
  # out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
81
  # auto_predict_f0=True,
 
75
  soundfile.write(raw_path, audio, 16000, format="wav")
76
  raw_path.seek(0)
77
 
78
+ inference_cmd = f"svc infer {raw_path} -m {model_path} -c {config_path} {f'-k {cluster_path} -r {cluster_ratio}' if cluster_path != '' and cluster_ratio > 0 else ''} -t {transpose} --f0-method {f0_method} -n {noise_scale} -o {INFERENCE_OUTPUT_DIRNAME}/out.wav {'' if is_pitch_prediction_enabled else '--no-auto-predict-f0'}"
79
  print(inference_cmd)
80
  # out_audio, out_sr = model.infer(sid, vc_transform, raw_path,
81
  # auto_predict_f0=True,