pub enum TurnDetectionType {
ClientVad,
ServerVad,
}Expand description
VAD (voice-activity-detection) mode. ClientVad (default) lets the client
decide when to commit audio; ServerVad has the server detect speech and
auto-commit (and supports interruption handling).
Variants§
ClientVad
Client-driven VAD (client uploads + commits audio manually).
ServerVad
Server-driven VAD (server detects speech, auto-commits, handles
interruption via response.cancel).
Trait Implementations§
Source§impl Clone for TurnDetectionType
impl Clone for TurnDetectionType
Source§fn clone(&self) -> TurnDetectionType
fn clone(&self) -> TurnDetectionType
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 moreimpl Copy for TurnDetectionType
Source§impl Debug for TurnDetectionType
impl Debug for TurnDetectionType
Source§impl Default for TurnDetectionType
impl Default for TurnDetectionType
Source§fn default() -> TurnDetectionType
fn default() -> TurnDetectionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TurnDetectionType
impl<'de> Deserialize<'de> for TurnDetectionType
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
impl Eq for TurnDetectionType
Source§impl PartialEq for TurnDetectionType
impl PartialEq for TurnDetectionType
Source§fn eq(&self, other: &TurnDetectionType) -> bool
fn eq(&self, other: &TurnDetectionType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TurnDetectionType
impl Serialize for TurnDetectionType
impl StructuralPartialEq for TurnDetectionType
Auto Trait Implementations§
impl Freeze for TurnDetectionType
impl RefUnwindSafe for TurnDetectionType
impl Send for TurnDetectionType
impl Sync for TurnDetectionType
impl Unpin for TurnDetectionType
impl UnsafeUnpin for TurnDetectionType
impl UnwindSafe for TurnDetectionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.