pub struct UserMessageContentInputAudio {
pub audio: String,
pub transcript: String,
}Available on crate feature
realtime only.Fields§
§audio: StringBase64-encoded audio bytes (for input_audio), these will be parsed as the
format specified in the session input audio type configuration.
This defaults to PCM 16-bit 24kHz mono if not specified.
transcript: StringTranscript of the audio (for input_audio). This is not sent to the model,
but will be attached to the message item for reference.
Trait Implementations§
Source§impl Clone for UserMessageContentInputAudio
impl Clone for UserMessageContentInputAudio
Source§fn clone(&self) -> UserMessageContentInputAudio
fn clone(&self) -> UserMessageContentInputAudio
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserMessageContentInputAudio
impl Debug for UserMessageContentInputAudio
Source§impl<'de> Deserialize<'de> for UserMessageContentInputAudio
impl<'de> Deserialize<'de> for UserMessageContentInputAudio
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UserMessageContentInputAudio
impl RefUnwindSafe for UserMessageContentInputAudio
impl Send for UserMessageContentInputAudio
impl Sync for UserMessageContentInputAudio
impl Unpin for UserMessageContentInputAudio
impl UnwindSafe for UserMessageContentInputAudio
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