Class: OpenAI::Models::Audio::VoiceConsent

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

Overview

See Also:

  • OpenAI::Resources::Audio::VoiceConsents#create

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(id:, created_at:, language:, name:, object: :"audio.voice_consent") ⇒ VoiceConsent

Returns a new instance of VoiceConsent.

Parameters:

  • id —

    The consent recording identifier.

  • created_at —

    The Unix timestamp (in seconds) for when the consent recording was created.

  • language —

    The BCP 47 language tag for the consent phrase (for example, en-US).

  • name —

    The label provided when the consent recording was uploaded.

  • object (defaults to: :"audio.voice_consent") —

    The object type, which is always audio.voice_consent.

  • id: (String)
  • created_at: (Integer)
  • language: (String)
  • name: (String)
  • object: (:"audio.voice_consent") (defaults to: :"audio.voice_consent")


# File 'lib/openai/models/audio/voice_consent.rb', line 38

Instance Attribute Details

#created_at ⇒ Integer

The Unix timestamp (in seconds) for when the consent recording was created.

Returns:

  • (Integer)


18
# File 'lib/openai/models/audio/voice_consent.rb', line 18

required :created_at, Integer

#id ⇒ String

The consent recording identifier.

Returns:

  • (String)


12
# File 'lib/openai/models/audio/voice_consent.rb', line 12

required :id, String

#language ⇒ String

The BCP 47 language tag for the consent phrase (for example, en-US).

Returns:

  • (String)


24
# File 'lib/openai/models/audio/voice_consent.rb', line 24

required :language, String

#name ⇒ String

The label provided when the consent recording was uploaded.

Returns:

  • (String)


30
# File 'lib/openai/models/audio/voice_consent.rb', line 30

required :name, String

#object ⇒ :"audio.voice_consent"

The object type, which is always audio.voice_consent.

Returns:

  • (:"audio.voice_consent")


36
# File 'lib/openai/models/audio/voice_consent.rb', line 36

required :object, const: :"audio.voice_consent"

Instance Method Details

#to_hash ⇒ { id: String, created_at: Integer, language: String, name: String, ?object: :"audio.voice_consent" }

Returns:

  • ({ id: String, created_at: Integer, language: String, name: String, ?object: :"audio.voice_consent" })


47
48
49
50
51
52
53
# File 'sig/openai/models/audio/voice_consent.rbs', line 47

def to_hash: -> {
  id: String,
  created_at: Integer,
  language: String,
  name: String,
  ?object: :"audio.voice_consent"
}