Class: Telnyx::Models::TextToSpeechStreamParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechStreamParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/text_to_speech_stream_params.rb
Overview
Defined Under Namespace
Modules: AudioFormat, Provider
Instance Attribute Summary collapse
-
#audio_format ⇒ Symbol, ...
Audio output format override.
-
#disable_cache ⇒ Boolean?
When ‘true`, bypass the audio cache and generate fresh audio.
-
#model_id ⇒ String?
Model identifier for the chosen provider.
-
#provider ⇒ Symbol, ...
TTS provider.
-
#socket_id ⇒ String?
Client-provided socket identifier for tracking.
-
#voice ⇒ String?
Voice identifier in the format ‘provider.model_id.voice_id` or `provider.voice_id` (e.g. `telnyx.NaturalHD.Telnyx_Alloy` or `azure.en-US-AvaMultilingualNeural`).
-
#voice_id ⇒ String?
Voice identifier for the chosen provider.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audio_format: nil, disable_cache: nil, model_id: nil, provider: nil, socket_id: nil, voice: nil, voice_id: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see TextToSpeechStreamParams for more details.
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(audio_format: nil, disable_cache: nil, model_id: nil, provider: nil, socket_id: nil, voice: nil, voice_id: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::TextToSpeechStreamParams for more details.
|
|
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 60
|
Instance Attribute Details
#audio_format ⇒ Symbol, ...
Audio output format override. Supported for Telnyx ‘Natural`/`NaturalHD` models only. Accepted values: `pcm`, `wav`.
15 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 15 optional :audio_format, enum: -> { Telnyx::TextToSpeechStreamParams::AudioFormat } |
#disable_cache ⇒ Boolean?
When ‘true`, bypass the audio cache and generate fresh audio.
21 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 21 optional :disable_cache, Telnyx::Internal::Type::Boolean |
#model_id ⇒ String?
Model identifier for the chosen provider. Examples: ‘Natural`, `NaturalHD` (Telnyx); `Polly.Generative` (AWS).
28 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 28 optional :model_id, String |
#provider ⇒ Symbol, ...
TTS provider. Defaults to ‘telnyx` if not specified. Ignored when `voice` is provided.
35 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 35 optional :provider, enum: -> { Telnyx::TextToSpeechStreamParams::Provider } |
#socket_id ⇒ String?
Client-provided socket identifier for tracking. If not provided, one is generated server-side.
42 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 42 optional :socket_id, String |
#voice ⇒ String?
Voice identifier in the format ‘provider.model_id.voice_id` or `provider.voice_id` (e.g. `telnyx.NaturalHD.Telnyx_Alloy` or `azure.en-US-AvaMultilingualNeural`). When provided, the `provider`, `model_id`, and `voice_id` are extracted automatically. Takes precedence over individual `provider`/`model_id`/`voice_id` parameters.
52 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 52 optional :voice, String |
#voice_id ⇒ String?
Voice identifier for the chosen provider.
58 |
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 58 optional :voice_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/text_to_speech_stream_params.rb', line 88
|