diff --git a/PyHa/IsoAutio.py b/PyHa/IsoAutio.py index e021a2d..5797d76 100644 --- a/PyHa/IsoAutio.py +++ b/PyHa/IsoAutio.py @@ -729,7 +729,7 @@ def generate_automated_labels( # downsample the audio if the sample rate > 44.1 kHz # Force everything into the human hearing range. # May consider reworking this function so that it upsamples as well - if SAMPLE_RATE > Normalized_Sample_Rate: + if SAMPLE_RATE != Normalized_Sample_Rate: rate_ratio = Normalized_Sample_Rate / SAMPLE_RATE SIGNAL = scipy_signal.resample( SIGNAL, int(len(SIGNAL) * rate_ratio))