WhisperCpp.Word (whisper_cpp v0.5.0)

Copy Markdown View Source

One word produced by :word_timestamps.

Times are absolute seconds within the input audio. probability is the minimum per-token acoustic probability across the tokens that make up this word (matching faster-whisper's per-word confidence reduction); filter at e.g. probability < 0.3 to flag low-confidence words.

Scripts without spaces between words (zh, ja, th, lo, my, yue) split per token instead, as OpenAI whisper does: each text is one or more whole characters, and trailing punctuation such as 。 or 、 joins the word before it.

Summary

Types

t()

@type t() :: %WhisperCpp.Word{
  end: float(),
  probability: float(),
  start: float(),
  text: String.t()
}