pub struct RealtimeClientEventInputAudioBufferAppend {
    pub event_id: Option<String>,
    pub audio: String,
}Expand description
Send this event to append audio bytes to the input audio buffer. The audio buffer is temporary storage you can write to and later commit. In Server VAD mode, the audio buffer is used to detect speech and the server will decide when to commit. When Server VAD is disabled, you must commit the audio buffer manually.
The client may choose how much audio to place in each event up to a maximum of 15 MiB, for example streaming smaller chunks from the client may allow the VAD to be more responsive. Unlike made other client events, the server will not send a confirmation response to this event.
Fields§
§event_id: Option<String>Optional client-generated ID used to identify this event.
audio: StringBase64-encoded audio bytes. This must be in the format specified by the
input_audio_format field in the session configuration.
Implementations§
Source§impl RealtimeClientEventInputAudioBufferAppend
 
impl RealtimeClientEventInputAudioBufferAppend
Sourcepub fn builder() -> RealtimeClientEventInputAudioBufferAppendBuilder<((), ())>
 
pub fn builder() -> RealtimeClientEventInputAudioBufferAppendBuilder<((), ())>
Create a builder for building RealtimeClientEventInputAudioBufferAppend.
On the builder, call .event_id(...)(optional), .audio(...) to set the values of the fields.
Finally, call .build() to create the instance of RealtimeClientEventInputAudioBufferAppend.
Trait Implementations§
Source§impl Clone for RealtimeClientEventInputAudioBufferAppend
 
impl Clone for RealtimeClientEventInputAudioBufferAppend
Source§fn clone(&self) -> RealtimeClientEventInputAudioBufferAppend
 
fn clone(&self) -> RealtimeClientEventInputAudioBufferAppend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferAppend
 
impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferAppend
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>,
Source§impl PartialEq for RealtimeClientEventInputAudioBufferAppend
 
impl PartialEq for RealtimeClientEventInputAudioBufferAppend
Source§fn eq(&self, other: &RealtimeClientEventInputAudioBufferAppend) -> bool
 
fn eq(&self, other: &RealtimeClientEventInputAudioBufferAppend) -> bool
self and other values to be equal, and is used by ==.