dcase_util.containers.AudioContainer.set_focus

AudioContainer.set_focus(start=None, stop=None, duration=None, start_seconds=None, stop_seconds=None, duration_seconds=None, channel=None)[source]

Set focus segment

Parameters
startint

Sample index of focus segment start. Default value None

stopint

Sample index of focus segment stop. Default value None

durationint

Sample count of focus segment. Default value None

start_secondsfloat

Time stamp (in seconds) of focus segment start. Default value None

stop_secondsfloat

Time stamp (in seconds) of focus segment stop. Default value None

duration_secondsfloat

Duration (in seconds) of focus segment. Default value None

channelint or str

Audio channel id or name to focus. In case of stereo signal, valid channel labels to select single channel are ‘L’, ‘R’, ‘left’, and ‘right’ or 0, 1, and to get mixed down version of all channels ‘mixdown’. Default value None

Returns
self