pub struct RealtimeServerEventConversationItemInputAudioTranscriptionCompleted {
    pub event_id: String,
    pub item_id: String,
    pub content_index: u64,
    pub transcript: String,
    pub logprobs: Option<Vec<LogProbProperties>>,
}Expand description
This event is the output of audio transcription for user audio written to the
user audio buffer. Transcription begins when the input audio buffer is
committed by the client or server (in server_vad mode). Transcription runs
asynchronously with Response creation, so this event may come before or after
the Response events.
Realtime API models accept audio natively, and thus input transcription is a
separate process run on a separate ASR (Automatic Speech Recognition) model,
currently always whisper-1. Thus the transcript may diverge somewhat from
the model’s interpretation, and should be treated as a rough guide.
Fields§
§event_id: StringThe unique ID of the server event.
item_id: StringThe ID of the user message item containing the audio.
content_index: u64The index of the content part containing the audio.
transcript: StringThe transcribed text.
logprobs: Option<Vec<LogProbProperties>>The log probabilities of the transcription.
Implementations§
Source§impl RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
 
impl RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
Sourcepub fn builder() -> RealtimeServerEventConversationItemInputAudioTranscriptionCompletedBuilder<((), (), (), (), ())>
 
pub fn builder() -> RealtimeServerEventConversationItemInputAudioTranscriptionCompletedBuilder<((), (), (), (), ())>
Create a builder for building RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.
On the builder, call .event_id(...), .item_id(...), .content_index(...), .transcript(...), .logprobs(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.
Trait Implementations§
Source§impl Clone for RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
 
impl Clone for RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
Source§fn clone(
    &self,
) -> RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
 
fn clone( &self, ) -> RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
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 RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
 
impl<'de> Deserialize<'de> for RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
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 RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
 
impl PartialEq for RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
Source§fn eq(
    &self,
    other: &RealtimeServerEventConversationItemInputAudioTranscriptionCompleted,
) -> bool
 
fn eq( &self, other: &RealtimeServerEventConversationItemInputAudioTranscriptionCompleted, ) -> bool
self and other values to be equal, and is used by ==.