Skip to main content

class  pixeltable.iterators.AudioSplitter

Iterator over chunks of an audio file. The audio file is split into smaller chunks, where the duration of each chunk is determined by chunk_duration_sec. The iterator yields audio chunks as pxt.Audio, along with the start and end time of each chunk. If the input contains no audio, no chunks are yielded. Parameters:
  • chunk_duration_sec (float): Audio chunk duration in seconds
  • overlap_sec (float, default: 0.0): Overlap between consecutive chunks in seconds.
  • min_chunk_duration_sec (float, default: 0.0): Drop the last chunk if it is smaller than min_chunk_duration_sec