telnyx 5.155.0 → 5.157.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/client.rb +1 -0
- data/lib/telnyx/internal/type/union.rb +4 -4
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +118 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
- data/lib/telnyx/models/ai/tool_create_params.rb +13 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +13 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +3 -0
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +6 -0
- data/lib/telnyx/models/calls/action_speak_params.rb +6 -0
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +3 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +3 -0
- data/lib/telnyx/models/calls/telnyx_voice_settings.rb +2 -1
- data/lib/telnyx/models/calls/transcription_config.rb +8 -4
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
- data/lib/telnyx/models/conferences/action_speak_params.rb +6 -0
- data/lib/telnyx/models/conversation_relay_embedded_config.rb +3 -0
- data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
- data/lib/telnyx/models/inbound_message.rb +278 -28
- data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
- data/lib/telnyx/models/managed_account_list_params.rb +45 -3
- data/lib/telnyx/models/models_response.rb +0 -1
- data/lib/telnyx/models/phone_number_delete_response.rb +12 -1
- data/lib/telnyx/models/phone_number_detailed.rb +12 -1
- data/lib/telnyx/models/phone_number_slim_list_response.rb +12 -1
- data/lib/telnyx/models/requirement_list_params.rb +10 -1
- data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
- data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
- data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
- data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
- data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
- data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
- data/lib/telnyx/models/text_to_speech_generate_speech_params.rb +13 -8
- data/lib/telnyx/models/text_to_speech_retrieve_speech_params.rb +4 -4
- data/lib/telnyx/models/verify_profile.rb +2 -2
- data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
- data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
- data/lib/telnyx/models.rb +0 -6
- data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
- data/lib/telnyx/resources/ai/anthropic.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/chat.rb +0 -81
- data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
- data/lib/telnyx/resources/ai/conversations.rb +5 -0
- data/lib/telnyx/resources/ai/tools.rb +8 -2
- data/lib/telnyx/resources/ai.rb +3 -56
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/messages.rb +1 -32
- data/lib/telnyx/resources/requirements.rb +13 -3
- data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
- data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
- data/lib/telnyx/resources/storage.rb +6 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -7
- data/rbi/telnyx/client.rbi +1 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +258 -1
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -4
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -4
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +18 -6
- data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +18 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +18 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +6 -0
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +12 -0
- data/rbi/telnyx/models/calls/action_speak_params.rbi +12 -0
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +6 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +6 -0
- data/rbi/telnyx/models/calls/telnyx_voice_settings.rbi +4 -2
- data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +12 -0
- data/rbi/telnyx/models/conversation_relay_embedded_config.rbi +6 -0
- data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
- data/rbi/telnyx/models/inbound_message.rbi +324 -58
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
- data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
- data/rbi/telnyx/models/phone_number_delete_response.rbi +14 -0
- data/rbi/telnyx/models/phone_number_detailed.rbi +14 -0
- data/rbi/telnyx/models/phone_number_slim_list_response.rbi +14 -0
- data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
- data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
- data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
- data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
- data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
- data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
- data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
- data/rbi/telnyx/models/text_to_speech_generate_speech_params.rbi +21 -13
- data/rbi/telnyx/models/text_to_speech_retrieve_speech_params.rbi +8 -8
- data/rbi/telnyx/models/verify_profile.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
- data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -2
- data/rbi/telnyx/resources/ai/chat.rbi +0 -129
- data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
- data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
- data/rbi/telnyx/resources/ai/tools.rbi +8 -0
- data/rbi/telnyx/resources/ai.rbi +2 -32
- data/rbi/telnyx/resources/calls/actions.rbi +21 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/conferences/actions.rbi +6 -0
- data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
- data/rbi/telnyx/resources/messages.rbi +1 -28
- data/rbi/telnyx/resources/requirements.rbi +8 -0
- data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
- data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
- data/rbi/telnyx/resources/storage.rbi +5 -0
- data/rbi/telnyx/resources/text_to_speech.rbi +11 -9
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +108 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
- data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +14 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
- data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
- data/sig/telnyx/models/inbound_message.rbs +204 -35
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
- data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
- data/sig/telnyx/models/phone_number_delete_response.rbs +5 -0
- data/sig/telnyx/models/phone_number_detailed.rbs +5 -0
- data/sig/telnyx/models/phone_number_slim_list_response.rbs +5 -0
- data/sig/telnyx/models/requirement_list_params.rbs +8 -1
- data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
- data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
- data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
- data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
- data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
- data/sig/telnyx/models.rbs +0 -6
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
- data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
- data/sig/telnyx/resources/ai/chat.rbs +0 -30
- data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
- data/sig/telnyx/resources/ai/conversations.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +4 -0
- data/sig/telnyx/resources/ai.rbs +1 -8
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/messages.rbs +0 -10
- data/sig/telnyx/resources/requirements.rbs +2 -0
- data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
- data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- metadata +62 -23
- data/lib/telnyx/models/ai/chat_create_completion_params.rb +0 -16
- data/lib/telnyx/models/ai/chat_create_completion_response.rb +0 -10
- data/lib/telnyx/models/ai_create_response_deprecated_params.rb +0 -20
- data/lib/telnyx/models/ai_create_response_deprecated_response.rb +0 -8
- data/lib/telnyx/models/ai_retrieve_models_params.rb +0 -14
- data/lib/telnyx/models/message_send_whatsapp_params.rb +0 -71
- data/lib/telnyx/models/message_send_whatsapp_response.rb +0 -178
- data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +0 -32
- data/rbi/telnyx/models/ai/chat_create_completion_response.rbi +0 -13
- data/rbi/telnyx/models/ai_create_response_deprecated_params.rbi +0 -41
- data/rbi/telnyx/models/ai_create_response_deprecated_response.rbi +0 -11
- data/rbi/telnyx/models/ai_retrieve_models_params.rbi +0 -27
- data/rbi/telnyx/models/message_send_whatsapp_params.rbi +0 -124
- data/rbi/telnyx/models/message_send_whatsapp_response.rbi +0 -379
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +0 -17
- data/sig/telnyx/models/ai/chat_create_completion_response.rbs +0 -9
- data/sig/telnyx/models/ai_create_response_deprecated_params.rbs +0 -24
- data/sig/telnyx/models/ai_create_response_deprecated_response.rbs +0 -7
- data/sig/telnyx/models/ai_retrieve_models_params.rbs +0 -15
- data/sig/telnyx/models/message_send_whatsapp_params.rbs +0 -69
- data/sig/telnyx/models/message_send_whatsapp_response.rbs +0 -191
|
@@ -15,6 +15,12 @@ module Telnyx
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :tool_id
|
|
17
17
|
|
|
18
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
19
|
+
attr_reader :client_side_tool
|
|
20
|
+
|
|
21
|
+
sig { params(client_side_tool: T::Hash[Symbol, T.anything]).void }
|
|
22
|
+
attr_writer :client_side_tool
|
|
23
|
+
|
|
18
24
|
sig { returns(T.nilable(String)) }
|
|
19
25
|
attr_reader :display_name
|
|
20
26
|
|
|
@@ -39,6 +45,12 @@ module Telnyx
|
|
|
39
45
|
sig { params(invite: T::Hash[Symbol, T.anything]).void }
|
|
40
46
|
attr_writer :invite
|
|
41
47
|
|
|
48
|
+
sig { returns(T.nilable(Telnyx::AI::PayToolParams)) }
|
|
49
|
+
attr_reader :pay
|
|
50
|
+
|
|
51
|
+
sig { params(pay: Telnyx::AI::PayToolParams::OrHash).void }
|
|
52
|
+
attr_writer :pay
|
|
53
|
+
|
|
42
54
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
43
55
|
attr_reader :retrieval
|
|
44
56
|
|
|
@@ -66,10 +78,12 @@ module Telnyx
|
|
|
66
78
|
sig do
|
|
67
79
|
params(
|
|
68
80
|
tool_id: String,
|
|
81
|
+
client_side_tool: T::Hash[Symbol, T.anything],
|
|
69
82
|
display_name: String,
|
|
70
83
|
function: T::Hash[Symbol, T.anything],
|
|
71
84
|
handoff: T::Hash[Symbol, T.anything],
|
|
72
85
|
invite: T::Hash[Symbol, T.anything],
|
|
86
|
+
pay: Telnyx::AI::PayToolParams::OrHash,
|
|
73
87
|
retrieval: T::Hash[Symbol, T.anything],
|
|
74
88
|
timeout_ms: Integer,
|
|
75
89
|
type: String,
|
|
@@ -79,10 +93,12 @@ module Telnyx
|
|
|
79
93
|
end
|
|
80
94
|
def self.new(
|
|
81
95
|
tool_id:,
|
|
96
|
+
client_side_tool: nil,
|
|
82
97
|
display_name: nil,
|
|
83
98
|
function: nil,
|
|
84
99
|
handoff: nil,
|
|
85
100
|
invite: nil,
|
|
101
|
+
pay: nil,
|
|
86
102
|
retrieval: nil,
|
|
87
103
|
timeout_ms: nil,
|
|
88
104
|
type: nil,
|
|
@@ -95,10 +111,12 @@ module Telnyx
|
|
|
95
111
|
override.returns(
|
|
96
112
|
{
|
|
97
113
|
tool_id: String,
|
|
114
|
+
client_side_tool: T::Hash[Symbol, T.anything],
|
|
98
115
|
display_name: String,
|
|
99
116
|
function: T::Hash[Symbol, T.anything],
|
|
100
117
|
handoff: T::Hash[Symbol, T.anything],
|
|
101
118
|
invite: T::Hash[Symbol, T.anything],
|
|
119
|
+
pay: Telnyx::AI::PayToolParams,
|
|
102
120
|
retrieval: T::Hash[Symbol, T.anything],
|
|
103
121
|
timeout_ms: Integer,
|
|
104
122
|
type: String,
|
|
@@ -42,7 +42,7 @@ module Telnyx
|
|
|
42
42
|
# - `xai/grok-stt` is a multilingual Grok STT model.
|
|
43
43
|
# - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
|
|
44
44
|
# detection and configurable endpointing.
|
|
45
|
-
# - `parakeet
|
|
45
|
+
# - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
46
46
|
# language detection.
|
|
47
47
|
sig do
|
|
48
48
|
returns(T.nilable(Telnyx::AI::TranscriptionSettings::Model::OrSymbol))
|
|
@@ -103,7 +103,7 @@ module Telnyx
|
|
|
103
103
|
# - `xai/grok-stt` is a multilingual Grok STT model.
|
|
104
104
|
# - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
|
|
105
105
|
# detection and configurable endpointing.
|
|
106
|
-
# - `parakeet
|
|
106
|
+
# - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
107
107
|
# language detection.
|
|
108
108
|
model: nil,
|
|
109
109
|
# Region on third party cloud providers (currently Azure) if using one of their
|
|
@@ -139,7 +139,7 @@ module Telnyx
|
|
|
139
139
|
# - `xai/grok-stt` is a multilingual Grok STT model.
|
|
140
140
|
# - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
|
|
141
141
|
# detection and configurable endpointing.
|
|
142
|
-
# - `parakeet
|
|
142
|
+
# - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
|
|
143
143
|
# language detection.
|
|
144
144
|
module Model
|
|
145
145
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -185,9 +185,9 @@ module Telnyx
|
|
|
185
185
|
:"soniox/stt-rt-v4",
|
|
186
186
|
Telnyx::AI::TranscriptionSettings::Model::TaggedSymbol
|
|
187
187
|
)
|
|
188
|
-
|
|
188
|
+
NVIDIA_PARAKEET_V3 =
|
|
189
189
|
T.let(
|
|
190
|
-
:"parakeet
|
|
190
|
+
:"nvidia/parakeet-v3",
|
|
191
191
|
Telnyx::AI::TranscriptionSettings::Model::TaggedSymbol
|
|
192
192
|
)
|
|
193
193
|
DISTIL_WHISPER_DISTIL_LARGE_V2 =
|
|
@@ -369,6 +369,17 @@ module Telnyx
|
|
|
369
369
|
end
|
|
370
370
|
attr_writer :record_trim
|
|
371
371
|
|
|
372
|
+
# Whether to keep trying the remaining routing paths (e.g. alternate
|
|
373
|
+
# providers/gateways) for the same destination after `timeout_secs` is reached for
|
|
374
|
+
# the current attempt. When set to `false`, reaching `timeout_secs` aborts the
|
|
375
|
+
# entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
|
|
376
|
+
# `no_answer` instead of `timeout`.
|
|
377
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
378
|
+
attr_reader :retry_on_timeout
|
|
379
|
+
|
|
380
|
+
sig { params(retry_on_timeout: T::Boolean).void }
|
|
381
|
+
attr_writer :retry_on_timeout
|
|
382
|
+
|
|
372
383
|
# DTMF digits to send automatically after the called party answers. Useful for
|
|
373
384
|
# reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
374
385
|
# called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
|
|
@@ -707,6 +718,7 @@ module Telnyx
|
|
|
707
718
|
record_timeout_secs: Integer,
|
|
708
719
|
record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
|
|
709
720
|
record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
|
|
721
|
+
retry_on_timeout: T::Boolean,
|
|
710
722
|
send_digits_on_answer: String,
|
|
711
723
|
send_silence_when_idle: T::Boolean,
|
|
712
724
|
sip_auth_password: String,
|
|
@@ -894,6 +906,12 @@ module Telnyx
|
|
|
894
906
|
# When set to `trim-silence`, silence will be removed from the beginning and end
|
|
895
907
|
# of the recording.
|
|
896
908
|
record_trim: nil,
|
|
909
|
+
# Whether to keep trying the remaining routing paths (e.g. alternate
|
|
910
|
+
# providers/gateways) for the same destination after `timeout_secs` is reached for
|
|
911
|
+
# the current attempt. When set to `false`, reaching `timeout_secs` aborts the
|
|
912
|
+
# entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
|
|
913
|
+
# `no_answer` instead of `timeout`.
|
|
914
|
+
retry_on_timeout: nil,
|
|
897
915
|
# DTMF digits to send automatically after the called party answers. Useful for
|
|
898
916
|
# reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
899
917
|
# called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
|
|
@@ -1022,6 +1040,7 @@ module Telnyx
|
|
|
1022
1040
|
record_timeout_secs: Integer,
|
|
1023
1041
|
record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
|
|
1024
1042
|
record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
|
|
1043
|
+
retry_on_timeout: T::Boolean,
|
|
1025
1044
|
send_digits_on_answer: String,
|
|
1026
1045
|
send_silence_when_idle: T::Boolean,
|
|
1027
1046
|
sip_auth_password: String,
|
|
@@ -176,6 +176,9 @@ module Telnyx
|
|
|
176
176
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
177
177
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
178
178
|
# `Max`, `TTS2`.
|
|
179
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
180
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
181
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
179
182
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
180
183
|
# `ara`, `rex`, `sal`, `leo`.
|
|
181
184
|
sig { returns(T.nilable(String)) }
|
|
@@ -322,6 +325,9 @@ module Telnyx
|
|
|
322
325
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
323
326
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
324
327
|
# `Max`, `TTS2`.
|
|
328
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
329
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
330
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
325
331
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
326
332
|
# `ara`, `rex`, `sal`, `leo`.
|
|
327
333
|
voice: nil,
|
|
@@ -49,6 +49,9 @@ module Telnyx
|
|
|
49
49
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
50
50
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
51
51
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
52
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
53
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
54
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
52
55
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
53
56
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
54
57
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -63,6 +66,9 @@ module Telnyx
|
|
|
63
66
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
64
67
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
65
68
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
69
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
70
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
71
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
66
72
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
67
73
|
# `ara`, `rex`, `sal`, `leo`.
|
|
68
74
|
#
|
|
@@ -311,6 +317,9 @@ module Telnyx
|
|
|
311
317
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
312
318
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
313
319
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
320
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
321
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
322
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
314
323
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
315
324
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
316
325
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -325,6 +334,9 @@ module Telnyx
|
|
|
325
334
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
326
335
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
327
336
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
337
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
338
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
339
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
328
340
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
329
341
|
# `ara`, `rex`, `sal`, `leo`.
|
|
330
342
|
#
|
|
@@ -46,6 +46,9 @@ module Telnyx
|
|
|
46
46
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
47
47
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
48
48
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
49
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
50
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
51
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
49
52
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
50
53
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
51
54
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -60,6 +63,9 @@ module Telnyx
|
|
|
60
63
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
61
64
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
62
65
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
66
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
67
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
68
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
63
69
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
64
70
|
# `ara`, `rex`, `sal`, `leo`.
|
|
65
71
|
#
|
|
@@ -266,6 +272,9 @@ module Telnyx
|
|
|
266
272
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
267
273
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
268
274
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
275
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
276
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
277
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
269
278
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
270
279
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
271
280
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -280,6 +289,9 @@ module Telnyx
|
|
|
280
289
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
281
290
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
282
291
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
292
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
293
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
294
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
283
295
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
284
296
|
# `ara`, `rex`, `sal`, `leo`.
|
|
285
297
|
#
|
|
@@ -159,6 +159,9 @@ module Telnyx
|
|
|
159
159
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
160
160
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
161
161
|
# `Max`, `TTS2`.
|
|
162
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
163
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
164
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
162
165
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
163
166
|
# `ara`, `rex`, `sal`, `leo`.
|
|
164
167
|
sig { returns(T.nilable(String)) }
|
|
@@ -293,6 +296,9 @@ module Telnyx
|
|
|
293
296
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
294
297
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
295
298
|
# `Max`, `TTS2`.
|
|
299
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
300
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
301
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
296
302
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
297
303
|
# `ara`, `rex`, `sal`, `leo`.
|
|
298
304
|
voice: nil,
|
|
@@ -279,6 +279,9 @@ module Telnyx
|
|
|
279
279
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
280
280
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
281
281
|
# `Max`, `TTS2`.
|
|
282
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
283
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
284
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
282
285
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
283
286
|
# `ara`, `rex`, `sal`, `leo`.
|
|
284
287
|
sig { returns(T.nilable(String)) }
|
|
@@ -465,6 +468,9 @@ module Telnyx
|
|
|
465
468
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
466
469
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
467
470
|
# `Max`, `TTS2`.
|
|
471
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
472
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
473
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
468
474
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
469
475
|
# `ara`, `rex`, `sal`, `leo`.
|
|
470
476
|
voice: nil,
|
|
@@ -14,7 +14,8 @@ module Telnyx
|
|
|
14
14
|
attr_accessor :type
|
|
15
15
|
|
|
16
16
|
# The voice speed to be used for the voice. The voice speed must be between 0.1
|
|
17
|
-
# and 2.0. Default value is 1.0.
|
|
17
|
+
# and 2.0. Default value is 1.0. Not supported for `Telnyx.Bayan.*` or
|
|
18
|
+
# `Telnyx.Sukhan.*` voices.
|
|
18
19
|
sig { returns(T.nilable(Float)) }
|
|
19
20
|
attr_reader :voice_speed
|
|
20
21
|
|
|
@@ -31,7 +32,8 @@ module Telnyx
|
|
|
31
32
|
# Voice settings provider type
|
|
32
33
|
type:,
|
|
33
34
|
# The voice speed to be used for the voice. The voice speed must be between 0.1
|
|
34
|
-
# and 2.0. Default value is 1.0.
|
|
35
|
+
# and 2.0. Default value is 1.0. Not supported for `Telnyx.Bayan.*` or
|
|
36
|
+
# `Telnyx.Sukhan.*` voices.
|
|
35
37
|
voice_speed: nil
|
|
36
38
|
)
|
|
37
39
|
end
|
|
@@ -16,7 +16,11 @@ module Telnyx
|
|
|
16
16
|
# controls the language hint), `multi` (no language hint), and language-specific
|
|
17
17
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
18
18
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
19
|
-
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
19
|
+
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
20
|
+
# `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
|
|
21
|
+
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
22
|
+
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
23
|
+
# that language.
|
|
20
24
|
sig { returns(T.nilable(String)) }
|
|
21
25
|
attr_reader :language
|
|
22
26
|
|
|
@@ -34,7 +38,7 @@ module Telnyx
|
|
|
34
38
|
# - `xai/grok-stt` for live streaming transcription.
|
|
35
39
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
36
40
|
# automatic language detection.
|
|
37
|
-
# - `parakeet
|
|
41
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
38
42
|
# detection.
|
|
39
43
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
40
44
|
# unsupported regions require `api_key_ref`.
|
|
@@ -75,7 +79,11 @@ module Telnyx
|
|
|
75
79
|
# controls the language hint), `multi` (no language hint), and language-specific
|
|
76
80
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
77
81
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
78
|
-
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
82
|
+
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
83
|
+
# `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
|
|
84
|
+
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
85
|
+
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
86
|
+
# that language.
|
|
79
87
|
language: nil,
|
|
80
88
|
# The speech to text model to be used by the voice assistant. Supported models
|
|
81
89
|
# include:
|
|
@@ -88,7 +96,7 @@ module Telnyx
|
|
|
88
96
|
# - `xai/grok-stt` for live streaming transcription.
|
|
89
97
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
90
98
|
# automatic language detection.
|
|
91
|
-
# - `parakeet
|
|
99
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
92
100
|
# detection.
|
|
93
101
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
94
102
|
# unsupported regions require `api_key_ref`.
|
|
@@ -123,7 +131,7 @@ module Telnyx
|
|
|
123
131
|
# - `xai/grok-stt` for live streaming transcription.
|
|
124
132
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
125
133
|
# automatic language detection.
|
|
126
|
-
# - `parakeet
|
|
134
|
+
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
127
135
|
# detection.
|
|
128
136
|
# - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
129
137
|
# unsupported regions require `api_key_ref`.
|
|
@@ -186,9 +194,9 @@ module Telnyx
|
|
|
186
194
|
:"soniox/stt-rt-v4",
|
|
187
195
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
188
196
|
)
|
|
189
|
-
|
|
197
|
+
NVIDIA_PARAKEET_V3 =
|
|
190
198
|
T.let(
|
|
191
|
-
:"parakeet
|
|
199
|
+
:"nvidia/parakeet-v3",
|
|
192
200
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
193
201
|
)
|
|
194
202
|
AZURE_FAST =
|
|
@@ -133,9 +133,9 @@ module Telnyx
|
|
|
133
133
|
end
|
|
134
134
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
NVIDIA_PARAKEET_V3 =
|
|
137
137
|
T.let(
|
|
138
|
-
:"parakeet
|
|
138
|
+
:"nvidia/parakeet-v3",
|
|
139
139
|
Telnyx::Calls::TranscriptionEngineParakeetConfig::TranscriptionModel::TaggedSymbol
|
|
140
140
|
)
|
|
141
141
|
|
|
@@ -49,6 +49,9 @@ module Telnyx
|
|
|
49
49
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
50
50
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
51
51
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
52
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
53
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
54
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
52
55
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
53
56
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
54
57
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -63,6 +66,9 @@ module Telnyx
|
|
|
63
66
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
64
67
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
65
68
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
69
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
70
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
71
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
66
72
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
67
73
|
# `ara`, `rex`, `sal`, `leo`.
|
|
68
74
|
#
|
|
@@ -233,6 +239,9 @@ module Telnyx
|
|
|
233
239
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
234
240
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
235
241
|
# Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
242
|
+
# `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
243
|
+
# `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
244
|
+
# (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
236
245
|
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
237
246
|
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
238
247
|
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -247,6 +256,9 @@ module Telnyx
|
|
|
247
256
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
248
257
|
# `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
249
258
|
# `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
259
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
260
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
261
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
250
262
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
251
263
|
# `ara`, `rex`, `sal`, `leo`.
|
|
252
264
|
#
|
|
@@ -185,6 +185,9 @@ module Telnyx
|
|
|
185
185
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
186
186
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
187
187
|
# `Max`, `TTS2`.
|
|
188
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
189
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
190
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
188
191
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
189
192
|
# `ara`, `rex`, `sal`, `leo`.
|
|
190
193
|
sig { returns(T.nilable(String)) }
|
|
@@ -341,6 +344,9 @@ module Telnyx
|
|
|
341
344
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
342
345
|
# `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
343
346
|
# `Max`, `TTS2`.
|
|
347
|
+
# - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
348
|
+
# `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
349
|
+
# `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
344
350
|
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
345
351
|
# `ara`, `rex`, `sal`, `leo`.
|
|
346
352
|
voice: nil,
|
|
@@ -63,6 +63,15 @@ module Telnyx
|
|
|
63
63
|
sig { params(created_at: String).void }
|
|
64
64
|
attr_writer :created_at
|
|
65
65
|
|
|
66
|
+
# When this version was superseded. NULL means this is the active or pending
|
|
67
|
+
# version.
|
|
68
|
+
sig { returns(T.nilable(Time)) }
|
|
69
|
+
attr_accessor :effective_end_at
|
|
70
|
+
|
|
71
|
+
# When this version became (or will become) active.
|
|
72
|
+
sig { returns(T.nilable(Time)) }
|
|
73
|
+
attr_accessor :effective_start_at
|
|
74
|
+
|
|
66
75
|
# Identifies the type of the resource.
|
|
67
76
|
sig { returns(T.nilable(String)) }
|
|
68
77
|
attr_reader :record_type
|
|
@@ -72,14 +81,14 @@ module Telnyx
|
|
|
72
81
|
|
|
73
82
|
# Lists the requirement types necessary to fulfill this requirement
|
|
74
83
|
sig { returns(T.nilable(T::Array[Telnyx::DocReqsRequirementType])) }
|
|
75
|
-
attr_reader :
|
|
84
|
+
attr_reader :requirement_types
|
|
76
85
|
|
|
77
86
|
sig do
|
|
78
87
|
params(
|
|
79
|
-
|
|
88
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash]
|
|
80
89
|
).void
|
|
81
90
|
end
|
|
82
|
-
attr_writer :
|
|
91
|
+
attr_writer :requirement_types
|
|
83
92
|
|
|
84
93
|
# ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
85
94
|
sig { returns(T.nilable(String)) }
|
|
@@ -88,18 +97,28 @@ module Telnyx
|
|
|
88
97
|
sig { params(updated_at: String).void }
|
|
89
98
|
attr_writer :updated_at
|
|
90
99
|
|
|
100
|
+
# Version number. Increments with each new version. Defaults to 1.
|
|
101
|
+
sig { returns(T.nilable(Integer)) }
|
|
102
|
+
attr_reader :version
|
|
103
|
+
|
|
104
|
+
sig { params(version: Integer).void }
|
|
105
|
+
attr_writer :version
|
|
106
|
+
|
|
91
107
|
sig do
|
|
92
108
|
params(
|
|
93
109
|
id: String,
|
|
94
110
|
action: Telnyx::DocReqsRequirement::Action::OrSymbol,
|
|
95
111
|
country_code: String,
|
|
96
112
|
created_at: String,
|
|
113
|
+
effective_end_at: T.nilable(Time),
|
|
114
|
+
effective_start_at: T.nilable(Time),
|
|
97
115
|
locality: String,
|
|
98
116
|
phone_number_type:
|
|
99
117
|
Telnyx::DocReqsRequirement::PhoneNumberType::OrSymbol,
|
|
100
118
|
record_type: String,
|
|
101
|
-
|
|
102
|
-
updated_at: String
|
|
119
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash],
|
|
120
|
+
updated_at: String,
|
|
121
|
+
version: Integer
|
|
103
122
|
).returns(T.attached_class)
|
|
104
123
|
end
|
|
105
124
|
def self.new(
|
|
@@ -112,6 +131,11 @@ module Telnyx
|
|
|
112
131
|
country_code: nil,
|
|
113
132
|
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
114
133
|
created_at: nil,
|
|
134
|
+
# When this version was superseded. NULL means this is the active or pending
|
|
135
|
+
# version.
|
|
136
|
+
effective_end_at: nil,
|
|
137
|
+
# When this version became (or will become) active.
|
|
138
|
+
effective_start_at: nil,
|
|
115
139
|
# The locality where this requirement applies
|
|
116
140
|
locality: nil,
|
|
117
141
|
# Indicates the phone_number_type this requirement applies to. Leave blank if this
|
|
@@ -120,9 +144,11 @@ module Telnyx
|
|
|
120
144
|
# Identifies the type of the resource.
|
|
121
145
|
record_type: nil,
|
|
122
146
|
# Lists the requirement types necessary to fulfill this requirement
|
|
123
|
-
|
|
147
|
+
requirement_types: nil,
|
|
124
148
|
# ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
125
|
-
updated_at: nil
|
|
149
|
+
updated_at: nil,
|
|
150
|
+
# Version number. Increments with each new version. Defaults to 1.
|
|
151
|
+
version: nil
|
|
126
152
|
)
|
|
127
153
|
end
|
|
128
154
|
|
|
@@ -133,12 +159,15 @@ module Telnyx
|
|
|
133
159
|
action: Telnyx::DocReqsRequirement::Action::TaggedSymbol,
|
|
134
160
|
country_code: String,
|
|
135
161
|
created_at: String,
|
|
162
|
+
effective_end_at: T.nilable(Time),
|
|
163
|
+
effective_start_at: T.nilable(Time),
|
|
136
164
|
locality: String,
|
|
137
165
|
phone_number_type:
|
|
138
166
|
Telnyx::DocReqsRequirement::PhoneNumberType::TaggedSymbol,
|
|
139
167
|
record_type: String,
|
|
140
|
-
|
|
141
|
-
updated_at: String
|
|
168
|
+
requirement_types: T::Array[Telnyx::DocReqsRequirementType],
|
|
169
|
+
updated_at: String,
|
|
170
|
+
version: Integer
|
|
142
171
|
}
|
|
143
172
|
)
|
|
144
173
|
end
|