pub struct RealtimeServerEventInputAudioBufferSpeechStopped {
pub event_id: String,
pub audio_end_ms: u64,
pub item_id: String,
}
Expand description
Returned in server_vad
mode when the server detects the end of speech in
the audio buffer. The server will also send an conversation.item.created
event with the user message item that is created from the audio buffer.
Fields§
§event_id: String
The unique ID of the server event.
audio_end_ms: u64
Milliseconds since the session started when speech stopped. This will
correspond to the end of audio sent to the model, and thus includes the
min_silence_duration_ms
configured in the Session.
item_id: String
The ID of the user message item that will be created.
Implementations§
Source§impl RealtimeServerEventInputAudioBufferSpeechStopped
impl RealtimeServerEventInputAudioBufferSpeechStopped
Sourcepub fn builder() -> RealtimeServerEventInputAudioBufferSpeechStoppedBuilder<((), (), ())>
pub fn builder() -> RealtimeServerEventInputAudioBufferSpeechStoppedBuilder<((), (), ())>
Create a builder for building RealtimeServerEventInputAudioBufferSpeechStopped
.
On the builder, call .event_id(...)
, .audio_end_ms(...)
, .item_id(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventInputAudioBufferSpeechStopped
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventInputAudioBufferSpeechStopped
impl Clone for RealtimeServerEventInputAudioBufferSpeechStopped
Source§fn clone(&self) -> RealtimeServerEventInputAudioBufferSpeechStopped
fn clone(&self) -> RealtimeServerEventInputAudioBufferSpeechStopped
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 RealtimeServerEventInputAudioBufferSpeechStopped
impl<'de> Deserialize<'de> for RealtimeServerEventInputAudioBufferSpeechStopped
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 RealtimeServerEventInputAudioBufferSpeechStopped
impl PartialEq for RealtimeServerEventInputAudioBufferSpeechStopped
Source§fn eq(&self, other: &RealtimeServerEventInputAudioBufferSpeechStopped) -> bool
fn eq(&self, other: &RealtimeServerEventInputAudioBufferSpeechStopped) -> bool
self
and other
values to be equal, and is used by ==
.