pub struct RealtimeSessionCreateRequestInputAudioNoiseReduction {
pub type: Option<RealtimeSessionCreateRequestInputAudioNoiseReductionType>,
}
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<RealtimeSessionCreateRequestInputAudioNoiseReductionType>
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 RealtimeSessionCreateRequestInputAudioNoiseReduction
impl RealtimeSessionCreateRequestInputAudioNoiseReduction
Sourcepub fn builder() -> RealtimeSessionCreateRequestInputAudioNoiseReductionBuilder<((),)>
pub fn builder() -> RealtimeSessionCreateRequestInputAudioNoiseReductionBuilder<((),)>
Create a builder for building RealtimeSessionCreateRequestInputAudioNoiseReduction
.
On the builder, call .r#type(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeSessionCreateRequestInputAudioNoiseReduction
.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateRequestInputAudioNoiseReduction
impl Clone for RealtimeSessionCreateRequestInputAudioNoiseReduction
Source§fn clone(&self) -> RealtimeSessionCreateRequestInputAudioNoiseReduction
fn clone(&self) -> RealtimeSessionCreateRequestInputAudioNoiseReduction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeSessionCreateRequestInputAudioNoiseReduction
impl Default for RealtimeSessionCreateRequestInputAudioNoiseReduction
Source§fn default() -> RealtimeSessionCreateRequestInputAudioNoiseReduction
fn default() -> RealtimeSessionCreateRequestInputAudioNoiseReduction
Source§impl<'de> Deserialize<'de> for RealtimeSessionCreateRequestInputAudioNoiseReduction
impl<'de> Deserialize<'de> for RealtimeSessionCreateRequestInputAudioNoiseReduction
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 RealtimeSessionCreateRequestInputAudioNoiseReduction
impl PartialEq for RealtimeSessionCreateRequestInputAudioNoiseReduction
Source§fn eq(
&self,
other: &RealtimeSessionCreateRequestInputAudioNoiseReduction,
) -> bool
fn eq( &self, other: &RealtimeSessionCreateRequestInputAudioNoiseReduction, ) -> bool
self
and other
values to be equal, and is used by ==
.