pub struct RealtimeServerEventOutputAudioBufferCleared {
pub event_id: String,
pub response_id: String,
}
Expand description
WebRTC Only: Emitted when the output audio buffer is cleared. This happens either in VAD
mode when the user has interrupted (input_audio_buffer.speech_started
),
or when the client has emitted the output_audio_buffer.clear
event to manually
cut off the current audio response.
Learn more.
Fields§
§event_id: String
The unique ID of the server event.
response_id: String
The unique ID of the response that produced the audio.
Implementations§
Source§impl RealtimeServerEventOutputAudioBufferCleared
impl RealtimeServerEventOutputAudioBufferCleared
Sourcepub fn builder() -> RealtimeServerEventOutputAudioBufferClearedBuilder<((), ())>
pub fn builder() -> RealtimeServerEventOutputAudioBufferClearedBuilder<((), ())>
Create a builder for building RealtimeServerEventOutputAudioBufferCleared
.
On the builder, call .event_id(...)
, .response_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventOutputAudioBufferCleared
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventOutputAudioBufferCleared
impl Clone for RealtimeServerEventOutputAudioBufferCleared
Source§fn clone(&self) -> RealtimeServerEventOutputAudioBufferCleared
fn clone(&self) -> RealtimeServerEventOutputAudioBufferCleared
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<'de> Deserialize<'de> for RealtimeServerEventOutputAudioBufferCleared
impl<'de> Deserialize<'de> for RealtimeServerEventOutputAudioBufferCleared
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
Source§impl PartialEq for RealtimeServerEventOutputAudioBufferCleared
impl PartialEq for RealtimeServerEventOutputAudioBufferCleared
Source§fn eq(&self, other: &RealtimeServerEventOutputAudioBufferCleared) -> bool
fn eq(&self, other: &RealtimeServerEventOutputAudioBufferCleared) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventOutputAudioBufferCleared
Auto Trait Implementations§
impl Freeze for RealtimeServerEventOutputAudioBufferCleared
impl RefUnwindSafe for RealtimeServerEventOutputAudioBufferCleared
impl Send for RealtimeServerEventOutputAudioBufferCleared
impl Sync for RealtimeServerEventOutputAudioBufferCleared
impl Unpin for RealtimeServerEventOutputAudioBufferCleared
impl UnwindSafe for RealtimeServerEventOutputAudioBufferCleared
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