Class: Telnyx::Models::TextToSpeechGenerateParams::Xai
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::TextToSpeechGenerateParams::Xai
- Defined in:
- lib/telnyx/models/text_to_speech_generate_params.rb
Defined Under Namespace
Modules: OutputFormat, SampleRate, VoiceID
Instance Attribute Summary collapse
-
#language ⇒ String?
Language code, or ‘auto` to detect.
-
#output_format ⇒ Symbol, ...
Audio output format.
-
#sample_rate ⇒ Integer, ...
Audio sample rate in Hz.
-
#voice_id ⇒ Symbol, ::Telnyx::Models::TextToSpeechGenerateParams::Xai::VoiceID
xAI voice identifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(voice_id:, language: nil, output_format: nil, sample_rate: nil) ⇒ Object
constructor
xAI provider-specific parameters.
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:, language: nil, output_format: nil, sample_rate: nil) ⇒ Object
xAI provider-specific parameters.
|
|
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 576
|
Instance Attribute Details
#language ⇒ String?
Language code, or ‘auto` to detect.
562 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 562 optional :language, String |
#output_format ⇒ Symbol, ...
Audio output format.
568 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 568 optional :output_format, enum: -> { ::Telnyx::TextToSpeechGenerateParams::Xai::OutputFormat } |
#sample_rate ⇒ Integer, ...
Audio sample rate in Hz.
574 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 574 optional :sample_rate, enum: -> { ::Telnyx::TextToSpeechGenerateParams::Xai::SampleRate } |
#voice_id ⇒ Symbol, ::Telnyx::Models::TextToSpeechGenerateParams::Xai::VoiceID
xAI voice identifier.
556 |
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 556 required :voice_id, enum: -> { ::Telnyx::TextToSpeechGenerateParams::Xai::VoiceID } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/text_to_speech_generate_params.rb', line 599
|