Class: Telnyx::Models::VoiceCloneCreateFromUploadParams::Params::MinimaxClone

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/voice_clone_create_from_upload_params.rb

Defined Under Namespace

Modules: Gender, ModelID, Provider

Instance Attribute Summary collapse

Class Method 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(audio_file:, gender:, language:, name:, provider:, label: nil, model_id: nil, ref_text: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::VoiceCloneCreateFromUploadParams::Params::MinimaxClone for more details.

Upload-based voice clone using the Minimax provider.

Parameters:



# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 328

Instance Attribute Details

#audio_filePathname, ...

Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A. For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum size: 20MB.

Returns:



282
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 282

required :audio_file, Telnyx::Internal::Type::FileInput

#genderSymbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::Params::MinimaxClone::Gender

Gender of the voice clone.



288
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 288

required :gender, enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::Params::MinimaxClone::Gender }

#labelString?

Optional custom label describing the voice style.

Returns:

  • (String, nil)


312
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 312

optional :label, String

#languageString

ISO 639-1 language code from the Minimax language set.

Returns:

  • (String)


294
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 294

required :language, String

#model_idSymbol, ...

TTS model identifier. Nullable — defaults to speech-2.8-turbo.



318
319
320
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 318

optional :model_id,
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::Params::MinimaxClone::ModelID },
nil?: true

#nameString

Name for the voice clone.

Returns:

  • (String)


300
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 300

required :name, String

#providerSymbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::Params::MinimaxClone::Provider

Voice synthesis provider. Must be ‘minimax`.



306
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 306

required :provider, enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::Params::MinimaxClone::Provider }

#ref_textString?

Optional transcript of the audio file. Providing this improves clone quality.

Returns:

  • (String, nil)


326
# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 326

optional :ref_text, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/voice_clone_create_from_upload_params.rb', line 361