From 7f4883514d2d9f23981b78543740a0c35dcbca55 Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Thu, 26 Dec 2024 22:17:40 +0530 Subject: [PATCH] change sampling rate for demucs to 44.1Khz --- tests/test_separation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_separation.py b/tests/test_separation.py index a297292..5241124 100644 --- a/tests/test_separation.py +++ b/tests/test_separation.py @@ -20,9 +20,9 @@ def test_demucs_separation_with_preprocessing(): waveform, samplerate = read_audio(input_file) waveform = trim_audio(waveform, samplerate) - # Resample to 41000Hz - if samplerate != 41000: - print("Resampling audio to 41Khz") + # Resample to 44100Hz + if samplerate != 44100: + print("Resampling audio to 44.1Khz") waveform, samplerate = resample(waveform, samplerate, 41000) # Create a temporary file to save the processed audio