dcase_util.processors.RMSEnergyExtractorProcessor

class dcase_util.processors.RMSEnergyExtractorProcessor(fs=44100, win_length_samples=None, hop_length_samples=None, win_length_seconds=0.04, hop_length_seconds=0.02, spectrogram_type='magnitude', n_fft=2048, window_type='hamming_asymmetric', center=True, **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.

centerbool

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

__init__(fs=44100, win_length_samples=None, hop_length_samples=None, win_length_seconds=0.04, hop_length_seconds=0.02, spectrogram_type='magnitude', n_fft=2048, window_type='hamming_asymmetric', center=True, **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.

centerbool

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

Methods

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

Constructor

delimiter([exclude_delimiters])

Use csv.sniffer to guess delimiter for CSV file

detect_file_format([filename])

Detect file format from extension

empty()

Check if file is empty

exists()

Checks that file exists

extract(y)

Extract features for the audio signal.

get_file_information()

Get file information, filename

get_processing_chain_item()

Get processing chain item with current Processor data.

get_spectrogram(y[, n_fft, ...])

Spectrogram

get_window_function(n[, window_type])

Window function

is_package([filename])

Determine if the file is compressed package.

load([filename])

Load file

log([level])

Log container content

process([data, store_processing_chain])

Extract features

save([filename])

Save file

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

validate_format()

Validate file format

Attributes

bytes

File size in bytes

description

Extractor description

input_type

Input data type

label

Extractor label

logger

Logger instance

md5

Checksum for file.

output_type

Output data type

valid_formats

Valid file formats