Class: Revox::Models::VoiceCloneParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::VoiceCloneParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/revox/models/voice_clone_params.rb,
sig/revox/models/voice_clone_params.rbs
Overview
Defined Under Namespace
Modules: ContentType, Language
Instance Attribute Summary collapse
-
#audio ⇒ String
Base64-encoded audio data (max ~7.5MB decoded).
-
#content_type ⇒ Symbol, Revox::Models::VoiceCloneParams::ContentType
MIME type of the audio.
-
#language ⇒ Symbol, Revox::Models::VoiceCloneParams::Language
Language of the voice.
-
#name ⇒ String
Name for the cloned voice.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(audio:, content_type:, language:, name:, request_options: {}) ⇒ Object constructor
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(audio:, content_type:, language:, name:, request_options: {}) ⇒ Object
|
|
# File 'lib/revox/models/voice_clone_params.rb', line 34
|
Instance Attribute Details
#audio ⇒ String
Base64-encoded audio data (max ~7.5MB decoded)
14 |
# File 'lib/revox/models/voice_clone_params.rb', line 14 required :audio, String |
#content_type ⇒ Symbol, Revox::Models::VoiceCloneParams::ContentType
MIME type of the audio
20 |
# File 'lib/revox/models/voice_clone_params.rb', line 20 required :content_type, enum: -> { Revox::VoiceCloneParams::ContentType }, api_name: :contentType |
#language ⇒ Symbol, Revox::Models::VoiceCloneParams::Language
Language of the voice
26 |
# File 'lib/revox/models/voice_clone_params.rb', line 26 required :language, enum: -> { Revox::VoiceCloneParams::Language } |
#name ⇒ String
Name for the cloned voice
32 |
# File 'lib/revox/models/voice_clone_params.rb', line 32 required :name, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/voice_clone_params.rb', line 56
|
Instance Method Details
#to_hash ⇒ {
32 |
# File 'sig/revox/models/voice_clone_params.rbs', line 32
def to_hash: -> {
|