---
title: "DiarizeListener"
sidebar_label: "DiarizeListener"
description: "Kotlin binding reference: DiarizeListener."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[DiarizeListener](index.md)

# DiarizeListener

[common]\
interface [DiarizeListener](index.md)

The calls a speaker-diarization request makes on the model's worker thread, in order: [onSegments](onSegments.md) once with who spoke when, in time order, then [onDone](onDone.md); or [onError](onError.md) alone when the request fails.

## Functions

| Name | Summary |
|---|---|
| [onDone](onDone.md) | [common]<br>abstract fun [onDone](onDone.md)(report: [DiarizeReport](../DiarizeReport/index.md))<br>The request ended: its facts. A canceled request ends here with [DiarizeReport.canceled](../DiarizeReport/canceled.md) true. |
| [onError](onError.md) | [common]<br>abstract fun [onError](onError.md)(message: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))<br>The request failed; the model's message. The request is over. |
| [onSegments](onSegments.md) | [common]<br>abstract fun [onSegments](onSegments.md)(segments: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[SpeakerSegment](../SpeakerSegment/index.md)&gt;)<br>The speakers' turns in time order; a clip with no speech answers an empty list. |