Expand description
Raw native FFI bindings for transcribe.cpp, a C/C++ speech-to-text library built on ggml.
This crate is the unsafe, generated FFI surface. The safe, idiomatic API is
the transcribe-cpp crate.
The bindings in [transcribe_sys] are generated by bindings/rust/xtask
(bindgen, comments disabled for determinism) from
include/transcribe/extensions.h — the flattened public surface
(transcribe.h plus every family extension header) — and committed to the
repo, so building this crate needs no libclang. CI regenerates them and
diffs against the committed copy, pinned to include/transcribe.abihash
(xtask check); per-field ABI layout checks are waived because bindgen
takes layout from a real compiler (see the crate README).
Structs§
- transcribe_
abi_ struct - transcribe_
backend_ device - transcribe_
backend_ request - transcribe_
capabilities - transcribe_
device_ type - transcribe_
ext - transcribe_
ext_ slot - transcribe_
feature - transcribe_
itn_ mode - transcribe_
kv_ type - transcribe_
log_ level - transcribe_
model - transcribe_
model_ load_ params - transcribe_
moonshine_ streaming_ stream_ ext - transcribe_
parakeet_ buffered_ stream_ ext - transcribe_
parakeet_ stream_ ext - transcribe_
pnc_ mode - transcribe_
run_ params - transcribe_
segment - transcribe_
session - transcribe_
session_ limits - transcribe_
session_ params - transcribe_
status - transcribe_
stream_ commit_ policy - transcribe_
stream_ params - transcribe_
stream_ state - transcribe_
stream_ text - transcribe_
stream_ update - transcribe_
task - transcribe_
timestamp_ kind - transcribe_
timings - transcribe_
token - transcribe_
voxtral_ realtime_ stream_ ext - transcribe_
whisper_ chunk_ trace - transcribe_
whisper_ prompt_ condition - transcribe_
whisper_ run_ ext - transcribe_
word
Constants§
- PUBLIC_
HEADER_ HASH - The public-ABI digest these bindings were generated against (sha256/16 over the normalized FFI surface). The load-time version gate and the CI drift check both anchor on this value.
- TRANSCRIBE_
EXT_ KIND_ MOONSHINE_ STREAMING_ STREAM - TRANSCRIBE_
EXT_ KIND_ PARAKEET_ BUFFERED_ STREAM - TRANSCRIBE_
EXT_ KIND_ PARAKEET_ STREAM - TRANSCRIBE_
EXT_ KIND_ VOXTRAL_ REALTIME_ STREAM - TRANSCRIBE_
EXT_ KIND_ WHISPER_ RUN
Functions§
- transcribe_
abi_ ⚠struct_ align - transcribe_
abi_ ⚠struct_ size - transcribe_
backend_ ⚠available - transcribe_
backend_ ⚠device_ count - transcribe_
backend_ ⚠device_ init - transcribe_
batch_ ⚠detected_ language - transcribe_
batch_ ⚠full_ text - transcribe_
batch_ ⚠get_ segment - transcribe_
batch_ ⚠get_ timings - transcribe_
batch_ ⚠get_ token - transcribe_
batch_ ⚠get_ word - transcribe_
batch_ ⚠n_ results - transcribe_
batch_ ⚠n_ segments - transcribe_
batch_ ⚠n_ tokens - transcribe_
batch_ ⚠n_ words - transcribe_
batch_ ⚠returned_ timestamp_ kind - transcribe_
batch_ ⚠status - transcribe_
capabilities_ ⚠init - transcribe_
close ⚠ - transcribe_
detected_ ⚠language - transcribe_
ext_ ⚠check - transcribe_
full_ ⚠text - transcribe_
get_ ⚠backend_ device - transcribe_
get_ ⚠model - transcribe_
get_ ⚠segment - transcribe_
get_ ⚠timings - transcribe_
get_ ⚠token - transcribe_
get_ ⚠whisper_ chunk_ count - transcribe_
get_ ⚠whisper_ chunk_ trace - transcribe_
get_ ⚠word - transcribe_
init_ ⚠backends - transcribe_
init_ ⚠backends_ default - transcribe_
log_ ⚠set - transcribe_
model_ ⚠accepts_ ext_ kind - transcribe_
model_ ⚠arch_ string - transcribe_
model_ ⚠backend - transcribe_
model_ ⚠free - transcribe_
model_ ⚠get_ capabilities - transcribe_
model_ ⚠get_ device - transcribe_
model_ ⚠load_ file - transcribe_
model_ ⚠load_ params_ init - transcribe_
model_ ⚠supports - transcribe_
model_ ⚠variant_ string - transcribe_
moonshine_ ⚠streaming_ stream_ ext_ init - transcribe_
n_ ⚠segments - transcribe_
n_ ⚠tokens - transcribe_
n_ ⚠words - transcribe_
open ⚠ - transcribe_
parakeet_ ⚠buffered_ stream_ ext_ init - transcribe_
parakeet_ ⚠stream_ ext_ init - transcribe_
print_ ⚠timings - transcribe_
reset_ ⚠timings - transcribe_
returned_ ⚠timestamp_ kind - transcribe_
run ⚠ - transcribe_
run_ ⚠batch - transcribe_
run_ ⚠params_ init - transcribe_
segment_ ⚠init - transcribe_
session_ ⚠free - transcribe_
session_ ⚠get_ limits - transcribe_
session_ ⚠init - transcribe_
session_ ⚠limits_ init - transcribe_
session_ ⚠params_ init - transcribe_
set_ ⚠abort_ callback - transcribe_
status_ ⚠string - transcribe_
stream_ ⚠begin - transcribe_
stream_ ⚠feed - transcribe_
stream_ ⚠finalize - transcribe_
stream_ ⚠get_ state - transcribe_
stream_ ⚠get_ text - transcribe_
stream_ ⚠last_ status - transcribe_
stream_ ⚠n_ committed_ segments - transcribe_
stream_ ⚠n_ committed_ tokens - transcribe_
stream_ ⚠n_ committed_ words - transcribe_
stream_ ⚠params_ init - transcribe_
stream_ ⚠reset - transcribe_
stream_ ⚠revision - transcribe_
stream_ ⚠text_ init - transcribe_
stream_ ⚠update_ init - transcribe_
timings_ ⚠init - transcribe_
token_ ⚠init - transcribe_
tokenize ⚠ - transcribe_
version ⚠ - transcribe_
version_ ⚠commit - transcribe_
voxtral_ ⚠realtime_ stream_ ext_ init - transcribe_
was_ ⚠aborted - transcribe_
was_ ⚠truncated - transcribe_
whisper_ ⚠chunk_ trace_ init - transcribe_
whisper_ ⚠run_ ext_ init - transcribe_
word_ ⚠init