Hendrik Schroeter commited on
Commit
e88b7ef
1 Parent(s): e2efa2c

Fix output sr

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -84,6 +84,7 @@ def mix_and_denoise(speech_rec, speech_upl, noise, snr):
84
  if meta.sample_rate != sr:
85
  enhanced = resample(enhanced, sr, meta.sample_rate)
86
  noisy = resample(noisy, sr, meta.sample_rate)
 
87
  noisy_fn = tempfile.NamedTemporaryFile(suffix="noisy.wav", delete=False).name
88
  save_audio(noisy_fn, noisy, sr)
89
  enhanced_fn = tempfile.NamedTemporaryFile(suffix="enhanced.wav", delete=False).name
 
84
  if meta.sample_rate != sr:
85
  enhanced = resample(enhanced, sr, meta.sample_rate)
86
  noisy = resample(noisy, sr, meta.sample_rate)
87
+ sr = meta.sample_rate
88
  noisy_fn = tempfile.NamedTemporaryFile(suffix="noisy.wav", delete=False).name
89
  save_audio(noisy_fn, noisy, sr)
90
  enhanced_fn = tempfile.NamedTemporaryFile(suffix="enhanced.wav", delete=False).name