Staticaliza commited on
Commit
55f3e87
·
verified ·
1 Parent(s): 8bfe9e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -188,6 +188,10 @@ footer {
188
  @torch.no_grad()
189
  @torch.inference_mode()
190
  def voice_conversion(input, reference, steps, guidance, pitch, speed):
 
 
 
 
191
  # Load and process input audio
192
  source_audio, _ = librosa.load(input, sr=sr_current)
193
  ref_audio, _ = librosa.load(reference, sr=sr_current)
 
188
  @torch.no_grad()
189
  @torch.inference_mode()
190
  def voice_conversion(input, reference, steps, guidance, pitch, speed):
191
+ inference_module, mel_fn, bigvgan_fn = model, to_mel, bigvgan_model
192
+ bitrate, sampling_rate, sr_current, hop_length_current = "320k", 16000, 22050, 256
193
+ max_context_window, overlap_wave_len = sr_current // hop_length_current * 30, 16 * hop_length_current
194
+
195
  # Load and process input audio
196
  source_audio, _ = librosa.load(input, sr=sr_current)
197
  ref_audio, _ = librosa.load(reference, sr=sr_current)