telnyx 5.127.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistants/instruction_enhance_params.rb +47 -0
  5. data/lib/telnyx/models/ai/assistants/instruction_enhance_response.rb +11 -0
  6. data/lib/telnyx/models/call_dial_params.rb +70 -3
  7. data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
  8. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
  9. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
  10. data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
  11. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
  12. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
  13. data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
  14. data/lib/telnyx/resources/ai/assistants/instructions.rb +64 -0
  15. data/lib/telnyx/resources/ai/assistants.rb +5 -0
  16. data/lib/telnyx/version.rb +1 -1
  17. data/lib/telnyx.rb +3 -0
  18. data/rbi/telnyx/models/ai/assistants/instruction_enhance_params.rbi +70 -0
  19. data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +11 -0
  20. data/rbi/telnyx/models/call_dial_params.rbi +174 -6
  21. data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
  22. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
  23. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
  24. data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
  25. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
  26. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
  27. data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
  28. data/rbi/telnyx/resources/ai/assistants/instructions.rbi +55 -0
  29. data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
  30. data/rbi/telnyx/resources/calls/actions.rbi +12 -5
  31. data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
  32. data/sig/telnyx/models/ai/assistants/instruction_enhance_params.rbs +40 -0
  33. data/sig/telnyx/models/ai/assistants/instruction_enhance_response.rbs +9 -0
  34. data/sig/telnyx/models/call_dial_params.rbs +62 -6
  35. data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
  36. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
  37. data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
  38. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
  39. data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
  40. data/sig/telnyx/resources/ai/assistants/instructions.rbs +18 -0
  41. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  42. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1ea8e5f0025fa1bed93aff26966ede1f904b29d60f7129ab45c5da31e940a30
4
- data.tar.gz: 2e55973cf269d3cbf3a0fd0bb759ebc37afb9e0b6fceba582127da8604ae51ea
3
+ metadata.gz: dabf8f2269a03e05c0a2d84fee03a011cf5960743ddc0df56c618dab05c5512e
4
+ data.tar.gz: d26aa01374a25cab06070315d362105e1babc08f61cd3b1c780e0e2be59cda28
5
5
  SHA512:
6
- metadata.gz: 82c4d6fd7a0d79f3c98205932067d2ca0a4b498634daed7f7a1b4ba1de4c974f43a9be2b2010edc6cf3bef8ccf6d7cf6da07f6f7db0740c4e33ec0f6d953713b
7
- data.tar.gz: 7ba21797f695d19c2126b50d00ea1b25493c8f01687053bbd8b197220187bcfae35af511c3140a61ad11822a95e7710e9afe40bd6c6834b9ca86ba5aaa6e201a
6
+ metadata.gz: 4888040ce2430d0c3eed94d1b43bde48afff9bc2a9a1e32c3451ed171ede1b46a9f64fc95acc4bac07b6acb56ef6752fa4a01d05f8854cf4527be08842bba0e5
7
+ data.tar.gz: 9a4420a10b5bccc53a41886ae034da0dc1ba1ff8ebb6e42ab679c5fd0e2363c4c62011d705096d282cacfea5d3ea5dfacb5b67c6bf13893ec04f112dd0408a25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.129.0 (2026-06-16)
4
+
5
+ Full Changelog: [v5.128.0...v5.129.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.128.0...v5.129.0)
6
+
7
+ ### Features
8
+
9
+ * TELAPPS-719: add Inworld inworld-tts-2 model + delivery_mode to call-control voice settings ([1f84640](https://github.com/team-telnyx/telnyx-ruby/commit/1f84640dab2e0aa2e51a4c302c89e09302664953))
10
+
11
+ ## 5.128.0 (2026-06-15)
12
+
13
+ Full Changelog: [v5.127.0...v5.128.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.127.0...v5.128.0)
14
+
15
+ ### Features
16
+
17
+ * Document POST /ai/assistants/{assistant_id}/instructions/enhance ([f07ac06](https://github.com/team-telnyx/telnyx-ruby/commit/f07ac069ef9d4690e5d5ac74e7ce4a61fa238957))
18
+
3
19
  ## 5.127.0 (2026-06-11)
4
20
 
5
21
  Full Changelog: [v5.126.0...v5.127.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.126.0...v5.127.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.127.0"
27
+ gem "telnyx", "~> 5.129.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ module Assistants
7
+ # @see Telnyx::Resources::AI::Assistants::Instructions#enhance
8
+ class InstructionEnhanceParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute assistant_id
13
+ #
14
+ # @return [String]
15
+ required :assistant_id, String
16
+
17
+ # @!attribute enhancement_prompt
18
+ # Optional guidance describing how the instructions should be enhanced. When
19
+ # provided, the LLM applies these requested changes in addition to fixing any
20
+ # identified issues.
21
+ #
22
+ # @return [String, nil]
23
+ optional :enhancement_prompt, String, nil?: true
24
+
25
+ # @!attribute instructions
26
+ # The instructions to enhance. When omitted, the assistant's existing instructions
27
+ # are used.
28
+ #
29
+ # @return [String, nil]
30
+ optional :instructions, String, nil?: true
31
+
32
+ # @!method initialize(assistant_id:, enhancement_prompt: nil, instructions: nil, request_options: {})
33
+ # Some parameter documentations has been truncated, see
34
+ # {Telnyx::Models::AI::Assistants::InstructionEnhanceParams} for more details.
35
+ #
36
+ # @param assistant_id [String]
37
+ #
38
+ # @param enhancement_prompt [String, nil] Optional guidance describing how the instructions should be enhanced. When provi
39
+ #
40
+ # @param instructions [String, nil] The instructions to enhance. When omitted, the assistant's existing instructions
41
+ #
42
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ module Assistants
7
+ InstructionEnhanceResponse = String
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1078,7 +1078,8 @@ module Telnyx
1078
1078
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
1079
1079
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
1080
1080
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
1081
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
1081
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
1082
+ # `Max`, `TTS2`.
1082
1083
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
1083
1084
  # `ara`, `rex`, `sal`, `leo`.
1084
1085
  #
@@ -1412,8 +1413,41 @@ module Telnyx
1412
1413
  # @return [Symbol, :inworld]
1413
1414
  required :type, const: :inworld
1414
1415
 
1415
- # @!method initialize(type: :inworld)
1416
+ # @!attribute delivery_mode
1417
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1418
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1419
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1420
+ # supported by `TTS2`; when omitted, the provider default applies.
1421
+ #
1422
+ # @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode, nil]
1423
+ optional :delivery_mode,
1424
+ enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode }
1425
+
1426
+ # @!method initialize(delivery_mode: nil, type: :inworld)
1427
+ # Some parameter documentations has been truncated, see
1428
+ # {Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld}
1429
+ # for more details.
1430
+ #
1431
+ # @param delivery_mode [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1432
+ #
1416
1433
  # @param type [Symbol, :inworld] Voice settings provider type
1434
+
1435
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1436
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1437
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1438
+ # supported by `TTS2`; when omitted, the provider default applies.
1439
+ #
1440
+ # @see Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld#delivery_mode
1441
+ module DeliveryMode
1442
+ extend Telnyx::Internal::Type::Enum
1443
+
1444
+ STABLE = :STABLE
1445
+ BALANCED = :BALANCED
1446
+ CREATIVE = :CREATIVE
1447
+
1448
+ # @!method self.values
1449
+ # @return [Array<Symbol>]
1450
+ end
1417
1451
  end
1418
1452
 
1419
1453
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -1497,8 +1531,41 @@ module Telnyx
1497
1531
  # @return [Symbol, :inworld]
1498
1532
  required :type, const: :inworld
1499
1533
 
1500
- # @!method initialize(type: :inworld)
1534
+ # @!attribute delivery_mode
1535
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1536
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1537
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1538
+ # supported by `TTS2`; when omitted, the provider default applies.
1539
+ #
1540
+ # @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode, nil]
1541
+ optional :delivery_mode,
1542
+ enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode }
1543
+
1544
+ # @!method initialize(delivery_mode: nil, type: :inworld)
1545
+ # Some parameter documentations has been truncated, see
1546
+ # {Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld}
1547
+ # for more details.
1548
+ #
1549
+ # @param delivery_mode [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1550
+ #
1501
1551
  # @param type [Symbol, :inworld] Voice settings provider type
1552
+
1553
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
1554
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
1555
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
1556
+ # supported by `TTS2`; when omitted, the provider default applies.
1557
+ #
1558
+ # @see Telnyx::Models::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld#delivery_mode
1559
+ module DeliveryMode
1560
+ extend Telnyx::Internal::Type::Enum
1561
+
1562
+ STABLE = :STABLE
1563
+ BALANCED = :BALANCED
1564
+ CREATIVE = :CREATIVE
1565
+
1566
+ # @!method self.values
1567
+ # @return [Array<Symbol>]
1568
+ end
1502
1569
  end
1503
1570
 
1504
1571
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -440,7 +440,8 @@ module Telnyx
440
440
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
441
441
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
442
442
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
443
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
443
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
444
+ # `Max`, `TTS2`.
444
445
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
445
446
  # `ara`, `rex`, `sal`, `leo`.
446
447
  #
@@ -778,8 +779,41 @@ module Telnyx
778
779
  # @return [Symbol, :inworld]
779
780
  required :type, const: :inworld
780
781
 
781
- # @!method initialize(type: :inworld)
782
+ # @!attribute delivery_mode
783
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
784
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
785
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
786
+ # supported by `TTS2`; when omitted, the provider default applies.
787
+ #
788
+ # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode, nil]
789
+ optional :delivery_mode,
790
+ enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode }
791
+
792
+ # @!method initialize(delivery_mode: nil, type: :inworld)
793
+ # Some parameter documentations has been truncated, see
794
+ # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld}
795
+ # for more details.
796
+ #
797
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
798
+ #
782
799
  # @param type [Symbol, :inworld] Voice settings provider type
800
+
801
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
802
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
803
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
804
+ # supported by `TTS2`; when omitted, the provider default applies.
805
+ #
806
+ # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld#delivery_mode
807
+ module DeliveryMode
808
+ extend Telnyx::Internal::Type::Enum
809
+
810
+ STABLE = :STABLE
811
+ BALANCED = :BALANCED
812
+ CREATIVE = :CREATIVE
813
+
814
+ # @!method self.values
815
+ # @return [Array<Symbol>]
816
+ end
783
817
  end
784
818
 
785
819
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -864,8 +898,41 @@ module Telnyx
864
898
  # @return [Symbol, :inworld]
865
899
  required :type, const: :inworld
866
900
 
867
- # @!method initialize(type: :inworld)
901
+ # @!attribute delivery_mode
902
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
903
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
904
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
905
+ # supported by `TTS2`; when omitted, the provider default applies.
906
+ #
907
+ # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode, nil]
908
+ optional :delivery_mode,
909
+ enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode }
910
+
911
+ # @!method initialize(delivery_mode: nil, type: :inworld)
912
+ # Some parameter documentations has been truncated, see
913
+ # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld}
914
+ # for more details.
915
+ #
916
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
917
+ #
868
918
  # @param type [Symbol, :inworld] Voice settings provider type
919
+
920
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
921
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
922
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
923
+ # supported by `TTS2`; when omitted, the provider default applies.
924
+ #
925
+ # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld#delivery_mode
926
+ module DeliveryMode
927
+ extend Telnyx::Internal::Type::Enum
928
+
929
+ STABLE = :STABLE
930
+ BALANCED = :BALANCED
931
+ CREATIVE = :CREATIVE
932
+
933
+ # @!method self.values
934
+ # @return [Array<Symbol>]
935
+ end
869
936
  end
870
937
 
871
938
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -134,7 +134,8 @@ module Telnyx
134
134
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
135
135
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
136
136
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
137
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
137
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
138
+ # `Max`, `TTS2`.
138
139
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
139
140
  # `ara`, `rex`, `sal`, `leo`.
140
141
  #
@@ -58,7 +58,9 @@ module Telnyx
58
58
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
59
59
  # `voice_settings` to configure precision, sample_rate, and format.
60
60
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
61
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
61
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
62
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
63
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
62
64
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
63
65
  # `ara`, `rex`, `sal`, `leo`.
64
66
  #
@@ -298,8 +300,41 @@ module Telnyx
298
300
  # @return [Symbol, :inworld]
299
301
  required :type, const: :inworld
300
302
 
301
- # @!method initialize(type: :inworld)
303
+ # @!attribute delivery_mode
304
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
305
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
306
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
307
+ # supported by `TTS2`; when omitted, the provider default applies.
308
+ #
309
+ # @return [Symbol, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode, nil]
310
+ optional :delivery_mode,
311
+ enum: -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode }
312
+
313
+ # @!method initialize(delivery_mode: nil, type: :inworld)
314
+ # Some parameter documentations has been truncated, see
315
+ # {Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld}
316
+ # for more details.
317
+ #
318
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
319
+ #
302
320
  # @param type [Symbol, :inworld] Voice settings provider type
321
+
322
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
323
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
324
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
325
+ # supported by `TTS2`; when omitted, the provider default applies.
326
+ #
327
+ # @see Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld#delivery_mode
328
+ module DeliveryMode
329
+ extend Telnyx::Internal::Type::Enum
330
+
331
+ STABLE = :STABLE
332
+ BALANCED = :BALANCED
333
+ CREATIVE = :CREATIVE
334
+
335
+ # @!method self.values
336
+ # @return [Array<Symbol>]
337
+ end
303
338
  end
304
339
 
305
340
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -58,7 +58,9 @@ module Telnyx
58
58
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
59
59
  # `voice_settings` to configure precision, sample_rate, and format.
60
60
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
61
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
61
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
62
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
63
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
62
64
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
63
65
  # `ara`, `rex`, `sal`, `leo`.
64
66
  #
@@ -267,8 +269,41 @@ module Telnyx
267
269
  # @return [Symbol, :inworld]
268
270
  required :type, const: :inworld
269
271
 
270
- # @!method initialize(type: :inworld)
272
+ # @!attribute delivery_mode
273
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
274
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
275
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
276
+ # supported by `TTS2`; when omitted, the provider default applies.
277
+ #
278
+ # @return [Symbol, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode, nil]
279
+ optional :delivery_mode,
280
+ enum: -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode }
281
+
282
+ # @!method initialize(delivery_mode: nil, type: :inworld)
283
+ # Some parameter documentations has been truncated, see
284
+ # {Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld} for more
285
+ # details.
286
+ #
287
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
288
+ #
271
289
  # @param type [Symbol, :inworld] Voice settings provider type
290
+
291
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
292
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
293
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
294
+ # supported by `TTS2`; when omitted, the provider default applies.
295
+ #
296
+ # @see Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld#delivery_mode
297
+ module DeliveryMode
298
+ extend Telnyx::Internal::Type::Enum
299
+
300
+ STABLE = :STABLE
301
+ BALANCED = :BALANCED
302
+ CREATIVE = :CREATIVE
303
+
304
+ # @!method self.values
305
+ # @return [Array<Symbol>]
306
+ end
272
307
  end
273
308
 
274
309
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -104,7 +104,8 @@ module Telnyx
104
104
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
105
105
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
106
106
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
107
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
107
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
108
+ # `Max`, `TTS2`.
108
109
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
109
110
  # `ara`, `rex`, `sal`, `leo`.
110
111
  #
@@ -195,7 +195,8 @@ module Telnyx
195
195
  # [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
196
196
  # - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
197
197
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
198
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
198
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
199
+ # `Max`, `TTS2`.
199
200
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
200
201
  # `ara`, `rex`, `sal`, `leo`.
201
202
  #
@@ -511,8 +512,41 @@ module Telnyx
511
512
  # @return [Symbol, :inworld]
512
513
  required :type, const: :inworld
513
514
 
514
- # @!method initialize(type: :inworld)
515
+ # @!attribute delivery_mode
516
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
517
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
518
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
519
+ # supported by `TTS2`; when omitted, the provider default applies.
520
+ #
521
+ # @return [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode, nil]
522
+ optional :delivery_mode,
523
+ enum: -> { Telnyx::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode }
524
+
525
+ # @!method initialize(delivery_mode: nil, type: :inworld)
526
+ # Some parameter documentations has been truncated, see
527
+ # {Telnyx::Models::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld}
528
+ # for more details.
529
+ #
530
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
531
+ #
515
532
  # @param type [Symbol, :inworld] Voice settings provider type
533
+
534
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
535
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
536
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
537
+ # supported by `TTS2`; when omitted, the provider default applies.
538
+ #
539
+ # @see Telnyx::Models::Calls::ActionStartConversationRelayParams::ConversationRelaySettings::Language::VoiceSettings::Inworld#delivery_mode
540
+ module DeliveryMode
541
+ extend Telnyx::Internal::Type::Enum
542
+
543
+ STABLE = :STABLE
544
+ BALANCED = :BALANCED
545
+ CREATIVE = :CREATIVE
546
+
547
+ # @!method self.values
548
+ # @return [Array<Symbol>]
549
+ end
516
550
  end
517
551
 
518
552
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -814,8 +848,41 @@ module Telnyx
814
848
  # @return [Symbol, :inworld]
815
849
  required :type, const: :inworld
816
850
 
817
- # @!method initialize(type: :inworld)
851
+ # @!attribute delivery_mode
852
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
853
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
854
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
855
+ # supported by `TTS2`; when omitted, the provider default applies.
856
+ #
857
+ # @return [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode, nil]
858
+ optional :delivery_mode,
859
+ enum: -> { Telnyx::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode }
860
+
861
+ # @!method initialize(delivery_mode: nil, type: :inworld)
862
+ # Some parameter documentations has been truncated, see
863
+ # {Telnyx::Models::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld}
864
+ # for more details.
865
+ #
866
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
867
+ #
818
868
  # @param type [Symbol, :inworld] Voice settings provider type
869
+
870
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
871
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
872
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
873
+ # supported by `TTS2`; when omitted, the provider default applies.
874
+ #
875
+ # @see Telnyx::Models::Calls::ActionStartConversationRelayParams::Language::VoiceSettings::Inworld#delivery_mode
876
+ module DeliveryMode
877
+ extend Telnyx::Internal::Type::Enum
878
+
879
+ STABLE = :STABLE
880
+ BALANCED = :BALANCED
881
+ CREATIVE = :CREATIVE
882
+
883
+ # @!method self.values
884
+ # @return [Array<Symbol>]
885
+ end
819
886
  end
820
887
 
821
888
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -895,8 +962,41 @@ module Telnyx
895
962
  # @return [Symbol, :inworld]
896
963
  required :type, const: :inworld
897
964
 
898
- # @!method initialize(type: :inworld)
965
+ # @!attribute delivery_mode
966
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
967
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
968
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
969
+ # supported by `TTS2`; when omitted, the provider default applies.
970
+ #
971
+ # @return [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode, nil]
972
+ optional :delivery_mode,
973
+ enum: -> { Telnyx::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode }
974
+
975
+ # @!method initialize(delivery_mode: nil, type: :inworld)
976
+ # Some parameter documentations has been truncated, see
977
+ # {Telnyx::Models::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld}
978
+ # for more details.
979
+ #
980
+ # @param delivery_mode [Symbol, Telnyx::Models::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
981
+ #
899
982
  # @param type [Symbol, :inworld] Voice settings provider type
983
+
984
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
985
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
986
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
987
+ # supported by `TTS2`; when omitted, the provider default applies.
988
+ #
989
+ # @see Telnyx::Models::Calls::ActionStartConversationRelayParams::VoiceSettings::Inworld#delivery_mode
990
+ module DeliveryMode
991
+ extend Telnyx::Internal::Type::Enum
992
+
993
+ STABLE = :STABLE
994
+ BALANCED = :BALANCED
995
+ CREATIVE = :CREATIVE
996
+
997
+ # @!method self.values
998
+ # @return [Array<Symbol>]
999
+ end
900
1000
  end
901
1001
 
902
1002
  class Xai < Telnyx::Internal::Type::BaseModel
@@ -58,7 +58,9 @@ module Telnyx
58
58
  # `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
59
59
  # `voice_settings` to configure precision, sample_rate, and format.
60
60
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
61
- # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
61
+ # `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
62
+ # `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
63
+ # `BALANCED`, `CREATIVE`), supported by `TTS2` only.
62
64
  # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
63
65
  # `ara`, `rex`, `sal`, `leo`.
64
66
  #
@@ -230,8 +232,41 @@ module Telnyx
230
232
  # @return [Symbol, :inworld]
231
233
  required :type, const: :inworld
232
234
 
233
- # @!method initialize(type: :inworld)
235
+ # @!attribute delivery_mode
236
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
237
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
238
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
239
+ # supported by `TTS2`; when omitted, the provider default applies.
240
+ #
241
+ # @return [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode, nil]
242
+ optional :delivery_mode,
243
+ enum: -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode }
244
+
245
+ # @!method initialize(delivery_mode: nil, type: :inworld)
246
+ # Some parameter documentations has been truncated, see
247
+ # {Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld} for
248
+ # more details.
249
+ #
250
+ # @param delivery_mode [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld::DeliveryMode] Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
251
+ #
234
252
  # @param type [Symbol, :inworld] Voice settings provider type
253
+
254
+ # Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
255
+ # synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
256
+ # more expressive variation, and `BALANCED` sits in between. Optional and only
257
+ # supported by `TTS2`; when omitted, the provider default applies.
258
+ #
259
+ # @see Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld#delivery_mode
260
+ module DeliveryMode
261
+ extend Telnyx::Internal::Type::Enum
262
+
263
+ STABLE = :STABLE
264
+ BALANCED = :BALANCED
265
+ CREATIVE = :CREATIVE
266
+
267
+ # @!method self.values
268
+ # @return [Array<Symbol>]
269
+ end
235
270
  end
236
271
 
237
272
  class Xai < Telnyx::Internal::Type::BaseModel