gopalagra commited on
Commit
5046999
·
verified ·
1 Parent(s): 843b381

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -241,7 +241,7 @@ def combine_audio(beep_path, speech_path):
241
 
242
  # Resample beep if needed
243
  if sr1 != sr2:
244
- beep = librosa.resample(beep, sr1, sr2)
245
  sr1 = sr2
246
 
247
  # Convert multi-channel to mono
 
241
 
242
  # Resample beep if needed
243
  if sr1 != sr2:
244
+ beep = librosa.resample(y=beep, orig_sr=sr1, target_sr=sr2)
245
  sr1 = sr2
246
 
247
  # Convert multi-channel to mono