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

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

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

# TranscribeListener

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

The stream of one transcription. The calls arrive in order on the model's own worker thread: [onSegment](onSegment.md) for each transcribed span, then exactly one of [onDone](onDone.md) or [onError](onError.md).

## Functions

| Name | Summary |
|---|---|
| [onDone](onDone.md) | [common]<br>abstract fun [onDone](onDone.md)(report: [TranscribeReport](../TranscribeReport/index.md))<br>The transcription ended; [report](onDone.md) says what it cost. |
| [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 transcription failed; nothing follows. |
| [onSegment](onSegment.md) | [common]<br>abstract fun [onSegment](onSegment.md)(segment: [TranscriptSegment](../TranscriptSegment/index.md))<br>A transcribed span of the clip. |