Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|