telnyx 5.128.0 → 5.129.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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/call_dial_params.rb +70 -3
  5. data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
  6. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
  7. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
  8. data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
  9. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
  10. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
  11. data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
  12. data/lib/telnyx/version.rb +1 -1
  13. data/rbi/telnyx/models/call_dial_params.rbi +174 -6
  14. data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
  15. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
  16. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
  17. data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
  18. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
  19. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
  20. data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
  21. data/rbi/telnyx/resources/calls/actions.rbi +12 -5
  22. data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
  23. data/sig/telnyx/models/call_dial_params.rbs +62 -6
  24. data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
  25. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
  26. data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
  27. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
  28. data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
  29. metadata +2 -2
@@ -57,7 +57,9 @@ module Telnyx
57
57
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
58
58
  # `voice_settings` to configure precision, sample_rate, and format.
59
59
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
60
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
60
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
61
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
62
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
61
63
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
62
64
  # `ara`, `rex`, `sal`, `leo`.
63
65
  #
@@ -275,7 +277,9 @@ module Telnyx
275
277
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
276
278
  # `voice_settings` to configure precision, sample_rate, and format.
277
279
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
278
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
280
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
281
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
282
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
279
283
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
280
284
  # `ara`, `rex`, `sal`, `leo`.
281
285
  #
@@ -650,16 +654,99 @@ module Telnyx
650
654
  sig { returns(Symbol) }
651
655
  attr_accessor :type
652
656
 
653
- sig { params(type: Symbol).returns(T.attached_class) }
657
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
658
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
659
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
660
+ # supported by `TTS2`; when omitted, the provider default applies.
661
+ sig do
662
+ returns(
663
+ T.nilable(
664
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
665
+ )
666
+ )
667
+ end
668
+ attr_reader :delivery_mode
669
+
670
+ sig do
671
+ params(
672
+ delivery_mode:
673
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
674
+ ).void
675
+ end
676
+ attr_writer :delivery_mode
677
+
678
+ sig do
679
+ params(
680
+ delivery_mode:
681
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
682
+ type: Symbol
683
+ ).returns(T.attached_class)
684
+ end
654
685
  def self.new(
686
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
687
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
688
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
689
+ # supported by `TTS2`; when omitted, the provider default applies.
690
+ delivery_mode: nil,
655
691
  # Voice settings provider type
656
692
  type: :inworld
657
693
  )
658
694
  end
659
695
 
660
- sig { override.returns({ type: Symbol }) }
696
+ sig do
697
+ override.returns(
698
+ {
699
+ type: Symbol,
700
+ delivery_mode:
701
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
702
+ }
703
+ )
704
+ end
661
705
  def to_hash
662
706
  end
707
+
708
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
709
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
710
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
711
+ # supported by `TTS2`; when omitted, the provider default applies.
712
+ module DeliveryMode
713
+ extend Telnyx::Internal::Type::Enum
714
+
715
+ TaggedSymbol =
716
+ T.type_alias do
717
+ T.all(
718
+ Symbol,
719
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode
720
+ )
721
+ end
722
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
723
+
724
+ STABLE =
725
+ T.let(
726
+ :STABLE,
727
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
728
+ )
729
+ BALANCED =
730
+ T.let(
731
+ :BALANCED,
732
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
733
+ )
734
+ CREATIVE =
735
+ T.let(
736
+ :CREATIVE,
737
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
738
+ )
739
+
740
+ sig do
741
+ override.returns(
742
+ T::Array[
743
+ Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
744
+ ]
745
+ )
746
+ end
747
+ def self.values
748
+ end
749
+ end
663
750
  end
664
751
 
665
752
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -161,7 +161,8 @@ module Telnyx
161
161
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
162
162
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
163
163
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
164
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
164
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
165
+ # `Max`, `TTS2`.
165
166
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
166
167
  # `ara`, `rex`, `sal`, `leo`.
167
168
  sig { returns(T.nilable(String)) }
@@ -296,7 +297,8 @@ module Telnyx
296
297
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
297
298
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
298
299
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
299
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
300
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
301
+ # `Max`, `TTS2`.
300
302
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
301
303
  # `ara`, `rex`, `sal`, `leo`.
302
304
  voice: nil,
@@ -296,7 +296,8 @@ module Telnyx
296
296
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
297
297
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
298
298
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
299
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
299
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
300
+ # `Max`, `TTS2`.
300
301
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
301
302
  # `ara`, `rex`, `sal`, `leo`.
302
303
  sig { returns(T.nilable(String)) }
@@ -484,7 +485,8 @@ module Telnyx
484
485
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
485
486
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
486
487
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
487
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
488
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
489
+ # `Max`, `TTS2`.
488
490
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
489
491
  # `ara`, `rex`, `sal`, `leo`.
490
492
  voice: nil,
@@ -1128,16 +1130,99 @@ module Telnyx
1128
1130
  sig { returns(Symbol) }
1129
1131
  attr_accessor :type
1130
1132
 
1131
- sig { params(type: Symbol).returns(T.attached_class) }
1133
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1134
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1135
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1136
+ # supported by `TTS2`; when omitted, the provider default applies.
1137
+ sig do
1138
+ returns(
1139
+ T.nilable(
1140
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1141
+ )
1142
+ )
1143
+ end
1144
+ attr_reader :delivery_mode
1145
+
1146
+ sig do
1147
+ params(
1148
+ delivery_mode:
1149
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1150
+ ).void
1151
+ end
1152
+ attr_writer :delivery_mode
1153
+
1154
+ sig do
1155
+ params(
1156
+ delivery_mode:
1157
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
1158
+ type: Symbol
1159
+ ).returns(T.attached_class)
1160
+ end
1132
1161
  def self.new(
1162
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1163
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1164
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1165
+ # supported by `TTS2`; when omitted, the provider default applies.
1166
+ delivery_mode: nil,
1133
1167
  # Voice settings provider type
1134
1168
  type: :inworld
1135
1169
  )
1136
1170
  end
1137
1171
 
1138
- sig { override.returns({ type: Symbol }) }
1172
+ sig do
1173
+ override.returns(
1174
+ {
1175
+ type: Symbol,
1176
+ delivery_mode:
1177
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1178
+ }
1179
+ )
1180
+ end
1139
1181
  def to_hash
1140
1182
  end
1183
+
1184
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1185
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1186
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1187
+ # supported by `TTS2`; when omitted, the provider default applies.
1188
+ module DeliveryMode
1189
+ extend Telnyx::Internal::Type::Enum
1190
+
1191
+ TaggedSymbol =
1192
+ T.type_alias do
1193
+ T.all(
1194
+ Symbol,
1195
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode
1196
+ )
1197
+ end
1198
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1199
+
1200
+ STABLE =
1201
+ T.let(
1202
+ :STABLE,
1203
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1204
+ )
1205
+ BALANCED =
1206
+ T.let(
1207
+ :BALANCED,
1208
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1209
+ )
1210
+ CREATIVE =
1211
+ T.let(
1212
+ :CREATIVE,
1213
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1214
+ )
1215
+
1216
+ sig do
1217
+ override.returns(
1218
+ T::Array[
1219
+ Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
1220
+ ]
1221
+ )
1222
+ end
1223
+ def self.values
1224
+ end
1225
+ end
1141
1226
  end
1142
1227
 
1143
1228
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -1863,16 +1948,99 @@ module Telnyx
1863
1948
  sig { returns(Symbol) }
1864
1949
  attr_accessor :type
1865
1950
 
1866
- sig { params(type: Symbol).returns(T.attached_class) }
1951
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1952
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1953
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1954
+ # supported by `TTS2`; when omitted, the provider default applies.
1955
+ sig do
1956
+ returns(
1957
+ T.nilable(
1958
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1959
+ )
1960
+ )
1961
+ end
1962
+ attr_reader :delivery_mode
1963
+
1964
+ sig do
1965
+ params(
1966
+ delivery_mode:
1967
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1968
+ ).void
1969
+ end
1970
+ attr_writer :delivery_mode
1971
+
1972
+ sig do
1973
+ params(
1974
+ delivery_mode:
1975
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
1976
+ type: Symbol
1977
+ ).returns(T.attached_class)
1978
+ end
1867
1979
  def self.new(
1980
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1981
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1982
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1983
+ # supported by `TTS2`; when omitted, the provider default applies.
1984
+ delivery_mode: nil,
1868
1985
  # Voice settings provider type
1869
1986
  type: :inworld
1870
1987
  )
1871
1988
  end
1872
1989
 
1873
- sig { override.returns({ type: Symbol }) }
1990
+ sig do
1991
+ override.returns(
1992
+ {
1993
+ type: Symbol,
1994
+ delivery_mode:
1995
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::OrSymbol
1996
+ }
1997
+ )
1998
+ end
1874
1999
  def to_hash
1875
2000
  end
2001
+
2002
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2003
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2004
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2005
+ # supported by `TTS2`; when omitted, the provider default applies.
2006
+ module DeliveryMode
2007
+ extend Telnyx::Internal::Type::Enum
2008
+
2009
+ TaggedSymbol =
2010
+ T.type_alias do
2011
+ T.all(
2012
+ Symbol,
2013
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode
2014
+ )
2015
+ end
2016
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2017
+
2018
+ STABLE =
2019
+ T.let(
2020
+ :STABLE,
2021
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2022
+ )
2023
+ BALANCED =
2024
+ T.let(
2025
+ :BALANCED,
2026
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2027
+ )
2028
+ CREATIVE =
2029
+ T.let(
2030
+ :CREATIVE,
2031
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2032
+ )
2033
+
2034
+ sig do
2035
+ override.returns(
2036
+ T::Array[
2037
+ Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2038
+ ]
2039
+ )
2040
+ end
2041
+ def self.values
2042
+ end
2043
+ end
1876
2044
  end
1877
2045
 
1878
2046
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -2033,16 +2201,99 @@ module Telnyx
2033
2201
  sig { returns(Symbol) }
2034
2202
  attr_accessor :type
2035
2203
 
2036
- sig { params(type: Symbol).returns(T.attached_class) }
2204
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2205
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2206
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2207
+ # supported by `TTS2`; when omitted, the provider default applies.
2208
+ sig do
2209
+ returns(
2210
+ T.nilable(
2211
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2212
+ )
2213
+ )
2214
+ end
2215
+ attr_reader :delivery_mode
2216
+
2217
+ sig do
2218
+ params(
2219
+ delivery_mode:
2220
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2221
+ ).void
2222
+ end
2223
+ attr_writer :delivery_mode
2224
+
2225
+ sig do
2226
+ params(
2227
+ delivery_mode:
2228
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
2229
+ type: Symbol
2230
+ ).returns(T.attached_class)
2231
+ end
2037
2232
  def self.new(
2233
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2234
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2235
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2236
+ # supported by `TTS2`; when omitted, the provider default applies.
2237
+ delivery_mode: nil,
2038
2238
  # Voice settings provider type
2039
2239
  type: :inworld
2040
2240
  )
2041
2241
  end
2042
2242
 
2043
- sig { override.returns({ type: Symbol }) }
2243
+ sig do
2244
+ override.returns(
2245
+ {
2246
+ type: Symbol,
2247
+ delivery_mode:
2248
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
2249
+ }
2250
+ )
2251
+ end
2044
2252
  def to_hash
2045
2253
  end
2254
+
2255
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
2256
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
2257
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
2258
+ # supported by `TTS2`; when omitted, the provider default applies.
2259
+ module DeliveryMode
2260
+ extend Telnyx::Internal::Type::Enum
2261
+
2262
+ TaggedSymbol =
2263
+ T.type_alias do
2264
+ T.all(
2265
+ Symbol,
2266
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode
2267
+ )
2268
+ end
2269
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2270
+
2271
+ STABLE =
2272
+ T.let(
2273
+ :STABLE,
2274
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2275
+ )
2276
+ BALANCED =
2277
+ T.let(
2278
+ :BALANCED,
2279
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2280
+ )
2281
+ CREATIVE =
2282
+ T.let(
2283
+ :CREATIVE,
2284
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2285
+ )
2286
+
2287
+ sig do
2288
+ override.returns(
2289
+ T::Array[
2290
+ Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
2291
+ ]
2292
+ )
2293
+ end
2294
+ def self.values
2295
+ end
2296
+ end
2046
2297
  end
2047
2298
 
2048
2299
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -60,7 +60,9 @@ module Telnyx
60
60
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
61
61
  # `voice_settings` to configure precision, sample_rate, and format.
62
62
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
63
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
63
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
64
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
65
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
64
66
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
65
67
  # `ara`, `rex`, `sal`, `leo`.
66
68
  #
@@ -246,7 +248,9 @@ module Telnyx
246
248
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
247
249
  # `voice_settings` to configure precision, sample_rate, and format.
248
250
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
249
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
251
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
252
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
253
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
250
254
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
251
255
  # `ara`, `rex`, `sal`, `leo`.
252
256
  #
@@ -583,16 +587,99 @@ module Telnyx
583
587
  sig { returns(Symbol) }
584
588
  attr_accessor :type
585
589
 
586
- sig { params(type: Symbol).returns(T.attached_class) }
590
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
591
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
592
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
593
+ # supported by `TTS2`; when omitted, the provider default applies.
594
+ sig do
595
+ returns(
596
+ T.nilable(
597
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
598
+ )
599
+ )
600
+ end
601
+ attr_reader :delivery_mode
602
+
603
+ sig do
604
+ params(
605
+ delivery_mode:
606
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
607
+ ).void
608
+ end
609
+ attr_writer :delivery_mode
610
+
611
+ sig do
612
+ params(
613
+ delivery_mode:
614
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
615
+ type: Symbol
616
+ ).returns(T.attached_class)
617
+ end
587
618
  def self.new(
619
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
620
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
621
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
622
+ # supported by `TTS2`; when omitted, the provider default applies.
623
+ delivery_mode: nil,
588
624
  # Voice settings provider type
589
625
  type: :inworld
590
626
  )
591
627
  end
592
628
 
593
- sig { override.returns({ type: Symbol }) }
629
+ sig do
630
+ override.returns(
631
+ {
632
+ type: Symbol,
633
+ delivery_mode:
634
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
635
+ }
636
+ )
637
+ end
594
638
  def to_hash
595
639
  end
640
+
641
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
642
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
643
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
644
+ # supported by `TTS2`; when omitted, the provider default applies.
645
+ module DeliveryMode
646
+ extend Telnyx::Internal::Type::Enum
647
+
648
+ TaggedSymbol =
649
+ T.type_alias do
650
+ T.all(
651
+ Symbol,
652
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode
653
+ )
654
+ end
655
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
656
+
657
+ STABLE =
658
+ T.let(
659
+ :STABLE,
660
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
661
+ )
662
+ BALANCED =
663
+ T.let(
664
+ :BALANCED,
665
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
666
+ )
667
+ CREATIVE =
668
+ T.let(
669
+ :CREATIVE,
670
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
671
+ )
672
+
673
+ sig do
674
+ override.returns(
675
+ T::Array[
676
+ Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
677
+ ]
678
+ )
679
+ end
680
+ def self.values
681
+ end
682
+ end
596
683
  end
597
684
 
598
685
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -535,7 +535,8 @@ module Telnyx
535
535
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
536
536
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
537
537
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
538
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
538
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
539
+ # `Max`, `TTS2`.
539
540
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
540
541
  # `ara`, `rex`, `sal`, `leo`.
541
542
  voice: nil,
@@ -719,7 +720,9 @@ module Telnyx
719
720
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
720
721
  # `voice_settings` to configure precision, sample_rate, and format.
721
722
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
722
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
723
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
724
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
725
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
723
726
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
724
727
  # `ara`, `rex`, `sal`, `leo`.
725
728
  #
@@ -1132,7 +1135,9 @@ module Telnyx
1132
1135
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
1133
1136
  # `voice_settings` to configure precision, sample_rate, and format.
1134
1137
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1135
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1138
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1139
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
1140
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
1136
1141
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1137
1142
  # `ara`, `rex`, `sal`, `leo`.
1138
1143
  #
@@ -1269,7 +1274,8 @@ module Telnyx
1269
1274
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1270
1275
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1271
1276
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1272
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1277
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1278
+ # `Max`, `TTS2`.
1273
1279
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1274
1280
  # `ara`, `rex`, `sal`, `leo`.
1275
1281
  voice: nil,
@@ -1432,7 +1438,8 @@ module Telnyx
1432
1438
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1433
1439
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1434
1440
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1435
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1441
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1442
+ # `Max`, `TTS2`.
1436
1443
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1437
1444
  # `ara`, `rex`, `sal`, `leo`.
1438
1445
  voice: nil,
@@ -583,7 +583,9 @@ module Telnyx
583
583
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
584
584
  # `voice_settings` to configure precision, sample_rate, and format.
585
585
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
586
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
586
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
587
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
588
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
587
589
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
588
590
  # `ara`, `rex`, `sal`, `leo`.
589
591
  #