//clika-runtime/io.clika.modelverse/DiarizeListener
DiarizeListener
[common]
interface DiarizeListener
The calls a speaker-diarization request makes on the model's worker thread, in order: onSegments once with who spoke when, in time order, then onDone; or onError alone when the request fails.
Functions
| Name | Summary |
|---|---|
| onDone | [common] abstract fun onDone(report: DiarizeReport) The request ended: its facts. A canceled request ends here with DiarizeReport.canceled true. |
| onError | [common] abstract fun onError(message: String) The request failed; the model's message. The request is over. |
| onSegments | [common] abstract fun onSegments(segments: List<SpeakerSegment>) The speakers' turns in time order; a clip with no speech answers an empty list. |