dcase_util.data.EventRollEncoder.encode

EventRollEncoder.encode(metadata_container, label=None, length_frames=None, length_seconds=None)[source]

Generate event roll from MetaDataContainer

Parameters
metadata_containerMetaDataContainer

Meta data

labelstr

Meta data field used to create event roll Default value None

length_framesint

length of event roll Default value None

length_secondsint, optional

length of event roll in seconds, if none given max offset of the meta data is used. Default value None

Returns
self