pub struct RealtimeAudioChunk {
pub response_id: String,
pub item_id: String,
pub output_index: Option<u64>,
pub content_index: Option<u64>,
pub data: Bytes,
}Available on crate feature
realtime only.Expand description
One decoded response.audio.delta payload with its correlation metadata.
Fields§
§response_id: StringId of the response this audio belongs to.
item_id: StringId of the output item this audio belongs to.
output_index: Option<u64>Index of the output item within the response, when supplied.
content_index: Option<u64>Index of the content part within the output item, when supplied.
data: BytesDecoded raw 24 kHz, mono, 16-bit PCM bytes.
Trait Implementations§
Source§impl Clone for RealtimeAudioChunk
impl Clone for RealtimeAudioChunk
Source§fn clone(&self) -> RealtimeAudioChunk
fn clone(&self) -> RealtimeAudioChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for RealtimeAudioChunk
impl RefUnwindSafe for RealtimeAudioChunk
impl Send for RealtimeAudioChunk
impl Sync for RealtimeAudioChunk
impl Unpin for RealtimeAudioChunk
impl UnsafeUnpin for RealtimeAudioChunk
impl UnwindSafe for RealtimeAudioChunk
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