Class: OpenAI::Models::Audio::VoiceConsent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Audio::VoiceConsent
- Defined in:
- lib/openai/models/audio/voice_consent.rb,
sig/openai/models/audio/voice_consent.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) for when the consent recording was created.
-
#id ⇒ String
The consent recording identifier.
-
#language ⇒ String
The BCP 47 language tag for the consent phrase (for example,
en-US). -
#name ⇒ String
The label provided when the consent recording was uploaded.
-
#object ⇒ :"audio.voice_consent"
The object type, which is always
audio.voice_consent.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, created_at:, language:, name:, object: :"audio.voice_consent") ⇒ VoiceConsent
constructor
A new instance of VoiceConsent.
- #to_hash ⇒ { id: String, created_at: Integer, language: String, name: String, ?object: :"audio.voice_consent" }
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.
|
|
# 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.
18 |
# File 'lib/openai/models/audio/voice_consent.rb', line 18 required :created_at, Integer |
#id ⇒ String
The consent recording identifier.
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).
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.
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.
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" }
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"
}
|