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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistants/instruction_enhance_params.rb +47 -0
- data/lib/telnyx/models/ai/assistants/instruction_enhance_response.rb +11 -0
- data/lib/telnyx/models/call_dial_params.rb +70 -3
- data/lib/telnyx/models/calls/action_answer_params.rb +70 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +2 -1
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +37 -2
- data/lib/telnyx/models/calls/action_speak_params.rb +37 -2
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +2 -1
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +104 -4
- data/lib/telnyx/models/conferences/action_speak_params.rb +37 -2
- data/lib/telnyx/resources/ai/assistants/instructions.rb +64 -0
- data/lib/telnyx/resources/ai/assistants.rb +5 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +3 -0
- data/rbi/telnyx/models/ai/assistants/instruction_enhance_params.rbi +70 -0
- data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +11 -0
- data/rbi/telnyx/models/call_dial_params.rbi +174 -6
- data/rbi/telnyx/models/calls/action_answer_params.rbi +174 -6
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +4 -2
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -4
- data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -4
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +4 -2
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +259 -8
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -4
- data/rbi/telnyx/resources/ai/assistants/instructions.rbi +55 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
- data/rbi/telnyx/resources/calls/actions.rbi +12 -5
- data/rbi/telnyx/resources/conferences/actions.rbi +3 -1
- data/sig/telnyx/models/ai/assistants/instruction_enhance_params.rbs +40 -0
- data/sig/telnyx/models/ai/assistants/instruction_enhance_response.rbs +9 -0
- data/sig/telnyx/models/call_dial_params.rbs +62 -6
- data/sig/telnyx/models/calls/action_answer_params.rbs +62 -6
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +31 -3
- data/sig/telnyx/models/calls/action_speak_params.rbs +31 -3
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +93 -9
- data/sig/telnyx/models/conferences/action_speak_params.rbs +31 -3
- data/sig/telnyx/resources/ai/assistants/instructions.rbs +18 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- metadata +11 -2
|
@@ -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`,
|
|
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
|
#
|
|
@@ -320,7 +322,9 @@ module Telnyx
|
|
|
320
322
|
# `Resemble.Turbo.my_voice`). Only `Turbo` model is supported. Use
|
|
321
323
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
322
324
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
323
|
-
# `Inworld.Max.Oliver`). Supported models: `Mini`,
|
|
325
|
+
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
326
|
+
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
327
|
+
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
324
328
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
325
329
|
# `ara`, `rex`, `sal`, `leo`.
|
|
326
330
|
#
|
|
@@ -686,16 +690,99 @@ module Telnyx
|
|
|
686
690
|
sig { returns(Symbol) }
|
|
687
691
|
attr_accessor :type
|
|
688
692
|
|
|
689
|
-
|
|
693
|
+
# Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
|
|
694
|
+
# synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
|
|
695
|
+
# more expressive variation, and `BALANCED` sits in between. Optional and only
|
|
696
|
+
# supported by `TTS2`; when omitted, the provider default applies.
|
|
697
|
+
sig do
|
|
698
|
+
returns(
|
|
699
|
+
T.nilable(
|
|
700
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
|
|
701
|
+
)
|
|
702
|
+
)
|
|
703
|
+
end
|
|
704
|
+
attr_reader :delivery_mode
|
|
705
|
+
|
|
706
|
+
sig do
|
|
707
|
+
params(
|
|
708
|
+
delivery_mode:
|
|
709
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
|
|
710
|
+
).void
|
|
711
|
+
end
|
|
712
|
+
attr_writer :delivery_mode
|
|
713
|
+
|
|
714
|
+
sig do
|
|
715
|
+
params(
|
|
716
|
+
delivery_mode:
|
|
717
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol,
|
|
718
|
+
type: Symbol
|
|
719
|
+
).returns(T.attached_class)
|
|
720
|
+
end
|
|
690
721
|
def self.new(
|
|
722
|
+
# Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
|
|
723
|
+
# synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
|
|
724
|
+
# more expressive variation, and `BALANCED` sits in between. Optional and only
|
|
725
|
+
# supported by `TTS2`; when omitted, the provider default applies.
|
|
726
|
+
delivery_mode: nil,
|
|
691
727
|
# Voice settings provider type
|
|
692
728
|
type: :inworld
|
|
693
729
|
)
|
|
694
730
|
end
|
|
695
731
|
|
|
696
|
-
sig
|
|
732
|
+
sig do
|
|
733
|
+
override.returns(
|
|
734
|
+
{
|
|
735
|
+
type: Symbol,
|
|
736
|
+
delivery_mode:
|
|
737
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::OrSymbol
|
|
738
|
+
}
|
|
739
|
+
)
|
|
740
|
+
end
|
|
697
741
|
def to_hash
|
|
698
742
|
end
|
|
743
|
+
|
|
744
|
+
# Controls the expressiveness and consistency of the Inworld `TTS2` model's speech
|
|
745
|
+
# synthesis. `STABLE` favors consistent, predictable output, `CREATIVE` allows
|
|
746
|
+
# more expressive variation, and `BALANCED` sits in between. Optional and only
|
|
747
|
+
# supported by `TTS2`; when omitted, the provider default applies.
|
|
748
|
+
module DeliveryMode
|
|
749
|
+
extend Telnyx::Internal::Type::Enum
|
|
750
|
+
|
|
751
|
+
TaggedSymbol =
|
|
752
|
+
T.type_alias do
|
|
753
|
+
T.all(
|
|
754
|
+
Symbol,
|
|
755
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode
|
|
756
|
+
)
|
|
757
|
+
end
|
|
758
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
759
|
+
|
|
760
|
+
STABLE =
|
|
761
|
+
T.let(
|
|
762
|
+
:STABLE,
|
|
763
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
|
|
764
|
+
)
|
|
765
|
+
BALANCED =
|
|
766
|
+
T.let(
|
|
767
|
+
:BALANCED,
|
|
768
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
|
|
769
|
+
)
|
|
770
|
+
CREATIVE =
|
|
771
|
+
T.let(
|
|
772
|
+
:CREATIVE,
|
|
773
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
sig do
|
|
777
|
+
override.returns(
|
|
778
|
+
T::Array[
|
|
779
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::DeliveryMode::TaggedSymbol
|
|
780
|
+
]
|
|
781
|
+
)
|
|
782
|
+
end
|
|
783
|
+
def self.values
|
|
784
|
+
end
|
|
785
|
+
end
|
|
699
786
|
end
|
|
700
787
|
|
|
701
788
|
class Xai < Telnyx::Internal::Type::BaseModel
|
|
@@ -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`,
|
|
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`,
|
|
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
|
-
|
|
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
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|