telnyx 5.176.0 → 5.177.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
  5. data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
  6. data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
  7. data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
  8. data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
  9. data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
  10. data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
  11. data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
  12. data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
  13. data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
  14. data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
  15. data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
  16. data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
  17. data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
  18. data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
  19. data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
  20. data/lib/telnyx/models/email_event_list_response.rb +11 -12
  21. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
  22. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
  23. data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
  24. data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
  25. data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
  26. data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
  27. data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
  28. data/lib/telnyx/models/iam/iam_action.rb +4 -4
  29. data/lib/telnyx/models/iam/iam_settings.rb +60 -0
  30. data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
  31. data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
  32. data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
  33. data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
  34. data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
  35. data/lib/telnyx/models/iam_decision.rb +5 -3
  36. data/lib/telnyx/models/iam_explain_params.rb +13 -1
  37. data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
  38. data/lib/telnyx/models/iam_simulate_params.rb +13 -1
  39. data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
  40. data/lib/telnyx/models/mobile_phone_number.rb +25 -4
  41. data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
  42. data/lib/telnyx/models/model_metadata.rb +28 -1
  43. data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
  44. data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
  45. data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
  46. data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
  47. data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
  48. data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
  49. data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
  50. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
  51. data/lib/telnyx/models/texml_application_list_params.rb +6 -6
  52. data/lib/telnyx/models/user_profile.rb +11 -1
  53. data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
  54. data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
  55. data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
  56. data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
  57. data/lib/telnyx/resources/calls/actions.rb +1 -1
  58. data/lib/telnyx/resources/customer_service_records.rb +4 -4
  59. data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
  60. data/lib/telnyx/resources/iam/guardrail.rb +45 -0
  61. data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
  62. data/lib/telnyx/resources/iam.rb +21 -8
  63. data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
  64. data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
  65. data/lib/telnyx/resources/user_profile.rb +1 -3
  66. data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
  67. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
  68. data/lib/telnyx/version.rb +1 -1
  69. data/lib/telnyx.rb +20 -0
  70. data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
  71. data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
  72. data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
  73. data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
  74. data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
  75. data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
  76. data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
  77. data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
  78. data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
  79. data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
  80. data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
  81. data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
  82. data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
  83. data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
  84. data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
  85. data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
  86. data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
  87. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
  88. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
  89. data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
  90. data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
  91. data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
  92. data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
  93. data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
  94. data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
  95. data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
  96. data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
  97. data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
  98. data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
  99. data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
  100. data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
  101. data/rbi/telnyx/models/iam_decision.rbi +10 -6
  102. data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
  103. data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
  104. data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
  105. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
  106. data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
  107. data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
  108. data/rbi/telnyx/models/model_metadata.rbi +90 -0
  109. data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
  110. data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
  111. data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
  112. data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
  113. data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
  114. data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
  115. data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
  116. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
  117. data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
  118. data/rbi/telnyx/models/user_profile.rbi +11 -0
  119. data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
  120. data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
  121. data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
  122. data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
  123. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  124. data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
  125. data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
  126. data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
  127. data/rbi/telnyx/resources/iam.rbi +18 -7
  128. data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
  129. data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
  130. data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
  131. data/rbi/telnyx/resources/user_profile.rbi +0 -3
  132. data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
  133. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
  134. data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
  135. data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
  136. data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
  137. data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
  138. data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
  139. data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
  140. data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
  141. data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
  142. data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
  143. data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
  144. data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
  145. data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
  146. data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
  147. data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
  148. data/sig/telnyx/models/email_event_list_response.rbs +13 -3
  149. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
  150. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
  151. data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
  152. data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
  153. data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
  154. data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
  155. data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
  156. data/sig/telnyx/models/iam/iam_action.rbs +4 -4
  157. data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
  158. data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
  159. data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
  160. data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
  161. data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
  162. data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
  163. data/sig/telnyx/models/iam_explain_params.rbs +6 -1
  164. data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
  165. data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
  166. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
  167. data/sig/telnyx/models/model_metadata.rbs +26 -0
  168. data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
  169. data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
  170. data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
  171. data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
  172. data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
  173. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
  174. data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
  175. data/sig/telnyx/models/user_profile.rbs +7 -0
  176. data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
  177. data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
  178. data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
  179. data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
  180. data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
  181. data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
  182. data/sig/telnyx/resources/iam.rbs +3 -0
  183. data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
  184. data/sig/telnyx/resources/user_profile.rbs +0 -1
  185. data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
  186. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
  187. metadata +62 -2
@@ -13,14 +13,25 @@ module Telnyx
13
13
  end
14
14
 
15
15
  # The voice to be used by the voice assistant. Check the full list of
16
- # [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
16
+ # [available voices](https://developers.telnyx.com/docs/voice/tts/available-voices)
17
17
  # via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
18
18
  # key as an integration secret under the `api_key_ref` field. See
19
19
  # [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
20
20
  # for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
21
21
  # Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
22
22
  # (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
23
- # The voice portion of the identifier supports
23
+ # For ElevenLabs voices, use `ElevenLabs.<model_id>.<voice_id>` (e.g.
24
+ # `ElevenLabs.eleven_flash_v2_5.cgSgspJ2msm6clMCkdW9`), with the `ElevenLabs`
25
+ # prefix written exactly as shown. The voice must exist in the ElevenLabs account
26
+ # behind `api_key_ref`, and `<model_id>` must be a model that voice supports: list
27
+ # the exact identifiers with the
28
+ # [Voices API](https://developers.telnyx.com/api-reference/text-to-speech-commands/list-available-voices)
29
+ # by passing `provider=elevenlabs` and your ElevenLabs API key. Voices that list
30
+ # no models, such as instant clones and designed voices, also accept
31
+ # `ElevenLabs.<voice_id>`, which uses ElevenLabs' default model. With `eleven_v3`
32
+ # and `eleven_v4` models only `temperature` is applied; `similarity_boost`,
33
+ # `style`, `use_speaker_boost` and `voice_speed` have no effect. The voice portion
34
+ # of the identifier supports
24
35
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
25
36
  # using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
26
37
  # resolved at call time from your dynamic variables webhook, allowing you to
@@ -45,9 +56,9 @@ module Telnyx
45
56
  returns(
46
57
  T.nilable(
47
58
  T.any(
48
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0,
49
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1,
50
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2
59
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
60
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
61
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
51
62
  )
52
63
  )
53
64
  )
@@ -58,9 +69,9 @@ module Telnyx
58
69
  params(
59
70
  background_audio:
60
71
  T.any(
61
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::OrHash,
62
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::OrHash,
63
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::OrHash
72
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::OrHash,
73
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::OrHash,
74
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::OrHash
64
75
  )
65
76
  ).void
66
77
  end
@@ -101,14 +112,6 @@ module Telnyx
101
112
  sig { params(similarity_boost: Float).void }
102
113
  attr_writer :similarity_boost
103
114
 
104
- # Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
105
- # values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
106
- sig { returns(T.nilable(Float)) }
107
- attr_reader :speed
108
-
109
- sig { params(speed: Float).void }
110
- attr_writer :speed
111
-
112
115
  # Determines the style exaggeration of the voice. Amplifies speaker style but
113
116
  # consumes additional resources when set above 0. Only applicable when using
114
117
  # ElevenLabs.
@@ -120,7 +123,9 @@ module Telnyx
120
123
 
121
124
  # Determines how stable the voice is and the randomness between each generation.
122
125
  # Lower values create a broader emotional range; higher values produce more
123
- # consistent, monotonous output. Only applicable when using ElevenLabs.
126
+ # consistent, monotonous output. Only applicable when using ElevenLabs, where it
127
+ # sets the voice's stability. When unset, the stability saved on the voice in your
128
+ # ElevenLabs account applies.
124
129
  sig { returns(T.nilable(Float)) }
125
130
  attr_reader :temperature
126
131
 
@@ -135,8 +140,8 @@ module Telnyx
135
140
  returns(
136
141
  T.nilable(
137
142
  T.any(
138
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0,
139
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1
143
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
144
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
140
145
  )
141
146
  )
142
147
  )
@@ -154,7 +159,9 @@ module Telnyx
154
159
  # The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
155
160
  # numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
156
161
  # `Ultra` voices; values outside this range are rejected by the synthesis engine.
157
- # Soniox voices support a speed range of 0.7 to 1.3.
162
+ # Soniox voices support a speed range of 0.7 to 1.3. For ElevenLabs voices this
163
+ # sets the ElevenLabs speed, limited to 0.7 to 1.2: values outside that range are
164
+ # clamped to the nearest bound.
158
165
  sig { returns(T.nilable(Float)) }
159
166
  attr_reader :voice_speed
160
167
 
@@ -167,9 +174,9 @@ module Telnyx
167
174
  api_key_ref: String,
168
175
  background_audio:
169
176
  T.any(
170
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::OrHash,
171
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::OrHash,
172
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::OrHash
177
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::OrHash,
178
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::OrHash,
179
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::OrHash
173
180
  ),
174
181
  expressive_mode: T::Boolean,
175
182
  language: T.nilable(String),
@@ -178,14 +185,13 @@ module Telnyx
178
185
  Telnyx::AI::InferenceEmbeddingVoiceSettings::LanguageBoost::OrSymbol
179
186
  ),
180
187
  similarity_boost: Float,
181
- speed: Float,
182
188
  style: Float,
183
189
  temperature: Float,
184
190
  tool_call_audio:
185
191
  T.nilable(
186
192
  T.any(
187
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::OrHash,
188
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::OrHash
193
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::OrHash,
194
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::OrHash
189
195
  )
190
196
  ),
191
197
  use_speaker_boost: T::Boolean,
@@ -194,14 +200,25 @@ module Telnyx
194
200
  end
195
201
  def self.new(
196
202
  # The voice to be used by the voice assistant. Check the full list of
197
- # [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
203
+ # [available voices](https://developers.telnyx.com/docs/voice/tts/available-voices)
198
204
  # via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
199
205
  # key as an integration secret under the `api_key_ref` field. See
200
206
  # [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
201
207
  # for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
202
208
  # Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
203
209
  # (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
204
- # The voice portion of the identifier supports
210
+ # For ElevenLabs voices, use `ElevenLabs.<model_id>.<voice_id>` (e.g.
211
+ # `ElevenLabs.eleven_flash_v2_5.cgSgspJ2msm6clMCkdW9`), with the `ElevenLabs`
212
+ # prefix written exactly as shown. The voice must exist in the ElevenLabs account
213
+ # behind `api_key_ref`, and `<model_id>` must be a model that voice supports: list
214
+ # the exact identifiers with the
215
+ # [Voices API](https://developers.telnyx.com/api-reference/text-to-speech-commands/list-available-voices)
216
+ # by passing `provider=elevenlabs` and your ElevenLabs API key. Voices that list
217
+ # no models, such as instant clones and designed voices, also accept
218
+ # `ElevenLabs.<voice_id>`, which uses ElevenLabs' default model. With `eleven_v3`
219
+ # and `eleven_v4` models only `temperature` is applied; `similarity_boost`,
220
+ # `style`, `use_speaker_boost` and `voice_speed` have no effect. The voice portion
221
+ # of the identifier supports
205
222
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
206
223
  # using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
207
224
  # resolved at call time from your dynamic variables webhook, allowing you to
@@ -231,16 +248,15 @@ module Telnyx
231
248
  # Determines how closely the AI should adhere to the original voice when
232
249
  # attempting to replicate it. Only applicable when using ElevenLabs.
233
250
  similarity_boost: nil,
234
- # Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
235
- # values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
236
- speed: nil,
237
251
  # Determines the style exaggeration of the voice. Amplifies speaker style but
238
252
  # consumes additional resources when set above 0. Only applicable when using
239
253
  # ElevenLabs.
240
254
  style: nil,
241
255
  # Determines how stable the voice is and the randomness between each generation.
242
256
  # Lower values create a broader emotional range; higher values produce more
243
- # consistent, monotonous output. Only applicable when using ElevenLabs.
257
+ # consistent, monotonous output. Only applicable when using ElevenLabs, where it
258
+ # sets the voice's stability. When unset, the stability saved on the voice in your
259
+ # ElevenLabs account applies.
244
260
  temperature: nil,
245
261
  # Optional sound played to the caller while the assistant runs a tool (for example
246
262
  # a webhook or MCP tool). It replaces the background audio until the tool
@@ -253,7 +269,9 @@ module Telnyx
253
269
  # The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
254
270
  # numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
255
271
  # `Ultra` voices; values outside this range are rejected by the synthesis engine.
256
- # Soniox voices support a speed range of 0.7 to 1.3.
272
+ # Soniox voices support a speed range of 0.7 to 1.3. For ElevenLabs voices this
273
+ # sets the ElevenLabs speed, limited to 0.7 to 1.2: values outside that range are
274
+ # clamped to the nearest bound.
257
275
  voice_speed: nil
258
276
  )
259
277
  end
@@ -265,9 +283,9 @@ module Telnyx
265
283
  api_key_ref: String,
266
284
  background_audio:
267
285
  T.any(
268
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0,
269
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1,
270
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2
286
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
287
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
288
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
271
289
  ),
272
290
  expressive_mode: T::Boolean,
273
291
  language: T.nilable(String),
@@ -276,14 +294,13 @@ module Telnyx
276
294
  Telnyx::AI::InferenceEmbeddingVoiceSettings::LanguageBoost::OrSymbol
277
295
  ),
278
296
  similarity_boost: Float,
279
- speed: Float,
280
297
  style: Float,
281
298
  temperature: Float,
282
299
  tool_call_audio:
283
300
  T.nilable(
284
301
  T.any(
285
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0,
286
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1
302
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
303
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
287
304
  )
288
305
  ),
289
306
  use_speaker_boost: T::Boolean,
@@ -303,17 +320,17 @@ module Telnyx
303
320
  Variants =
304
321
  T.type_alias do
305
322
  T.any(
306
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0,
307
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1,
308
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2
323
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
324
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
325
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
309
326
  )
310
327
  end
311
328
 
312
- class UnionMember0 < Telnyx::Internal::Type::BaseModel
329
+ class PredefinedMedia < Telnyx::Internal::Type::BaseModel
313
330
  OrHash =
314
331
  T.type_alias do
315
332
  T.any(
316
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0,
333
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
317
334
  Telnyx::Internal::AnyHash
318
335
  )
319
336
  end
@@ -321,7 +338,7 @@ module Telnyx
321
338
  # Select from predefined media options.
322
339
  sig do
323
340
  returns(
324
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type::OrSymbol
341
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol
325
342
  )
326
343
  end
327
344
  attr_accessor :type
@@ -329,7 +346,7 @@ module Telnyx
329
346
  # The predefined media to use. `silence` disables background audio.
330
347
  sig do
331
348
  returns(
332
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::OrSymbol
349
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol
333
350
  )
334
351
  end
335
352
  attr_accessor :value
@@ -345,9 +362,9 @@ module Telnyx
345
362
  sig do
346
363
  params(
347
364
  type:
348
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type::OrSymbol,
365
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol,
349
366
  value:
350
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::OrSymbol,
367
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol,
351
368
  volume: Float
352
369
  ).returns(T.attached_class)
353
370
  end
@@ -366,9 +383,9 @@ module Telnyx
366
383
  override.returns(
367
384
  {
368
385
  type:
369
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type::OrSymbol,
386
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol,
370
387
  value:
371
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::OrSymbol,
388
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol,
372
389
  volume: Float
373
390
  }
374
391
  )
@@ -384,7 +401,7 @@ module Telnyx
384
401
  T.type_alias do
385
402
  T.all(
386
403
  Symbol,
387
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type
404
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type
388
405
  )
389
406
  end
390
407
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -392,13 +409,13 @@ module Telnyx
392
409
  PREDEFINED_MEDIA =
393
410
  T.let(
394
411
  :predefined_media,
395
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type::TaggedSymbol
412
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::TaggedSymbol
396
413
  )
397
414
 
398
415
  sig do
399
416
  override.returns(
400
417
  T::Array[
401
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Type::TaggedSymbol
418
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::TaggedSymbol
402
419
  ]
403
420
  )
404
421
  end
@@ -414,7 +431,7 @@ module Telnyx
414
431
  T.type_alias do
415
432
  T.all(
416
433
  Symbol,
417
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value
434
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value
418
435
  )
419
436
  end
420
437
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -422,18 +439,18 @@ module Telnyx
422
439
  SILENCE =
423
440
  T.let(
424
441
  :silence,
425
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::TaggedSymbol
442
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
426
443
  )
427
444
  OFFICE =
428
445
  T.let(
429
446
  :office,
430
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::TaggedSymbol
447
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
431
448
  )
432
449
 
433
450
  sig do
434
451
  override.returns(
435
452
  T::Array[
436
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember0::Value::TaggedSymbol
453
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
437
454
  ]
438
455
  )
439
456
  end
@@ -442,11 +459,11 @@ module Telnyx
442
459
  end
443
460
  end
444
461
 
445
- class UnionMember1 < Telnyx::Internal::Type::BaseModel
462
+ class MediaURL < Telnyx::Internal::Type::BaseModel
446
463
  OrHash =
447
464
  T.type_alias do
448
465
  T.any(
449
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1,
466
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
450
467
  Telnyx::Internal::AnyHash
451
468
  )
452
469
  end
@@ -454,7 +471,7 @@ module Telnyx
454
471
  # Provide a direct URL to an MP3 file. The audio will loop during the call.
455
472
  sig do
456
473
  returns(
457
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type::OrSymbol
474
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol
458
475
  )
459
476
  end
460
477
  attr_accessor :type
@@ -466,7 +483,7 @@ module Telnyx
466
483
  sig do
467
484
  params(
468
485
  type:
469
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type::OrSymbol,
486
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol,
470
487
  value: String
471
488
  ).returns(T.attached_class)
472
489
  end
@@ -482,7 +499,7 @@ module Telnyx
482
499
  override.returns(
483
500
  {
484
501
  type:
485
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type::OrSymbol,
502
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol,
486
503
  value: String
487
504
  }
488
505
  )
@@ -498,7 +515,7 @@ module Telnyx
498
515
  T.type_alias do
499
516
  T.all(
500
517
  Symbol,
501
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type
518
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type
502
519
  )
503
520
  end
504
521
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -506,13 +523,13 @@ module Telnyx
506
523
  MEDIA_URL =
507
524
  T.let(
508
525
  :media_url,
509
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type::TaggedSymbol
526
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::TaggedSymbol
510
527
  )
511
528
 
512
529
  sig do
513
530
  override.returns(
514
531
  T::Array[
515
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember1::Type::TaggedSymbol
532
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::TaggedSymbol
516
533
  ]
517
534
  )
518
535
  end
@@ -521,11 +538,11 @@ module Telnyx
521
538
  end
522
539
  end
523
540
 
524
- class UnionMember2 < Telnyx::Internal::Type::BaseModel
541
+ class MediaName < Telnyx::Internal::Type::BaseModel
525
542
  OrHash =
526
543
  T.type_alias do
527
544
  T.any(
528
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2,
545
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName,
529
546
  Telnyx::Internal::AnyHash
530
547
  )
531
548
  end
@@ -533,7 +550,7 @@ module Telnyx
533
550
  # Reference a previously uploaded media by its name from Telnyx Media Storage.
534
551
  sig do
535
552
  returns(
536
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type::OrSymbol
553
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol
537
554
  )
538
555
  end
539
556
  attr_accessor :type
@@ -547,7 +564,7 @@ module Telnyx
547
564
  sig do
548
565
  params(
549
566
  type:
550
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type::OrSymbol,
567
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol,
551
568
  value: String
552
569
  ).returns(T.attached_class)
553
570
  end
@@ -565,7 +582,7 @@ module Telnyx
565
582
  override.returns(
566
583
  {
567
584
  type:
568
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type::OrSymbol,
585
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol,
569
586
  value: String
570
587
  }
571
588
  )
@@ -581,7 +598,7 @@ module Telnyx
581
598
  T.type_alias do
582
599
  T.all(
583
600
  Symbol,
584
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type
601
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type
585
602
  )
586
603
  end
587
604
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -589,13 +606,13 @@ module Telnyx
589
606
  MEDIA_NAME =
590
607
  T.let(
591
608
  :media_name,
592
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type::TaggedSymbol
609
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::TaggedSymbol
593
610
  )
594
611
 
595
612
  sig do
596
613
  override.returns(
597
614
  T::Array[
598
- Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::UnionMember2::Type::TaggedSymbol
615
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::TaggedSymbol
599
616
  ]
600
617
  )
601
618
  end
@@ -857,16 +874,16 @@ module Telnyx
857
874
  Variants =
858
875
  T.type_alias do
859
876
  T.any(
860
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0,
861
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1
877
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
878
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
862
879
  )
863
880
  end
864
881
 
865
- class UnionMember0 < Telnyx::Internal::Type::BaseModel
882
+ class PredefinedMedia < Telnyx::Internal::Type::BaseModel
866
883
  OrHash =
867
884
  T.type_alias do
868
885
  T.any(
869
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0,
886
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
870
887
  Telnyx::Internal::AnyHash
871
888
  )
872
889
  end
@@ -874,7 +891,7 @@ module Telnyx
874
891
  # Select from predefined media options.
875
892
  sig do
876
893
  returns(
877
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type::OrSymbol
894
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol
878
895
  )
879
896
  end
880
897
  attr_accessor :type
@@ -882,7 +899,7 @@ module Telnyx
882
899
  # The predefined media to use. `typing` plays a keyboard typing sound.
883
900
  sig do
884
901
  returns(
885
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value::OrSymbol
902
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol
886
903
  )
887
904
  end
888
905
  attr_accessor :value
@@ -898,9 +915,9 @@ module Telnyx
898
915
  sig do
899
916
  params(
900
917
  type:
901
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type::OrSymbol,
918
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol,
902
919
  value:
903
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value::OrSymbol,
920
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol,
904
921
  volume: Float
905
922
  ).returns(T.attached_class)
906
923
  end
@@ -919,9 +936,9 @@ module Telnyx
919
936
  override.returns(
920
937
  {
921
938
  type:
922
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type::OrSymbol,
939
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol,
923
940
  value:
924
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value::OrSymbol,
941
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol,
925
942
  volume: Float
926
943
  }
927
944
  )
@@ -937,7 +954,7 @@ module Telnyx
937
954
  T.type_alias do
938
955
  T.all(
939
956
  Symbol,
940
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type
957
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type
941
958
  )
942
959
  end
943
960
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -945,13 +962,13 @@ module Telnyx
945
962
  PREDEFINED_MEDIA =
946
963
  T.let(
947
964
  :predefined_media,
948
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type::TaggedSymbol
965
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::TaggedSymbol
949
966
  )
950
967
 
951
968
  sig do
952
969
  override.returns(
953
970
  T::Array[
954
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Type::TaggedSymbol
971
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::TaggedSymbol
955
972
  ]
956
973
  )
957
974
  end
@@ -967,7 +984,7 @@ module Telnyx
967
984
  T.type_alias do
968
985
  T.all(
969
986
  Symbol,
970
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value
987
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value
971
988
  )
972
989
  end
973
990
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -975,13 +992,13 @@ module Telnyx
975
992
  TYPING =
976
993
  T.let(
977
994
  :typing,
978
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value::TaggedSymbol
995
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::TaggedSymbol
979
996
  )
980
997
 
981
998
  sig do
982
999
  override.returns(
983
1000
  T::Array[
984
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember0::Value::TaggedSymbol
1001
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::TaggedSymbol
985
1002
  ]
986
1003
  )
987
1004
  end
@@ -990,11 +1007,11 @@ module Telnyx
990
1007
  end
991
1008
  end
992
1009
 
993
- class UnionMember1 < Telnyx::Internal::Type::BaseModel
1010
+ class MediaURL < Telnyx::Internal::Type::BaseModel
994
1011
  OrHash =
995
1012
  T.type_alias do
996
1013
  T.any(
997
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1,
1014
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL,
998
1015
  Telnyx::Internal::AnyHash
999
1016
  )
1000
1017
  end
@@ -1002,7 +1019,7 @@ module Telnyx
1002
1019
  # Provide a direct URL to an MP3 file. The audio loops while the tool runs.
1003
1020
  sig do
1004
1021
  returns(
1005
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type::OrSymbol
1022
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol
1006
1023
  )
1007
1024
  end
1008
1025
  attr_accessor :type
@@ -1014,7 +1031,7 @@ module Telnyx
1014
1031
  sig do
1015
1032
  params(
1016
1033
  type:
1017
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type::OrSymbol,
1034
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol,
1018
1035
  value: String
1019
1036
  ).returns(T.attached_class)
1020
1037
  end
@@ -1030,7 +1047,7 @@ module Telnyx
1030
1047
  override.returns(
1031
1048
  {
1032
1049
  type:
1033
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type::OrSymbol,
1050
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol,
1034
1051
  value: String
1035
1052
  }
1036
1053
  )
@@ -1046,7 +1063,7 @@ module Telnyx
1046
1063
  T.type_alias do
1047
1064
  T.all(
1048
1065
  Symbol,
1049
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type
1066
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type
1050
1067
  )
1051
1068
  end
1052
1069
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -1054,13 +1071,13 @@ module Telnyx
1054
1071
  MEDIA_URL =
1055
1072
  T.let(
1056
1073
  :media_url,
1057
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type::TaggedSymbol
1074
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::TaggedSymbol
1058
1075
  )
1059
1076
 
1060
1077
  sig do
1061
1078
  override.returns(
1062
1079
  T::Array[
1063
- Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::UnionMember1::Type::TaggedSymbol
1080
+ Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::TaggedSymbol
1064
1081
  ]
1065
1082
  )
1066
1083
  end