dcase_util.features.ZeroCrossingRateExtractor

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

Feature extractor class to extract zero crossing rate features

Constructor

Parameters
fsint

Sampling rate of the incoming signal. Default value 44100

win_length_samplesint

Window length in samples. Default value None

hop_length_samplesint

Hop length in samples. Default value None

win_length_secondsfloat

Window length in seconds. Default value 0.04

hop_length_secondsfloat

Hop length in seconds. Default value 0.02

centerbool

If True, frames are centered by padding the edges of signal. Default value True

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

Constructor

Parameters
fsint

Sampling rate of the incoming signal. Default value 44100

win_length_samplesint

Window length in samples. Default value None

hop_length_samplesint

Hop length in samples. Default value None

win_length_secondsfloat

Window length in seconds. Default value 0.04

hop_length_secondsfloat

Hop length in seconds. Default value 0.02

centerbool

If True, frames are centered by padding the edges of signal. Default value True

Methods

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

Constructor

extract(y)

Extract features for the audio signal.

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