pub struct RealtimeClientEventInputAudioBufferCommit {
pub event_id: Option<String>,
}
Expand description
Send this event to commit the user input audio buffer, which will create a new user message item in the conversation. This event will produce an error if the input audio buffer is empty. When in Server VAD mode, the client does not need to send this event, the server will commit the audio buffer automatically.
Committing the input audio buffer will trigger input audio transcription
(if enabled in session configuration), but it will not create a response
from the model. The server will respond with an input_audio_buffer.committed
event.
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
Implementations§
Source§impl RealtimeClientEventInputAudioBufferCommit
impl RealtimeClientEventInputAudioBufferCommit
Sourcepub fn builder() -> RealtimeClientEventInputAudioBufferCommitBuilder<((),)>
pub fn builder() -> RealtimeClientEventInputAudioBufferCommitBuilder<((),)>
Create a builder for building RealtimeClientEventInputAudioBufferCommit
.
On the builder, call .event_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventInputAudioBufferCommit
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventInputAudioBufferCommit
impl Clone for RealtimeClientEventInputAudioBufferCommit
Source§fn clone(&self) -> RealtimeClientEventInputAudioBufferCommit
fn clone(&self) -> RealtimeClientEventInputAudioBufferCommit
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeClientEventInputAudioBufferCommit
impl Default for RealtimeClientEventInputAudioBufferCommit
Source§fn default() -> RealtimeClientEventInputAudioBufferCommit
fn default() -> RealtimeClientEventInputAudioBufferCommit
Source§impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferCommit
impl<'de> Deserialize<'de> for RealtimeClientEventInputAudioBufferCommit
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 RealtimeClientEventInputAudioBufferCommit
impl PartialEq for RealtimeClientEventInputAudioBufferCommit
Source§fn eq(&self, other: &RealtimeClientEventInputAudioBufferCommit) -> bool
fn eq(&self, other: &RealtimeClientEventInputAudioBufferCommit) -> bool
self
and other
values to be equal, and is used by ==
.