WhisperCpp.Model (whisper_cpp v0.2.0)

Copy Markdown View Source

Loaded whisper.cpp model handle.

Holds an opaque NIF reference plus cached metadata. The reference is garbage-collected by the BEAM when no longer reachable; whisper.cpp frees the model at that point.

Summary

Types

device()

@type device() :: :cpu | :cuda | :hipblas | :vulkan | :metal | :coreml | :intel_sycl

t()

@type t() :: %WhisperCpp.Model{
  device: device(),
  multilingual: boolean(),
  n_vocab: pos_integer(),
  path: Path.t(),
  ref: reference(),
  sampling_rate: pos_integer()
}