Merge pull request #6 from joelmathewthomas/bugfix/demucs
Bugfix/demucs
This commit is contained in:
@@ -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.")
|
||||
@@ -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.")
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user