//clika-runtime/io.clika.modelverse/DiarizationModel/diarize
diarize
[common]
fun diarize(pcm16: ShortArray, sampleRate: Int, options: DiarizeOptions = DiarizeOptions(), listener: DiarizeListener): DiarizeHandle
Diarize pcm16, mono 16-bit samples at sampleRate hertz (the clip is resampled to the model's 16 kHz), under options. Returns at once; the worker runs the request and calls listener on its thread: DiarizeListener.onSegments with the segments in time order, then DiarizeListener.onDone with the DiarizeReport.