Class: Telnyx::Models::TextToSpeechGenerateParams::Telnyx
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechGenerateParams::Telnyx
- Defined in:
- lib/telnyx/models/text_to_speech_generate_params.rb
Defined Under Namespace
Modules: Emotion
Instance Attribute Summary collapse
-
#emotion ⇒ Symbol, ...
Emotion control for the Ultra model.
-
#response_format ⇒ String?
Audio response format.
-
#sampling_rate ⇒ Integer?
Audio sampling rate in Hz.
-
#temperature ⇒ Float?
Sampling temperature.
-
#voice_speed ⇒ Float?
Voice speed multiplier.
-
#volume ⇒ Float?
Volume level for the Ultra model.
Instance Method Summary collapse
-
#initialize(emotion: nil, response_format: nil, sampling_rate: nil, temperature: nil, voice_speed: nil, volume: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Telnyx for more details.
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(emotion: nil, response_format: nil, sampling_rate: nil, temperature: nil, voice_speed: nil, volume: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::TextToSpeechGenerateParams::Telnyx for more details.
Telnyx provider-specific parameters. Use ‘voice_speed` and `temperature` for `Natural` and `NaturalHD` models. For the `Ultra` model, use `voice_speed`, `volume`, and `emotion`.
|
|
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 491
|
Instance Attribute Details
#emotion ⇒ Symbol, ...
Emotion control for the Ultra model. Adjusts the emotional tone of the synthesized speech.
459 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 459 optional :emotion, enum: -> { ::Telnyx::TextToSpeechGenerateParams::Telnyx::Emotion } |
#response_format ⇒ String?
Audio response format.
465 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 465 optional :response_format, String |
#sampling_rate ⇒ Integer?
Audio sampling rate in Hz.
471 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 471 optional :sampling_rate, Integer |
#temperature ⇒ Float?
Sampling temperature. Applies to ‘Natural` and `NaturalHD` models only.
477 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 477 optional :temperature, Float |
#voice_speed ⇒ Float?
Voice speed multiplier. Applies to all models. Range: 0.5 to 2.0.
483 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 483 optional :voice_speed, Float |
#volume ⇒ Float?
Volume level for the Ultra model. Range: 0.0 to 2.0.
489 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 489 optional :volume, Float |