whispercpp 0.1.0

Safe Rust bindings for whisper.cpp speech recognition. Bundled patched build with memory-safety hardening, exception-catching FFI shim, and Send + Sync types.
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, allow(unused_attributes))]
#![deny(missing_docs)]

mod context;
mod error;
mod lang;
mod params;
mod state;
mod sys;

pub use context::{Context, ContextParams, system_info};
pub use error::{WhisperError, WhisperResult};
pub use lang::Lang;
pub use params::{
  MAX_BEAM_SIZE, MAX_INITIAL_TS_S, MAX_N_THREADS, MAX_TEMPERATURE, MIN_TEMPERATURE_INC, Params,
  SamplingStrategy,
};
pub use state::{Segment, State, Token};