Class: Telnyx::Models::TextToSpeechGenerateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechGenerateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/text_to_speech_generate_params.rb
Overview
Defined Under Namespace
Modules: OutputType, Provider, TextType Classes: Aws, Azure, Elevenlabs, Minimax, Resemble, Rime, Telnyx
Instance Attribute Summary collapse
-
#aws ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Aws?
AWS Polly provider-specific parameters.
-
#azure ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Azure?
Azure Cognitive Services provider-specific parameters.
-
#disable_cache ⇒ Boolean?
When ‘true`, bypass the audio cache and generate fresh audio.
-
#elevenlabs ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Elevenlabs?
ElevenLabs provider-specific parameters.
-
#language ⇒ String?
Language code (e.g. ‘en-US`).
-
#minimax ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Minimax?
Minimax provider-specific parameters.
-
#output_type ⇒ Symbol, ...
Determines the response format.
-
#provider ⇒ Symbol, ...
TTS provider.
-
#resemble ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Resemble?
Resemble AI provider-specific parameters.
-
#rime ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Rime?
Rime provider-specific parameters.
-
#telnyx ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::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_id` or `provider.voice_id`.
-
#voice_settings ⇒ Hash{Symbol=>Object}?
Provider-specific voice settings.
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.
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_params.rb', line 304
|
Instance Attribute Details
#aws ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Aws?
AWS Polly provider-specific parameters.
14 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 14 optional :aws, -> { ::Telnyx::TextToSpeechGenerateParams::Aws } |
#azure ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Azure?
Azure Cognitive Services provider-specific parameters.
20 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 20 optional :azure, -> { ::Telnyx::TextToSpeechGenerateParams::Azure } |
#disable_cache ⇒ Boolean?
When ‘true`, bypass the audio cache and generate fresh audio.
26 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 26 optional :disable_cache, ::Telnyx::Internal::Type::Boolean |
#elevenlabs ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Elevenlabs?
ElevenLabs provider-specific parameters.
32 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 32 optional :elevenlabs, -> { ::Telnyx::TextToSpeechGenerateParams::Elevenlabs } |
#language ⇒ String?
Language code (e.g. ‘en-US`). Usage varies by provider.
38 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 38 optional :language, String |
#minimax ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Minimax?
Minimax provider-specific parameters.
44 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 44 optional :minimax, -> { ::Telnyx::TextToSpeechGenerateParams::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_params.rb', line 51 optional :output_type, enum: -> { ::Telnyx::TextToSpeechGenerateParams::OutputType } |
#provider ⇒ Symbol, ...
TTS provider. Required unless ‘voice` is provided.
57 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 57 optional :provider, enum: -> { ::Telnyx::TextToSpeechGenerateParams::Provider } |
#resemble ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Resemble?
Resemble AI provider-specific parameters.
63 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 63 optional :resemble, -> { ::Telnyx::TextToSpeechGenerateParams::Resemble } |
#rime ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::Rime?
Rime provider-specific parameters.
69 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 69 optional :rime, -> { ::Telnyx::TextToSpeechGenerateParams::Rime } |
#telnyx ⇒ ::Telnyx::Models::TextToSpeechGenerateParams::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_params.rb', line 77 optional :telnyx, -> { ::Telnyx::TextToSpeechGenerateParams::Telnyx } |
#text ⇒ String?
The text to convert to speech.
83 |
# File 'lib/telnyx/models/text_to_speech_generate_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_params.rb', line 89 optional :text_type, enum: -> { ::Telnyx::TextToSpeechGenerateParams::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_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_params.rb', line 107 optional :voice_settings, ::Telnyx::Internal::Type::HashOf[::Telnyx::Internal::Type::Unknown] |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 198
|