Class: OpenAI::Models::Live::SessionResource::Audio::Output

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/live/session_resource.rb,
sig/openai/models/live/session_resource.rbs

Overview

See Also:

  • OpenAI::Models::Live::SessionResource::Audio#output

Defined Under Namespace

Modules: Voice

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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(voice: nil) ⇒ Output

Returns a new instance of Output.

Parameters:

  • voice (defaults to: nil) —

    The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to marin and cannot change after startup.

  • voice: (OpenAI::Models::Live::SessionResource::Audio::Output::voice) (defaults to: nil)


# File 'lib/openai/models/live/session_resource.rb', line 226

Instance Attribute Details

#voice ⇒ OpenAI::Models::Live::SessionResource::Audio::Output::voice?

The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to marin and cannot change after startup.

Returns:

  • (OpenAI::Models::Live::SessionResource::Audio::Output::voice, nil)


224
# File 'lib/openai/models/live/session_resource.rb', line 224

optional :voice, union: -> { OpenAI::Live::SessionResource::Audio::Output::Voice }

Instance Method Details

#to_hash ⇒ { ?voice: OpenAI::Models::Live::SessionResource::Audio::Output::voice }

Returns:

  • ({ ?voice: OpenAI::Models::Live::SessionResource::Audio::Output::voice })


259
260
261
# File 'sig/openai/models/live/session_resource.rbs', line 259

def to_hash: -> {
  ?voice: OpenAI::Models::Live::SessionResource::Audio::Output::voice
}