pub struct SynthesizeRequest {
pub text: String,
pub temperature: f32,
pub top_p: f32,
pub top_k: i32,
pub max_audio_frames: usize,
pub thread_count: usize,
pub repetition_penalty: f32,
pub language_id: i32,
pub vocoder_thread_count: usize,
pub vocoder_chunk_size: usize,
pub talker_kv_mode: TalkerKvMode,
}Fields§
§text: String§temperature: f32§top_p: f32§top_k: i32§max_audio_frames: usize§thread_count: usize§repetition_penalty: f32§language_id: i32Codec language id (e.g. 2050=en, 2055=zh, 2058=ja).
vocoder_thread_count: usizeNumber of CPU threads for vocoder decode when pipelining is enabled.
Defaults to 4. Set to 0 to derive a backend-agnostic fallback from thread_count.
vocoder_chunk_size: usizeWhen > 0, pipeline transformer (GPU) and vocoder (CPU) by processing vocoder chunks of this many frames in a background thread while the transformer continues generating. Set to 0 to disable (sequential).
talker_kv_mode: TalkerKvModeExperimental talker KV cache storage mode.
Trait Implementations§
Source§impl Clone for SynthesizeRequest
impl Clone for SynthesizeRequest
Source§impl Debug for SynthesizeRequest
impl Debug for SynthesizeRequest
Auto Trait Implementations§
impl Freeze for SynthesizeRequest
impl RefUnwindSafe for SynthesizeRequest
impl Send for SynthesizeRequest
impl Sync for SynthesizeRequest
impl Unpin for SynthesizeRequest
impl UnsafeUnpin for SynthesizeRequest
impl UnwindSafe for SynthesizeRequest
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