Skip to main content

//clika-runtime/io.clika.modelverse/TranscribeListener

TranscribeListener

[common]
interface TranscribeListener

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

Functions​

NameSummary
onDone[common]
abstract fun onDone(report: TranscribeReport)
The transcription ended; report says what it cost.
onError[common]
abstract fun onError(message: String)
The transcription failed; nothing follows.
onSegment[common]
abstract fun onSegment(segment: TranscriptSegment)
A transcribed span of the clip.