Class: Telnyx::Models::TextToSpeechGenerateSpeechParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechGenerateSpeechParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/text_to_speech_generate_speech_params.rb,
sig/telnyx/models/text_to_speech_generate_speech_params.rbs
Overview
Defined Under Namespace
Modules: OutputType, Provider, TextType Classes: Aws, Azure, Elevenlabs, Minimax, Resemble, Rime, Telnyx, Xai
Instance Attribute Summary collapse
-
#aws ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Aws?
AWS Polly provider-specific parameters.
-
#azure ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Azure?
Azure Cognitive Services provider-specific parameters.
-
#disable_cache ⇒ Boolean?
When
true, bypass the audio cache and generate fresh audio. -
#elevenlabs ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Elevenlabs?
ElevenLabs provider-specific parameters.
-
#language ⇒ String?
Language code (e.g.
en-US). -
#minimax ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Minimax?
Minimax provider-specific parameters.
-
#output_type ⇒ Symbol, ...
Determines the response format.
-
#provider ⇒ Symbol, ...
TTS provider.
-
#resemble ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Resemble?
Resemble AI provider-specific parameters.
-
#rime ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Rime?
Rime provider-specific parameters.
-
#telnyx ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Telnyx?
Telnyx provider-specific parameters.
-
#text ⇒ String?
The text to convert to speech.
-
#text_type ⇒ Symbol, ...
Text type.
-
#voice ⇒ String?
Voice identifier in the format
provider.model_id.voice_idorprovider.voice_id. -
#voice_settings ⇒ Hash{Symbol=>Object}?
Provider-specific voice settings.
-
#xai ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Xai?
xAI provider-specific parameters.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(response_format: nil, sampling_rate: nil, voice_speed: nil) ⇒ Object
constructor
Rime provider-specific parameters.
- #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(response_format: nil, sampling_rate: nil, voice_speed: nil) ⇒ Object
Rime provider-specific parameters.
|
|
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 312
|
Instance Attribute Details
#aws ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Aws?
AWS Polly provider-specific parameters.
14 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 14 optional :aws, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Aws } |
#azure ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Azure?
Azure Cognitive Services provider-specific parameters.
20 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 20 optional :azure, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Azure } |
#disable_cache ⇒ Boolean?
When true, bypass the audio cache and generate fresh audio.
26 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 26 optional :disable_cache, ::Telnyx::Internal::Type::Boolean |
#elevenlabs ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Elevenlabs?
ElevenLabs provider-specific parameters.
32 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 32 optional :elevenlabs, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Elevenlabs } |
#language ⇒ String?
Language code (e.g. en-US). Usage varies by provider.
38 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 38 optional :language, String |
#minimax ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Minimax?
Minimax provider-specific parameters.
44 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 44 optional :minimax, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Minimax } |
#output_type ⇒ Symbol, ...
Determines the response format. binary_output returns raw audio bytes,
base64_output returns base64-encoded audio in JSON.
51 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 51 optional :output_type, enum: -> { ::Telnyx::TextToSpeechGenerateSpeechParams::OutputType } |
#provider ⇒ Symbol, ...
TTS provider. Required unless voice is provided.
57 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 57 optional :provider, enum: -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Provider } |
#resemble ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Resemble?
Resemble AI provider-specific parameters.
63 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 63 optional :resemble, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Resemble } |
#rime ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Rime?
Rime provider-specific parameters.
69 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 69 optional :rime, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Rime } |
#telnyx ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Telnyx?
Telnyx provider-specific parameters. Use voice_speed and temperature for
Natural and NaturalHD models. For the Ultra model, use voice_speed,
volume, and emotion.
77 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 77 optional :telnyx, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Telnyx } |
#text ⇒ String?
The text to convert to speech.
83 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 83 optional :text, String |
#text_type ⇒ Symbol, ...
Text type. Use ssml for SSML-formatted input (supported by AWS and Azure).
89 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 89 optional :text_type, enum: -> { ::Telnyx::TextToSpeechGenerateSpeechParams::TextType } |
#voice ⇒ String?
Voice identifier in the format provider.model_id.voice_id or
provider.voice_id. Examples: telnyx.NaturalHD.Alloy,
Telnyx.Ultra.<voice_id>, azure.en-US-AvaMultilingualNeural,
aws.Polly.Generative.Lucia. When provided, provider, model_id, and
voice_id are extracted automatically and take precedence over individual
parameters.
100 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 100 optional :voice, String |
#voice_settings ⇒ Hash{Symbol=>Object}?
Provider-specific voice settings. Contents vary by provider — see provider-specific parameter objects below.
107 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 107 optional :voice_settings, ::Telnyx::Internal::Type::HashOf[::Telnyx::Internal::Type::Unknown] |
#xai ⇒ ::Telnyx::Models::TextToSpeechGenerateSpeechParams::Xai?
xAI provider-specific parameters.
113 |
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 113 optional :xai, -> { ::Telnyx::TextToSpeechGenerateSpeechParams::Xai } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/text_to_speech_generate_speech_params.rb', line 206
|
Instance Method Details
#to_hash ⇒ {
134 |
# File 'sig/telnyx/models/text_to_speech_generate_speech_params.rbs', line 134
def to_hash: -> {
|