pub struct RealtimeSessionInputAudioNoiseReduction {
pub type_: Option<RealtimeSessionInputAudioNoiseReductionType>,
}
Expand description
Configuration for input audio noise reduction. This can be set to null
to turn off.
Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
Fields§
§type_: Option<RealtimeSessionInputAudioNoiseReductionType>
Type of noise reduction. near_field
is for close-talking microphones such as headphones, far_field
is for far-field microphones such as laptop or conference room microphones.
Implementations§
Source§impl RealtimeSessionInputAudioNoiseReduction
impl RealtimeSessionInputAudioNoiseReduction
Sourcepub fn builder() -> RealtimeSessionInputAudioNoiseReductionBuilder<((),)>
pub fn builder() -> RealtimeSessionInputAudioNoiseReductionBuilder<((),)>
Create a builder for building RealtimeSessionInputAudioNoiseReduction
.
On the builder, call .type_(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeSessionInputAudioNoiseReduction
.
Trait Implementations§
Source§impl Clone for RealtimeSessionInputAudioNoiseReduction
impl Clone for RealtimeSessionInputAudioNoiseReduction
Source§fn clone(&self) -> RealtimeSessionInputAudioNoiseReduction
fn clone(&self) -> RealtimeSessionInputAudioNoiseReduction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeSessionInputAudioNoiseReduction
impl Default for RealtimeSessionInputAudioNoiseReduction
Source§fn default() -> RealtimeSessionInputAudioNoiseReduction
fn default() -> RealtimeSessionInputAudioNoiseReduction
Source§impl<'de> Deserialize<'de> for RealtimeSessionInputAudioNoiseReduction
impl<'de> Deserialize<'de> for RealtimeSessionInputAudioNoiseReduction
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>,
Source§impl PartialEq for RealtimeSessionInputAudioNoiseReduction
impl PartialEq for RealtimeSessionInputAudioNoiseReduction
Source§fn eq(&self, other: &RealtimeSessionInputAudioNoiseReduction) -> bool
fn eq(&self, other: &RealtimeSessionInputAudioNoiseReduction) -> bool
self
and other
values to be equal, and is used by ==
.