espnet2.fileio.omniio_audio.segment_bounds
Less than 1 minute
espnet2.fileio.omniio_audio.segment_bounds
espnet2.fileio.omniio_audio.segment_bounds(start: float, end: float, rate: int, frames: int) → Tuple[int, int]
Sample range of a Kaldi segment, as SegmentsExtractor cuts it.
seconds_to_sample(start):seconds_to_sample(end), with end == -1 meaning the end of the recording.
