You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6626656
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
Documents how to select or disable input audio noise reduction in a
Realtime session.
## Changes
- Set the noise reduction type to near_field or far_field when supplying
a configuration.
- Set noise reduction to null to turn it off.
Co-authored-by: dpiet-oai <326640584+dpiet-oai@users.noreply.github.com>
Configuration for input audio noise reduction. This can be set to `null` to turn off.
63360
+
When you supply a `noise_reduction` object, you must set `type` to `near_field` or `far_field`.
63361
+
Set `noise_reduction` to `null` to turn off input audio noise reduction.
63361
63362
Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
63362
63363
Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
Copy file name to clipboardExpand all lines: src/openai/types/realtime/realtime_audio_config_input.py
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@
12
12
13
13
14
14
classNoiseReduction(BaseModel):
15
-
"""Configuration for input audio noise reduction.
16
-
17
-
This can be set to `null` to turn off.
15
+
"""
16
+
When you supply a `noise_reduction` object, you must set `type` to `near_field` or `far_field`.
17
+
Set `noise_reduction` to `null` to turn off input audio noise reduction.
18
18
Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
19
19
Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
20
20
"""
@@ -40,12 +40,13 @@ class RealtimeAudioConfigInput(BaseModel):
40
40
"""The format of the input audio."""
41
41
42
42
noise_reduction: Optional[NoiseReduction] =None
43
-
"""Configuration for input audio noise reduction.
44
-
45
-
This can be set to `null` to turn off. Noise reduction filters audio added to
46
-
the input audio buffer before it is sent to VAD and the model. Filtering the
47
-
audio can improve VAD and turn detection accuracy (reducing false positives) and
48
-
model performance by improving perception of the input audio.
43
+
"""
44
+
When you supply a `noise_reduction` object, you must set `type` to `near_field`
45
+
or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
46
+
reduction. Noise reduction filters audio added to the input audio buffer before
47
+
it is sent to VAD and the model. Filtering the audio can improve VAD and turn
48
+
detection accuracy (reducing false positives) and model performance by improving
Copy file name to clipboardExpand all lines: src/openai/types/realtime/realtime_audio_config_input_param.py
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@
14
14
15
15
16
16
classNoiseReduction(TypedDict, total=False):
17
-
"""Configuration for input audio noise reduction.
18
-
19
-
This can be set to `null` to turn off.
17
+
"""
18
+
When you supply a `noise_reduction` object, you must set `type` to `near_field` or `far_field`.
19
+
Set `noise_reduction` to `null` to turn off input audio noise reduction.
20
20
Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
21
21
Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
22
22
"""
@@ -42,12 +42,13 @@ class RealtimeAudioConfigInputParam(TypedDict, total=False):
42
42
"""The format of the input audio."""
43
43
44
44
noise_reduction: NoiseReduction
45
-
"""Configuration for input audio noise reduction.
46
-
47
-
This can be set to `null` to turn off. Noise reduction filters audio added to
48
-
the input audio buffer before it is sent to VAD and the model. Filtering the
49
-
audio can improve VAD and turn detection accuracy (reducing false positives) and
50
-
model performance by improving perception of the input audio.
45
+
"""
46
+
When you supply a `noise_reduction` object, you must set `type` to `near_field`
47
+
or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
48
+
reduction. Noise reduction filters audio added to the input audio buffer before
49
+
it is sent to VAD and the model. Filtering the audio can improve VAD and turn
50
+
detection accuracy (reducing false positives) and model performance by improving
0 commit comments