Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import spaces
|
|
5 |
import librosa
|
6 |
|
7 |
def resample_audio(audio, target_sample_rate):
|
8 |
-
|
9 |
if current_sample_rate != target_sample_rate:
|
10 |
resampled_audio_data = librosa.resample(audio_data, orig_sr=current_sample_rate, target_sr=target_sample_rate)
|
11 |
return target_sample_rate, resampled_audio_data
|
|
|
5 |
import librosa
|
6 |
|
7 |
def resample_audio(audio, target_sample_rate):
|
8 |
+
audio_data, current_sample_rate = audio
|
9 |
if current_sample_rate != target_sample_rate:
|
10 |
resampled_audio_data = librosa.resample(audio_data, orig_sr=current_sample_rate, target_sr=target_sample_rate)
|
11 |
return target_sample_rate, resampled_audio_data
|