pub struct MtmdAudioRequest {
pub seq_id: i32,
pub prompt: String,
pub lang: Option<String>,
pub top_k: i32,
pub top_p: f32,
pub seed: u32,
pub out_type: MtmdAudioOutType,
}Expand description
What to synthesize, and how.
Fields§
§seq_id: i32Sequence id to generate under.
prompt: StringText to speak.
lang: Option<String>BCP-47-ish language hint, if the pipeline takes one.
top_k: i32Top-k for the backbone sampler.
top_p: f32Top-p for the backbone sampler.
seed: u32Seed; u32::MAX means random.
out_type: MtmdAudioOutTypeContainer for MtmdAudioGen::output.
Implementations§
Trait Implementations§
Source§impl Clone for MtmdAudioRequest
impl Clone for MtmdAudioRequest
Auto Trait Implementations§
impl Freeze for MtmdAudioRequest
impl RefUnwindSafe for MtmdAudioRequest
impl Send for MtmdAudioRequest
impl Sync for MtmdAudioRequest
impl Unpin for MtmdAudioRequest
impl UnsafeUnpin for MtmdAudioRequest
impl UnwindSafe for MtmdAudioRequest
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