pub struct RealtimeSessionCreateRequest_TurnDetection {
pub type: Option<String>,
pub eagerness: Option<String>,
pub threshold: Option<f64>,
pub prefix_padding_ms: Option<i64>,
pub silence_duration_ms: Option<i64>,
pub create_response: Option<bool>,
pub interrupt_response: Option<bool>,
}
Expand description
Configuration for turn detection, ether Server VAD or Semantic VAD.
Fields§
§type: Option<String>
Type of turn detection.
eagerness: Option<String>
Used only for semantic_vad
mode.
threshold: Option<f64>
Used only for server_vad
mode.
prefix_padding_ms: Option<i64>
Used only for server_vad
mode.
silence_duration_ms: Option<i64>
Used only for server_vad
mode.
create_response: Option<bool>
Whether or not to automatically generate a response when a VAD stop event occurs.
interrupt_response: Option<bool>
Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateRequest_TurnDetection
impl Clone for RealtimeSessionCreateRequest_TurnDetection
Source§fn clone(&self) -> RealtimeSessionCreateRequest_TurnDetection
fn clone(&self) -> RealtimeSessionCreateRequest_TurnDetection
Returns a copy 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 Default for RealtimeSessionCreateRequest_TurnDetection
impl Default for RealtimeSessionCreateRequest_TurnDetection
Source§fn default() -> RealtimeSessionCreateRequest_TurnDetection
fn default() -> RealtimeSessionCreateRequest_TurnDetection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateRequest_TurnDetection
impl RefUnwindSafe for RealtimeSessionCreateRequest_TurnDetection
impl Send for RealtimeSessionCreateRequest_TurnDetection
impl Sync for RealtimeSessionCreateRequest_TurnDetection
impl Unpin for RealtimeSessionCreateRequest_TurnDetection
impl UnwindSafe for RealtimeSessionCreateRequest_TurnDetection
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