Merge pull request #6 from joelmathewthomas/bugfix/demucs

Bugfix/demucs
This commit is contained in:
SUFIYANJT
2024-12-26 22:20:39 +05:30
committed by GitHub
3 changed files with 15 additions and 15 deletions
-12
View File
@@ -1,12 +0,0 @@
# __init__.py
import logging
from datetime import datetime
# Configure logging
logging.basicConfig(
format='%(asctime)s : %(message)s',
level = logging.INFO
)
logging.info("freq-split-enhance/separation package has been imported.")
+12
View File
@@ -0,0 +1,12 @@
# __init__.py
import logging
from datetime import datetime
# Configure logging
logging.basicConfig(
format='%(asctime)s : %(message)s',
level = logging.INFO
)
logging.info("freq-split-enhance/separation package has been imported.")
+3 -3
View File
@@ -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