Class: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_session_create_response.rb

Overview

See Also:

Defined Under Namespace

Classes: Input, Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, 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(prefix_padding_ms: nil, silence_duration_ms: nil, threshold: nil, type: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Input::TurnDetection for more details.

Configuration for turn detection.

Parameters:

  • prefix_padding_ms (Integer) (defaults to: nil)
  • silence_duration_ms (Integer) (defaults to: nil)
  • threshold (Float) (defaults to: nil)
  • type (String) (defaults to: nil)

    Type of turn detection, only ‘server_vad` is currently supported.



# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 156

Instance Attribute Details

#inputOpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Input?



149
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 149

optional :input, -> { OpenAI::Realtime::RealtimeSessionCreateResponse::Audio::Input }

#outputOpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output?



154
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 154

optional :output, -> { OpenAI::Realtime::RealtimeSessionCreateResponse::Audio::Output }