pub struct RealtimeConfig {
pub voice: String,
pub instructions: String,
pub sample_rate: u32,
pub tools: Vec<Value>,
pub model: String,
}Expand description
Configuration for a realtime voice session.
Fields§
§voice: StringVoice to use (e.g. “Sal”, “Eve”, “Vesper” for xAI; “alloy”, “echo” for OpenAI).
instructions: StringSystem instructions for the AI.
sample_rate: u32PCM sample rate in Hz.
tools: Vec<Value>Tool definitions (xAI Realtime API format).
model: StringModel to use for the realtime session (e.g. “gpt-4o-realtime-preview”). When empty, the server picks the default for the provider.
Trait Implementations§
Source§impl Clone for RealtimeConfig
impl Clone for RealtimeConfig
Source§fn clone(&self) -> RealtimeConfig
fn clone(&self) -> RealtimeConfig
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 moreSource§impl Debug for RealtimeConfig
impl Debug for RealtimeConfig
Source§impl Default for RealtimeConfig
impl Default for RealtimeConfig
Auto Trait Implementations§
impl Freeze for RealtimeConfig
impl RefUnwindSafe for RealtimeConfig
impl Send for RealtimeConfig
impl Sync for RealtimeConfig
impl Unpin for RealtimeConfig
impl UnsafeUnpin for RealtimeConfig
impl UnwindSafe for RealtimeConfig
Blanket Implementations§
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