pub struct NativeTtsEngine { /* private fields */ }Implementations§
Source§impl NativeTtsEngine
impl NativeTtsEngine
pub fn open( store: &VoxtralTtsWeightStore, cfg: &VoxtralTtsConfig, options: &VoxtralTtsOptions, ) -> Result<NativeTtsEngine, Error>
Sourcepub fn synthesize(
&mut self,
token_ids: &[u32],
voice: &VoiceEmbedding,
gen_cfg: &GenerationConfig,
) -> Result<Vec<f32>, Error>
pub fn synthesize( &mut self, token_ids: &[u32], voice: &VoiceEmbedding, gen_cfg: &GenerationConfig, ) -> Result<Vec<f32>, Error>
Greedy audio-frame loop (matches vLLM-Omni forced audio-token sampling).
Sourcepub fn synthesize_profiled(
&mut self,
token_ids: &[u32],
voice: &VoiceEmbedding,
gen_cfg: &GenerationConfig,
) -> Result<(Vec<f32>, VoxtralTtsBenchReport), Error>
pub fn synthesize_profiled( &mut self, token_ids: &[u32], voice: &VoiceEmbedding, gen_cfg: &GenerationConfig, ) -> Result<(Vec<f32>, VoxtralTtsBenchReport), Error>
Same as Self::synthesize with per-stage timings (for benchmarks).
Sourcepub fn synthesize_codes(
&mut self,
token_ids: &[u32],
voice: &VoiceEmbedding,
gen_cfg: &GenerationConfig,
) -> Result<Vec<u32>, Error>
pub fn synthesize_codes( &mut self, token_ids: &[u32], voice: &VoiceEmbedding, gen_cfg: &GenerationConfig, ) -> Result<Vec<u32>, Error>
Return discrete codes without codec decode (parity vs vLLM stage 0).
Auto Trait Implementations§
impl !RefUnwindSafe for NativeTtsEngine
impl !Sync for NativeTtsEngine
impl !UnwindSafe for NativeTtsEngine
impl Freeze for NativeTtsEngine
impl Send for NativeTtsEngine
impl Unpin for NativeTtsEngine
impl UnsafeUnpin for NativeTtsEngine
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