Skip to content

Commit

Permalink
lower decimation factor
Browse files Browse the repository at this point in the history
  • Loading branch information
satra committed Apr 12, 2024
1 parent 57720de commit f08b9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/b2aiprep/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def plot_save_figure(audio, log_spec, prefix, outdir):
sr = audio.sample_rate
# This factor is used to decimate the waveform, which provides
# the biggest speedup.
decimate_factor = min(4 ** (int(len(signal) // (win_length * sr))), 100)
decimate_factor = min(4 ** (int(len(signal) // (win_length * sr))), 80)
signal = signal[::decimate_factor]
sr = sr // decimate_factor

Expand Down

0 comments on commit f08b9ba

Please sign in to comment.