pub struct AudioInput {
pub text: Option<TextInput>,
pub clips: Vec<Vec<f32>>,
}Expand description
One input that holds audio: clips (mono 16 kHz) and, optionally, text
with one PLACEHOLDER per clip (prompt options as for text). Without
text the clips follow each other between BOS and EOS, space separated
(the processor’s "<|audio|> <|audio|>"), unprompted.
crate::egemma2_mm::MediaEncoder is the general path (audio with
images and video in one input); this one is the audio-only shortcut the
parity test checks it against.
Fields§
§text: Option<TextInput>§clips: Vec<Vec<f32>>Trait Implementations§
Source§impl Clone for AudioInput
impl Clone for AudioInput
Source§impl Debug for AudioInput
impl Debug for AudioInput
Auto Trait Implementations§
impl Freeze for AudioInput
impl RefUnwindSafe for AudioInput
impl Send for AudioInput
impl Sync for AudioInput
impl Unpin for AudioInput
impl UnsafeUnpin for AudioInput
impl UnwindSafe for AudioInput
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