pub struct AudioInputTurnDetectionServerVad {
pub type_: String,
pub create_response: Option<bool>,
pub idle_timeout_ms: Option<i64>,
pub interrupt_response: Option<bool>,
pub prefix_padding_ms: Option<i64>,
pub silence_duration_ms: Option<i64>,
pub threshold: Option<f64>,
}Expand description
Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence.
Fields§
§type_: StringType of turn detection, server_vad to turn on simple Server VAD.
create_response: Option<bool>Whether or not to automatically generate a response when a VAD stop event
idle_timeout_ms: Option<i64>Optional timeout after which a model response will be triggered automatically.
interrupt_response: Option<bool>Whether or not to automatically interrupt (cancel) any ongoing response with
prefix_padding_ms: Option<i64>Used only for server_vad mode.
silence_duration_ms: Option<i64>Used only for server_vad mode.
threshold: Option<f64>Used only for server_vad mode.
Trait Implementations§
Source§impl Clone for AudioInputTurnDetectionServerVad
impl Clone for AudioInputTurnDetectionServerVad
Source§fn clone(&self) -> AudioInputTurnDetectionServerVad
fn clone(&self) -> AudioInputTurnDetectionServerVad
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AudioInputTurnDetectionServerVad
impl<'de> Deserialize<'de> for AudioInputTurnDetectionServerVad
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AudioInputTurnDetectionServerVad
impl RefUnwindSafe for AudioInputTurnDetectionServerVad
impl Send for AudioInputTurnDetectionServerVad
impl Sync for AudioInputTurnDetectionServerVad
impl Unpin for AudioInputTurnDetectionServerVad
impl UnsafeUnpin for AudioInputTurnDetectionServerVad
impl UnwindSafe for AudioInputTurnDetectionServerVad
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