pub struct VoxtralRunner { /* private fields */ }Implementations§
Source§impl VoxtralRunner
impl VoxtralRunner
pub fn builder() -> VoxtralRunnerBuilder
pub fn config(&self) -> &VoxtralConfig
pub fn model_dir(&self) -> &Path
pub fn encode_audio(&self, mel: &MelSpectrogram) -> Result<Vec<f32>, Error>
pub fn generate( &self, prompt_ids: &[u32], mel: &MelSpectrogram, ) -> Result<Vec<u32>, Error>
pub fn transcribe_wav( &self, wav: &Path, language: Option<&str>, ) -> Result<Vec<u32>, Error>
Auto Trait Implementations§
impl Freeze for VoxtralRunner
impl RefUnwindSafe for VoxtralRunner
impl Send for VoxtralRunner
impl Sync for VoxtralRunner
impl Unpin for VoxtralRunner
impl UnsafeUnpin for VoxtralRunner
impl UnwindSafe for VoxtralRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more