Class: Telnyx::Models::AI::VoiceSettings::BackgroundAudio::MediaURL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::VoiceSettings::BackgroundAudio::MediaURL
- Defined in:
- lib/telnyx/models/ai/voice_settings.rb,
sig/telnyx/models/ai/voice_settings.rbs
Instance Attribute Summary collapse
-
#type ⇒ Symbol, :media_url
Provide a direct URL to an MP3 file.
-
#value ⇒ String
HTTPS URL to an MP3 file.
Instance Method Summary collapse
-
#initialize ⇒ MediaURL
constructor
A new instance of MediaURL.
- #to_hash ⇒ { type: :media_url, value: String }
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 ⇒ MediaURL
Returns a new instance of MediaURL.
145 |
# File 'sig/telnyx/models/ai/voice_settings.rbs', line 145
def initialize: (value: String, ?type: :media_url) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :media_url
Provide a direct URL to an MP3 file. The audio will loop during the call.
193 |
# File 'lib/telnyx/models/ai/voice_settings.rb', line 193 required :type, const: :media_url |
#value ⇒ String
HTTPS URL to an MP3 file.
199 |
# File 'lib/telnyx/models/ai/voice_settings.rb', line 199 required :value, String |
Instance Method Details
#to_hash ⇒ { type: :media_url, value: String }
147 |
# File 'sig/telnyx/models/ai/voice_settings.rbs', line 147
def to_hash: -> { type: :media_url, value: String }
|