Overview
Process audio in chunks for real-time speaker labeling. Use this when you need speaker labels while transcription is happening. For most use cases, the offline pipeline is more accurate.
Quick Start
Chunk Size Considerations
Real-time Audio Capture
Benchmarks
AMI SDM (meeting recordings, single distant microphone):
Streaming diarization is 10-15% worse DER than offline. Only use streaming when you critically need real-time speaker labels. For most apps, offline is more than fast enough.
Tips
- Keep one
DiarizerManager per stream for consistent speaker IDs
- Always rebase per-chunk timestamps by
(chunkStartSample / sampleRate)
- Provide 16 kHz mono Float32 samples
- Tune
speakerThreshold and embeddingThreshold to trade off ID stability vs. sensitivity