vak.config.spect_params.SpectParamsConfig#
- class vak.config.spect_params.SpectParamsConfig(fft_size=512, step_size=64, freq_cutoffs=None, thresh=None, transform_type=None, spect_key='s', freqbins_key='f', timebins_key='t', audio_path_key='audio_path')[source]#
Bases:
object
represents parameters for making spectrograms from audio and saving in files
- freq_cutoffs#
of two elements, lower and higher frequencies. Used to bandpass filter audio (using a Butter filter) before generating spectrogram. Default is None, in which case no bandpass filtering is applied.
- Type:
- transform_type#
one of {‘log_spect’, ‘log_spect_plus_one’}. ‘log_spect’ transforms the spectrogram to log(spectrogram), and ‘log_spect_plus_one’ does the same thing but adds one to each element. Default is None. If None, no transform is applied.
- Type:
- audio_path_key#
key for accessing path to source audio file for spectogram in files. Default is ‘audio_path’.
- Type:
- __init__(fft_size=512, step_size=64, freq_cutoffs=None, thresh=None, transform_type=None, spect_key='s', freqbins_key='f', timebins_key='t', audio_path_key='audio_path') None #
Method generated by attrs for class SpectParamsConfig.
Methods
__init__
([fft_size, step_size, ...])Method generated by attrs for class SpectParamsConfig.