Low-level Rustler bindings to ct2rs::sys::Whisper.
This module is private to the library. Use WhisperCt2 for the public API.
Stub names must match the Rust NIF symbols verbatim (Rustler verifies arity
at module load time); user-friendly wrappers live below them.
Summary
Functions
CPU/CUDA device counts and the build's CUDA-support flag.
Loads a CT2 Whisper model directory.
Returns model metadata.
Runs Whisper on a buffer of PCM samples.
Runs Whisper on a list of PCM sample buffers in one batched generate
call. Returns a list of structured transcription maps in input order.
Functions
CPU/CUDA device counts and the build's CUDA-support flag.
Loads a CT2 Whisper model directory.
Returns model metadata.
Runs Whisper on a buffer of PCM samples.
samples_bin is a binary of little-endian f32 samples (mono, 16 kHz).
Audio longer than the 30 s Whisper window is chunked and batched
internally; the encoder runs once across all chunks. Returns a structured
transcription map (%{language, duration_s, segments: [...]}).
Runs Whisper on a list of PCM sample buffers in one batched generate
call. Returns a list of structured transcription maps in input order.