Skip to content
Discussion options

You must be logged in to vote

Hi Maxime,

The current default behavior is no audio resampling, but cropping spectrograms to the frequency range 0-11,250 Hz

Spectrogram.bandpass, min_f=0, max_f=11025, out_of_bounds_ok=False

The reasoning for this is that audio resampling is computationally expensive, but I have considered changing the default behavior since users may assume audio will be resampled to a constant rate.

You can set the preprocessor to resample audio:

model=CNN(...)
model.preprocessor.pipeline.load_audio.set(sample_rate=32000)

and/or can modify or disable spectrogram bandpass similarly:

model.preprocessor.pipeline.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sammlapp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants