pub struct RealtimeTranscriptionSessionCreateResponse_TurnDetection {
pub type: Option<String>,
pub threshold: Option<f64>,
pub prefix_padding_ms: Option<i64>,
pub silence_duration_ms: Option<i64>,
}
Expand description
Configuration for turn detection.
Fields§
§type: Option<String>
Type of turn detection, only server_vad
is currently supported.
threshold: Option<f64>
Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.
prefix_padding_ms: Option<i64>
Amount of audio to include before the VAD detected speech (in milliseconds).
silence_duration_ms: Option<i64>
Duration of silence to detect speech stop (in milliseconds).
Trait Implementations§
Source§impl Clone for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl Clone for RealtimeTranscriptionSessionCreateResponse_TurnDetection
Source§fn clone(&self) -> RealtimeTranscriptionSessionCreateResponse_TurnDetection
fn clone(&self) -> RealtimeTranscriptionSessionCreateResponse_TurnDetection
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 Default for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl Default for RealtimeTranscriptionSessionCreateResponse_TurnDetection
Source§fn default() -> RealtimeTranscriptionSessionCreateResponse_TurnDetection
fn default() -> RealtimeTranscriptionSessionCreateResponse_TurnDetection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl RefUnwindSafe for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl Send for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl Sync for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl Unpin for RealtimeTranscriptionSessionCreateResponse_TurnDetection
impl UnwindSafe for RealtimeTranscriptionSessionCreateResponse_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