Skip to main content

Prerequisites

File-based separation

Use SourceSeparationTask for file-to-file processing:

Streaming separation

Use RingBufferInput and RingBufferOutput for real-time or streaming use cases:
Write audio frames into the input ring buffer, then read separated stems from the output ring buffer as processing proceeds.

Choosing a chunk size

Chunk size controls the trade-off between latency and throughput. Durations are approximate and vary by model. Smaller chunks reduce latency but increase CPU/GPU overhead per unit of audio.