Class: OpenAI::Models::Realtime::RealtimeAudioConfigInput::NoiseReduction
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeAudioConfigInput::NoiseReduction
- Defined in:
- lib/openai/models/realtime/realtime_audio_config_input.rb,
sig/openai/models/realtime/realtime_audio_config_input.rbs
Overview
Instance Attribute Summary collapse
-
#strength ⇒ Float?
Input noise suppression strength.
-
#type ⇒ OpenAI::Models::Realtime::noise_reduction_type?
Type of noise reduction.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(strength: nil, type: nil) ⇒ NoiseReduction
constructor
A new instance of NoiseReduction.
- #to_hash ⇒ { ?strength: Float, ?type: OpenAI::Models::Realtime::noise_reduction_type }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(strength: nil, type: nil) ⇒ NoiseReduction
Returns a new instance of NoiseReduction.
|
|
# File 'lib/openai/models/realtime/realtime_audio_config_input.rb', line 116
|
Instance Attribute Details
#strength ⇒ Float?
Input noise suppression strength. Higher values apply more suppression. Defaults to 1 when noise reduction is first enabled. Omitting strength from a session update preserves the current strength.
106 |
# File 'lib/openai/models/realtime/realtime_audio_config_input.rb', line 106 optional :strength, Float |
#type ⇒ OpenAI::Models::Realtime::noise_reduction_type?
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.
114 |
# File 'lib/openai/models/realtime/realtime_audio_config_input.rb', line 114 optional :type, enum: -> { OpenAI::Realtime::NoiseReductionType } |
Instance Method Details
#to_hash ⇒ { ?strength: Float, ?type: OpenAI::Models::Realtime::noise_reduction_type }
170 171 172 173 |
# File 'sig/openai/models/realtime/realtime_audio_config_input.rbs', line 170
def to_hash: -> {
?strength: Float,
?type: OpenAI::Models::Realtime::noise_reduction_type
}
|