nemo_curator.stages.audio.tagging.utils
nemo_curator.stages.audio.tagging.utils
Module Contents
Functions
API
Add non-speaker segments to the segments list with speaker id ‘no-speaker’.
If max_length is provided, splits non-speaker regions into chunks of that length; otherwise adds one segment per gap. Modifies segments in-place and sorts by start time.
Parameters:
segments
List of segment dicts with ‘start’ and ‘end’.
audio_duration
Total audio duration in seconds.
max_length
Optional max length for each non-speaker segment.