dcase_util.containers.MetaDataContainer.filter_time_segment

MetaDataContainer.filter_time_segment(start=None, stop=None, duration=None, filename=None, zero_time=True, trim=True)[source]

Filter time segment

Parameters
startfloat > 0.0

Segment start, seconds Default value None

stopfloat > 0.0

Segment end, seconds Default value None

durationfloat

Segment duration, seconds Default value None

filenamestr

Filename to filter Default value None

zero_timebool

Convert timestamps in respect to the segment start Default value True

trimbool

Trim event onsets and offset according to segment start and stop times. Default value True

Returns
MetaDataContainer