change sampling rate for demucs to 44.1Khz

This commit is contained in:
Joel Mathew Thomas
2024-12-26 22:17:40 +05:30
parent 9d80012cc9
commit 7f4883514d
+3 -3
View File
@@ -20,9 +20,9 @@ def test_demucs_separation_with_preprocessing():
waveform, samplerate = read_audio(input_file) waveform, samplerate = read_audio(input_file)
waveform = trim_audio(waveform, samplerate) waveform = trim_audio(waveform, samplerate)
# Resample to 41000Hz # Resample to 44100Hz
if samplerate != 41000: if samplerate != 44100:
print("Resampling audio to 41Khz") print("Resampling audio to 44.1Khz")
waveform, samplerate = resample(waveform, samplerate, 41000) waveform, samplerate = resample(waveform, samplerate, 41000)
# Create a temporary file to save the processed audio # Create a temporary file to save the processed audio