Class: Telnyx::Models::TextToSpeechGenerateSpeechParams::Humain

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/text_to_speech_generate_speech_params.rb,
sig/telnyx/models/text_to_speech_generate_speech_params.rbs

Defined Under Namespace

Modules: VoiceID

Instance Attribute 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(voice_id:, ttfb_eagerness: nil) ⇒ Object

Humain provider-specific parameters. Unlike other providers, Humain has no format/sample-rate negotiation (output is always PCM16 24kHz mono) and no language parameter — language is fixed per voice.

Parameters:



# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 347

Instance Attribute Details

#ttfb_eagernessFloat?

Time-to-first-byte eagerness, trading synthesis latency for quality.

Parameters:

  • (Float)

Returns:

  • (Float, nil)


345
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 345

optional :ttfb_eagerness, Float

#voice_idSymbol, ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Humain::VoiceID

Humain voice identifier.

Parameters:

  • value (::Telnyx::Models::TextToSpeechGenerateSpeechParams::Humain::voice_id)

Returns:



339
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 339

required :voice_id, enum: -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Humain::VoiceID }

Instance Method Details

#to_hash{

Returns:

  • ({)


355
# File 'sig/telnyx/models/text_to_speech_generate_speech_params.rbs', line 355

def to_hash: -> {