Skip to content

Commit

Permalink
Merge pull request #98 from UCSD-E4E/Resampling-generalizability
Browse files Browse the repository at this point in the history
Made resampling more general
  • Loading branch information
JacobGlennAyers committed Feb 12, 2022
2 parents 3896104 + a8b0c04 commit 8f18854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyHa/IsoAutio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8f18854

Please sign in to comment.