pub enum RealtimeEvent {
SessionReady,
AudioData(Vec<u8>),
AudioTranscript(String),
AudioTranscriptCompleted(String, String),
UserTranscriptCompleted(String, String),
SpeechStarted,
SpeechStopped,
ResponseCompleted,
FunctionCallRequest {
name: String,
call_id: String,
arguments: String,
},
Error(String),
}Expand description
Events sent from the realtime client to the UI
Variants§
SessionReady
Session is ready for communication
AudioData(Vec<u8>)
Audio data received (PCM16 format)
AudioTranscript(String)
Text transcript of received audio (delta)
AudioTranscriptCompleted(String, String)
Complete AI audio transcript
UserTranscriptCompleted(String, String)
Complete user audio transcript
SpeechStarted
User started speaking
SpeechStopped
User stopped speaking
ResponseCompleted
AI response completed
FunctionCallRequest
Function call requested by AI
Error(String)
Error occurred
Trait Implementations§
Source§impl Clone for RealtimeEvent
impl Clone for RealtimeEvent
Source§fn clone(&self) -> RealtimeEvent
fn clone(&self) -> RealtimeEvent
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 moreAuto Trait Implementations§
impl Freeze for RealtimeEvent
impl RefUnwindSafe for RealtimeEvent
impl Send for RealtimeEvent
impl Sync for RealtimeEvent
impl Unpin for RealtimeEvent
impl UnwindSafe for RealtimeEvent
Blanket Implementations§
§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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