Class: OpenAI::Models::Realtime::RealtimeTranslationSession::Audio::Input::NoiseReduction
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeTranslationSession::Audio::Input::NoiseReduction
- Defined in:
- lib/openai/models/realtime/realtime_translation_session.rb,
sig/openai/models/realtime/realtime_translation_session.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 ⇒ NoiseReduction
constructor
A new instance of NoiseReduction.
- #to_hash ⇒ { type: OpenAI::Models::Realtime::noise_reduction_type, ?strength: Float }
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 ⇒ NoiseReduction
Returns a new instance of NoiseReduction.
147 148 149 150 |
# File 'sig/openai/models/realtime/realtime_translation_session.rbs', line 147
def initialize: (
type: OpenAI::Models::Realtime::noise_reduction_type,
?strength: Float
) -> void
|
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.
125 |
# File 'lib/openai/models/realtime/realtime_translation_session.rb', line 125 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.
117 |
# File 'lib/openai/models/realtime/realtime_translation_session.rb', line 117 required :type, enum: -> { OpenAI::Realtime::NoiseReductionType } |
Instance Method Details
#to_hash ⇒ { type: OpenAI::Models::Realtime::noise_reduction_type, ?strength: Float }
152 153 154 155 |
# File 'sig/openai/models/realtime/realtime_translation_session.rbs', line 152
def to_hash: -> {
type: OpenAI::Models::Realtime::noise_reduction_type,
?strength: Float
}
|