TranscriptionResult

data class TranscriptionResult(val segments: List<WhisperSegment>, val audioDurationMs: Long, val backend: ComputeBackend)(source)

Result of one WhisperEngine.transcribe call.

Constructors

Link copied to clipboard
constructor(segments: List<WhisperSegment>, audioDurationMs: Long, backend: ComputeBackend)

Properties

Link copied to clipboard

duration of the input audio (before the >= 1000 ms zero-padding floor).

Link copied to clipboard

the backend the transcription ran on.

Link copied to clipboard

decoded segments, in order.

Link copied to clipboard

All segment texts concatenated and trimmed.

Functions

Link copied to clipboard

The result as transcription events: every segment as committed, followed by TranscriptionEvent.Completed.