WhisperCpp.Transcription (whisper_cpp v0.2.0)

Copy Markdown View Source

Result of a WhisperCpp.transcribe/3 call.

text is the concatenated, whitespace-trimmed transcript across every segment. segments is the structured per-segment decomposition with start/end times in seconds. language is the resolved ISO code (auto-detected when not pinned). duration_s is the input audio length.

Summary

Types

t()

@type t() :: %WhisperCpp.Transcription{
  duration_s: float(),
  language: String.t(),
  segments: [WhisperCpp.Segment.t()],
  text: String.t()
}