dcase_util.features.FeatureExtractor

class dcase_util.features.FeatureExtractor(fs=44100, win_length_samples=None, hop_length_samples=None, win_length_seconds=0.04, hop_length_seconds=0.02, **kwargs)[source]

Feature extractor base class

Constructor

Parameters
fsint

Sampling rate of the incoming signal

win_length_samplesint

Window length in samples

hop_length_samplesint

Hop length in samples

win_length_secondsfloat

Window length in seconds

hop_length_secondsfloat

Hop length in seconds

__init__(fs=44100, win_length_samples=None, hop_length_samples=None, win_length_seconds=0.04, hop_length_seconds=0.02, **kwargs)[source]

Constructor

Parameters
fsint

Sampling rate of the incoming signal

win_length_samplesint

Window length in samples

hop_length_samplesint

Hop length in samples

win_length_secondsfloat

Window length in seconds

hop_length_secondsfloat

Hop length in seconds

Methods

__init__([fs, win_length_samples, ...])

Constructor

extract(y)

Extract features for the audio signal (PLACEHOLDER).

log([level])

Log container content

show([mode, indent, visualize])

Print container content

to_html([indent])

Get container information in a HTML formatted string

to_string([ui, indent])

Get container information in a string

Attributes

description

Extractor description

label

Extractor label

logger

Logger instance