telnyx 5.72.0 → 5.73.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/call_dial_params.rb +57 -1
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +3 -382
- data/lib/telnyx/resources/calls.rb +7 -1
- data/lib/telnyx/resources/voice_clones.rb +1 -5
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/call_dial_params.rbi +125 -0
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -744
- data/rbi/telnyx/resources/calls.rbi +19 -0
- data/rbi/telnyx/resources/voice_clones.rbi +2 -12
- data/sig/telnyx/models/call_dial_params.rbs +49 -1
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +4 -285
- data/sig/telnyx/resources/calls.rbs +3 -0
- data/sig/telnyx/resources/voice_clones.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c389a5da56a121f4e98c897e6850d9ca606c7599d5a5876bb412b54ecddc2c5c
|
|
4
|
+
data.tar.gz: dceb4fbe73952485bd61befde2f459dbf75304e7023867dfee9134140a2dd21b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f429e2fa63285162f8215a48588fe10cfb6e800f1733f02c0ed44aa2954eddb0d6c168d7aa7d4926193dfc90f7c3e7df117ade21badaa3cceb2cf263ce088583
|
|
7
|
+
data.tar.gz: 131271919b4925389b1db0f2bab77c7957bcdc6c07c14cdce92af2544b40ddea77d664acaefaba7a2aaac7228d06d6b880f9c59b4d53d733ae2190d235f19761
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.73.0 (2026-04-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.72.1...v5.73.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.72.1...v5.73.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add webhook_urls, webhook_urls_method, webhook_retries_policies to Dial endpoint ([c513a2b](https://github.com/team-telnyx/telnyx-ruby/commit/c513a2bac4f4a731fb819f1aa18bce276fa12dec))
|
|
10
|
+
|
|
11
|
+
## 5.72.1 (2026-04-12)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.72.0...v5.72.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.72.0...v5.72.1)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* set additionalProperties=false on VoiceCloneUploadRequest to prevent codegen errors ([fed6f0b](https://github.com/team-telnyx/telnyx-ruby/commit/fed6f0b5d6d256f56f8a87c37e5058bdc7ebdc81))
|
|
18
|
+
|
|
3
19
|
## 5.72.0 (2026-04-11)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.71.0...v5.72.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.71.0...v5.72.0)
|
data/README.md
CHANGED
|
@@ -402,6 +402,15 @@ module Telnyx
|
|
|
402
402
|
# @return [Telnyx::Models::Calls::TranscriptionStartRequest, nil]
|
|
403
403
|
optional :transcription_config, -> { Telnyx::Calls::TranscriptionStartRequest }
|
|
404
404
|
|
|
405
|
+
# @!attribute webhook_retries_policies
|
|
406
|
+
# A map of event types to retry policies. Each retry policy contains an array of
|
|
407
|
+
# `retries_ms` specifying the delays between retry attempts in milliseconds.
|
|
408
|
+
# Maximum 5 retries, total delay cannot exceed 60 seconds.
|
|
409
|
+
#
|
|
410
|
+
# @return [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}, nil]
|
|
411
|
+
optional :webhook_retries_policies,
|
|
412
|
+
-> { Telnyx::Internal::Type::HashOf[Telnyx::CallDialParams::WebhookRetriesPolicy] }
|
|
413
|
+
|
|
405
414
|
# @!attribute webhook_url
|
|
406
415
|
# Use this field to override the URL for which Telnyx will send subsequent
|
|
407
416
|
# webhooks to for this call.
|
|
@@ -415,7 +424,22 @@ module Telnyx
|
|
|
415
424
|
# @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod, nil]
|
|
416
425
|
optional :webhook_url_method, enum: -> { Telnyx::CallDialParams::WebhookURLMethod }
|
|
417
426
|
|
|
418
|
-
# @!
|
|
427
|
+
# @!attribute webhook_urls
|
|
428
|
+
# A map of event types to webhook URLs. When an event of the specified type
|
|
429
|
+
# occurs, the webhook URL associated with that event type will be called instead
|
|
430
|
+
# of the default webhook URL. Events not mapped here will use the default webhook
|
|
431
|
+
# URL.
|
|
432
|
+
#
|
|
433
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
434
|
+
optional :webhook_urls, Telnyx::Internal::Type::HashOf[String]
|
|
435
|
+
|
|
436
|
+
# @!attribute webhook_urls_method
|
|
437
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
438
|
+
#
|
|
439
|
+
# @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod, nil]
|
|
440
|
+
optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod }
|
|
441
|
+
|
|
442
|
+
# @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
419
443
|
# Some parameter documentations has been truncated, see
|
|
420
444
|
# {Telnyx::Models::CallDialParams} for more details.
|
|
421
445
|
#
|
|
@@ -528,10 +552,16 @@ module Telnyx
|
|
|
528
552
|
#
|
|
529
553
|
# @param transcription_config [Telnyx::Models::Calls::TranscriptionStartRequest]
|
|
530
554
|
#
|
|
555
|
+
# @param webhook_retries_policies [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}] A map of event types to retry policies. Each retry policy contains an array of `
|
|
556
|
+
#
|
|
531
557
|
# @param webhook_url [String] Use this field to override the URL for which Telnyx will send subsequent webhook
|
|
532
558
|
#
|
|
533
559
|
# @param webhook_url_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod] HTTP request type used for `webhook_url`.
|
|
534
560
|
#
|
|
561
|
+
# @param webhook_urls [Hash{Symbol=>String}] A map of event types to webhook URLs. When an event of the specified type occurs
|
|
562
|
+
#
|
|
563
|
+
# @param webhook_urls_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod] HTTP request method to invoke `webhook_urls`.
|
|
564
|
+
#
|
|
535
565
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
536
566
|
|
|
537
567
|
# The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided
|
|
@@ -993,6 +1023,21 @@ module Telnyx
|
|
|
993
1023
|
# @return [Array<Symbol>]
|
|
994
1024
|
end
|
|
995
1025
|
|
|
1026
|
+
class WebhookRetriesPolicy < Telnyx::Internal::Type::BaseModel
|
|
1027
|
+
# @!attribute retries_ms
|
|
1028
|
+
# Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1029
|
+
# 60000ms.
|
|
1030
|
+
#
|
|
1031
|
+
# @return [Array<Integer>, nil]
|
|
1032
|
+
optional :retries_ms, Telnyx::Internal::Type::ArrayOf[Integer]
|
|
1033
|
+
|
|
1034
|
+
# @!method initialize(retries_ms: nil)
|
|
1035
|
+
# Some parameter documentations has been truncated, see
|
|
1036
|
+
# {Telnyx::Models::CallDialParams::WebhookRetriesPolicy} for more details.
|
|
1037
|
+
#
|
|
1038
|
+
# @param retries_ms [Array<Integer>] Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1039
|
+
end
|
|
1040
|
+
|
|
996
1041
|
# HTTP request type used for `webhook_url`.
|
|
997
1042
|
module WebhookURLMethod
|
|
998
1043
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -1003,6 +1048,17 @@ module Telnyx
|
|
|
1003
1048
|
# @!method self.values
|
|
1004
1049
|
# @return [Array<Symbol>]
|
|
1005
1050
|
end
|
|
1051
|
+
|
|
1052
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
1053
|
+
module WebhookURLsMethod
|
|
1054
|
+
extend Telnyx::Internal::Type::Enum
|
|
1055
|
+
|
|
1056
|
+
POST = :POST
|
|
1057
|
+
GET = :GET
|
|
1058
|
+
|
|
1059
|
+
# @!method self.values
|
|
1060
|
+
# @return [Array<Symbol>]
|
|
1061
|
+
end
|
|
1006
1062
|
end
|
|
1007
1063
|
end
|
|
1008
1064
|
end
|
|
@@ -8,392 +8,13 @@ module Telnyx
|
|
|
8
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute upload_params
|
|
11
|
-
# Multipart form data for creating a voice clone from a direct audio upload.
|
|
12
|
-
# Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
13
11
|
#
|
|
14
|
-
# @return [
|
|
15
|
-
required :upload_params,
|
|
12
|
+
# @return [Object]
|
|
13
|
+
required :upload_params, Telnyx::Internal::Type::Unknown
|
|
16
14
|
|
|
17
15
|
# @!method initialize(upload_params:, request_options: {})
|
|
18
|
-
#
|
|
19
|
-
# {Telnyx::Models::VoiceCloneCreateFromUploadParams} for more details.
|
|
20
|
-
#
|
|
21
|
-
# @param upload_params [Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone] Multipart form data for creating a voice clone from a direct audio upload. Maxim
|
|
22
|
-
#
|
|
16
|
+
# @param upload_params [Object]
|
|
23
17
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
24
|
-
|
|
25
|
-
# Multipart form data for creating a voice clone from a direct audio upload.
|
|
26
|
-
# Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
27
|
-
module UploadParams
|
|
28
|
-
extend Telnyx::Internal::Type::Union
|
|
29
|
-
|
|
30
|
-
# Upload-based voice clone using the Telnyx Qwen3TTS model (default).
|
|
31
|
-
variant -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone }
|
|
32
|
-
|
|
33
|
-
# Upload-based voice clone using the Telnyx Ultra model.
|
|
34
|
-
variant -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone }
|
|
35
|
-
|
|
36
|
-
# Upload-based voice clone using the Minimax provider.
|
|
37
|
-
variant -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone }
|
|
38
|
-
|
|
39
|
-
class TelnyxQwen3TtsClone < Telnyx::Internal::Type::BaseModel
|
|
40
|
-
# @!attribute audio_file
|
|
41
|
-
# Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
42
|
-
# For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
|
|
43
|
-
# size: 5MB.
|
|
44
|
-
#
|
|
45
|
-
# @return [Pathname, StringIO, IO, String, Telnyx::FilePart]
|
|
46
|
-
required :audio_file, Telnyx::Internal::Type::FileInput
|
|
47
|
-
|
|
48
|
-
# @!attribute gender
|
|
49
|
-
# Gender of the voice clone.
|
|
50
|
-
#
|
|
51
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Gender]
|
|
52
|
-
required :gender,
|
|
53
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Gender }
|
|
54
|
-
|
|
55
|
-
# @!attribute language
|
|
56
|
-
# ISO 639-1 language code from the Qwen language set.
|
|
57
|
-
#
|
|
58
|
-
# @return [String]
|
|
59
|
-
required :language, String
|
|
60
|
-
|
|
61
|
-
# @!attribute name
|
|
62
|
-
# Name for the voice clone.
|
|
63
|
-
#
|
|
64
|
-
# @return [String]
|
|
65
|
-
required :name, String
|
|
66
|
-
|
|
67
|
-
# @!attribute provider
|
|
68
|
-
# Voice synthesis provider. Must be `telnyx`.
|
|
69
|
-
#
|
|
70
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Provider]
|
|
71
|
-
required :provider,
|
|
72
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Provider }
|
|
73
|
-
|
|
74
|
-
# @!attribute label
|
|
75
|
-
# Optional custom label describing the voice style.
|
|
76
|
-
#
|
|
77
|
-
# @return [String, nil]
|
|
78
|
-
optional :label, String
|
|
79
|
-
|
|
80
|
-
# @!attribute model_id
|
|
81
|
-
# TTS model identifier. Nullable/omittable — defaults to Qwen3TTS.
|
|
82
|
-
#
|
|
83
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::ModelID, nil]
|
|
84
|
-
optional :model_id,
|
|
85
|
-
enum: -> {
|
|
86
|
-
Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::ModelID
|
|
87
|
-
},
|
|
88
|
-
nil?: true
|
|
89
|
-
|
|
90
|
-
# @!attribute ref_text
|
|
91
|
-
# Optional transcript of the audio file. Providing this improves clone quality.
|
|
92
|
-
#
|
|
93
|
-
# @return [String, nil]
|
|
94
|
-
optional :ref_text, String
|
|
95
|
-
|
|
96
|
-
# @!method initialize(audio_file:, gender:, language:, name:, provider:, label: nil, model_id: nil, ref_text: nil)
|
|
97
|
-
# Some parameter documentations has been truncated, see
|
|
98
|
-
# {Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone}
|
|
99
|
-
# for more details.
|
|
100
|
-
#
|
|
101
|
-
# Upload-based voice clone using the Telnyx Qwen3TTS model (default).
|
|
102
|
-
#
|
|
103
|
-
# @param audio_file [Pathname, StringIO, IO, String, Telnyx::FilePart] Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
104
|
-
#
|
|
105
|
-
# @param gender [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Gender] Gender of the voice clone.
|
|
106
|
-
#
|
|
107
|
-
# @param language [String] ISO 639-1 language code from the Qwen language set.
|
|
108
|
-
#
|
|
109
|
-
# @param name [String] Name for the voice clone.
|
|
110
|
-
#
|
|
111
|
-
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::Provider] Voice synthesis provider. Must be `telnyx`.
|
|
112
|
-
#
|
|
113
|
-
# @param label [String] Optional custom label describing the voice style.
|
|
114
|
-
#
|
|
115
|
-
# @param model_id [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone::ModelID, nil] TTS model identifier. Nullable/omittable — defaults to Qwen3TTS.
|
|
116
|
-
#
|
|
117
|
-
# @param ref_text [String] Optional transcript of the audio file. Providing this improves clone quality.
|
|
118
|
-
|
|
119
|
-
# Gender of the voice clone.
|
|
120
|
-
#
|
|
121
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone#gender
|
|
122
|
-
module Gender
|
|
123
|
-
extend Telnyx::Internal::Type::Enum
|
|
124
|
-
|
|
125
|
-
MALE = :male
|
|
126
|
-
FEMALE = :female
|
|
127
|
-
NEUTRAL = :neutral
|
|
128
|
-
|
|
129
|
-
# @!method self.values
|
|
130
|
-
# @return [Array<Symbol>]
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
# Voice synthesis provider. Must be `telnyx`.
|
|
134
|
-
#
|
|
135
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone#provider
|
|
136
|
-
module Provider
|
|
137
|
-
extend Telnyx::Internal::Type::Enum
|
|
138
|
-
|
|
139
|
-
TELNYX = :telnyx
|
|
140
|
-
MINIMAX = :minimax
|
|
141
|
-
|
|
142
|
-
# @!method self.values
|
|
143
|
-
# @return [Array<Symbol>]
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# TTS model identifier. Nullable/omittable — defaults to Qwen3TTS.
|
|
147
|
-
#
|
|
148
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone#model_id
|
|
149
|
-
module ModelID
|
|
150
|
-
extend Telnyx::Internal::Type::Enum
|
|
151
|
-
|
|
152
|
-
QWEN3_TTS = :Qwen3TTS
|
|
153
|
-
|
|
154
|
-
# @!method self.values
|
|
155
|
-
# @return [Array<Symbol>]
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
class TelnyxUltraClone < Telnyx::Internal::Type::BaseModel
|
|
160
|
-
# @!attribute audio_file
|
|
161
|
-
# Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
162
|
-
# For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
|
|
163
|
-
# size: 5MB.
|
|
164
|
-
#
|
|
165
|
-
# @return [Pathname, StringIO, IO, String, Telnyx::FilePart]
|
|
166
|
-
required :audio_file, Telnyx::Internal::Type::FileInput
|
|
167
|
-
|
|
168
|
-
# @!attribute gender
|
|
169
|
-
# Gender of the voice clone.
|
|
170
|
-
#
|
|
171
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Gender]
|
|
172
|
-
required :gender,
|
|
173
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Gender }
|
|
174
|
-
|
|
175
|
-
# @!attribute language
|
|
176
|
-
# ISO 639-1 language code from the Ultra language set (40 languages).
|
|
177
|
-
#
|
|
178
|
-
# @return [String]
|
|
179
|
-
required :language, String
|
|
180
|
-
|
|
181
|
-
# @!attribute model_id
|
|
182
|
-
# TTS model identifier. Must be `Ultra`.
|
|
183
|
-
#
|
|
184
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::ModelID]
|
|
185
|
-
required :model_id,
|
|
186
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::ModelID }
|
|
187
|
-
|
|
188
|
-
# @!attribute name
|
|
189
|
-
# Name for the voice clone.
|
|
190
|
-
#
|
|
191
|
-
# @return [String]
|
|
192
|
-
required :name, String
|
|
193
|
-
|
|
194
|
-
# @!attribute provider
|
|
195
|
-
# Voice synthesis provider. Must be `telnyx`.
|
|
196
|
-
#
|
|
197
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Provider]
|
|
198
|
-
required :provider,
|
|
199
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Provider }
|
|
200
|
-
|
|
201
|
-
# @!attribute label
|
|
202
|
-
# Optional custom label describing the voice style.
|
|
203
|
-
#
|
|
204
|
-
# @return [String, nil]
|
|
205
|
-
optional :label, String
|
|
206
|
-
|
|
207
|
-
# @!attribute ref_text
|
|
208
|
-
# Optional transcript of the audio file. Providing this improves clone quality.
|
|
209
|
-
#
|
|
210
|
-
# @return [String, nil]
|
|
211
|
-
optional :ref_text, String
|
|
212
|
-
|
|
213
|
-
# @!method initialize(audio_file:, gender:, language:, model_id:, name:, provider:, label: nil, ref_text: nil)
|
|
214
|
-
# Some parameter documentations has been truncated, see
|
|
215
|
-
# {Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone}
|
|
216
|
-
# for more details.
|
|
217
|
-
#
|
|
218
|
-
# Upload-based voice clone using the Telnyx Ultra model.
|
|
219
|
-
#
|
|
220
|
-
# @param audio_file [Pathname, StringIO, IO, String, Telnyx::FilePart] Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
221
|
-
#
|
|
222
|
-
# @param gender [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Gender] Gender of the voice clone.
|
|
223
|
-
#
|
|
224
|
-
# @param language [String] ISO 639-1 language code from the Ultra language set (40 languages).
|
|
225
|
-
#
|
|
226
|
-
# @param model_id [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::ModelID] TTS model identifier. Must be `Ultra`.
|
|
227
|
-
#
|
|
228
|
-
# @param name [String] Name for the voice clone.
|
|
229
|
-
#
|
|
230
|
-
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone::Provider] Voice synthesis provider. Must be `telnyx`.
|
|
231
|
-
#
|
|
232
|
-
# @param label [String] Optional custom label describing the voice style.
|
|
233
|
-
#
|
|
234
|
-
# @param ref_text [String] Optional transcript of the audio file. Providing this improves clone quality.
|
|
235
|
-
|
|
236
|
-
# Gender of the voice clone.
|
|
237
|
-
#
|
|
238
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone#gender
|
|
239
|
-
module Gender
|
|
240
|
-
extend Telnyx::Internal::Type::Enum
|
|
241
|
-
|
|
242
|
-
MALE = :male
|
|
243
|
-
FEMALE = :female
|
|
244
|
-
NEUTRAL = :neutral
|
|
245
|
-
|
|
246
|
-
# @!method self.values
|
|
247
|
-
# @return [Array<Symbol>]
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# TTS model identifier. Must be `Ultra`.
|
|
251
|
-
#
|
|
252
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone#model_id
|
|
253
|
-
module ModelID
|
|
254
|
-
extend Telnyx::Internal::Type::Enum
|
|
255
|
-
|
|
256
|
-
ULTRA = :Ultra
|
|
257
|
-
|
|
258
|
-
# @!method self.values
|
|
259
|
-
# @return [Array<Symbol>]
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
# Voice synthesis provider. Must be `telnyx`.
|
|
263
|
-
#
|
|
264
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone#provider
|
|
265
|
-
module Provider
|
|
266
|
-
extend Telnyx::Internal::Type::Enum
|
|
267
|
-
|
|
268
|
-
TELNYX = :telnyx
|
|
269
|
-
MINIMAX = :minimax
|
|
270
|
-
|
|
271
|
-
# @!method self.values
|
|
272
|
-
# @return [Array<Symbol>]
|
|
273
|
-
end
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
class MinimaxClone < Telnyx::Internal::Type::BaseModel
|
|
277
|
-
# @!attribute audio_file
|
|
278
|
-
# Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
279
|
-
# For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
|
|
280
|
-
# size: 20MB.
|
|
281
|
-
#
|
|
282
|
-
# @return [Pathname, StringIO, IO, String, Telnyx::FilePart]
|
|
283
|
-
required :audio_file, Telnyx::Internal::Type::FileInput
|
|
284
|
-
|
|
285
|
-
# @!attribute gender
|
|
286
|
-
# Gender of the voice clone.
|
|
287
|
-
#
|
|
288
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Gender]
|
|
289
|
-
required :gender,
|
|
290
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Gender }
|
|
291
|
-
|
|
292
|
-
# @!attribute language
|
|
293
|
-
# ISO 639-1 language code from the Minimax language set.
|
|
294
|
-
#
|
|
295
|
-
# @return [String]
|
|
296
|
-
required :language, String
|
|
297
|
-
|
|
298
|
-
# @!attribute name
|
|
299
|
-
# Name for the voice clone.
|
|
300
|
-
#
|
|
301
|
-
# @return [String]
|
|
302
|
-
required :name, String
|
|
303
|
-
|
|
304
|
-
# @!attribute provider
|
|
305
|
-
# Voice synthesis provider. Must be `minimax`.
|
|
306
|
-
#
|
|
307
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Provider]
|
|
308
|
-
required :provider,
|
|
309
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Provider }
|
|
310
|
-
|
|
311
|
-
# @!attribute label
|
|
312
|
-
# Optional custom label describing the voice style.
|
|
313
|
-
#
|
|
314
|
-
# @return [String, nil]
|
|
315
|
-
optional :label, String
|
|
316
|
-
|
|
317
|
-
# @!attribute model_id
|
|
318
|
-
# TTS model identifier. Nullable — defaults to speech-2.8-turbo.
|
|
319
|
-
#
|
|
320
|
-
# @return [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::ModelID, nil]
|
|
321
|
-
optional :model_id,
|
|
322
|
-
enum: -> { Telnyx::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::ModelID },
|
|
323
|
-
nil?: true
|
|
324
|
-
|
|
325
|
-
# @!attribute ref_text
|
|
326
|
-
# Optional transcript of the audio file. Providing this improves clone quality.
|
|
327
|
-
#
|
|
328
|
-
# @return [String, nil]
|
|
329
|
-
optional :ref_text, String
|
|
330
|
-
|
|
331
|
-
# @!method initialize(audio_file:, gender:, language:, name:, provider:, label: nil, model_id: nil, ref_text: nil)
|
|
332
|
-
# Some parameter documentations has been truncated, see
|
|
333
|
-
# {Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone}
|
|
334
|
-
# for more details.
|
|
335
|
-
#
|
|
336
|
-
# Upload-based voice clone using the Minimax provider.
|
|
337
|
-
#
|
|
338
|
-
# @param audio_file [Pathname, StringIO, IO, String, Telnyx::FilePart] Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
339
|
-
#
|
|
340
|
-
# @param gender [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Gender] Gender of the voice clone.
|
|
341
|
-
#
|
|
342
|
-
# @param language [String] ISO 639-1 language code from the Minimax language set.
|
|
343
|
-
#
|
|
344
|
-
# @param name [String] Name for the voice clone.
|
|
345
|
-
#
|
|
346
|
-
# @param provider [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::Provider] Voice synthesis provider. Must be `minimax`.
|
|
347
|
-
#
|
|
348
|
-
# @param label [String] Optional custom label describing the voice style.
|
|
349
|
-
#
|
|
350
|
-
# @param model_id [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone::ModelID, nil] TTS model identifier. Nullable — defaults to speech-2.8-turbo.
|
|
351
|
-
#
|
|
352
|
-
# @param ref_text [String] Optional transcript of the audio file. Providing this improves clone quality.
|
|
353
|
-
|
|
354
|
-
# Gender of the voice clone.
|
|
355
|
-
#
|
|
356
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone#gender
|
|
357
|
-
module Gender
|
|
358
|
-
extend Telnyx::Internal::Type::Enum
|
|
359
|
-
|
|
360
|
-
MALE = :male
|
|
361
|
-
FEMALE = :female
|
|
362
|
-
NEUTRAL = :neutral
|
|
363
|
-
|
|
364
|
-
# @!method self.values
|
|
365
|
-
# @return [Array<Symbol>]
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Voice synthesis provider. Must be `minimax`.
|
|
369
|
-
#
|
|
370
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone#provider
|
|
371
|
-
module Provider
|
|
372
|
-
extend Telnyx::Internal::Type::Enum
|
|
373
|
-
|
|
374
|
-
TELNYX = :telnyx
|
|
375
|
-
MINIMAX = :minimax
|
|
376
|
-
|
|
377
|
-
# @!method self.values
|
|
378
|
-
# @return [Array<Symbol>]
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
# TTS model identifier. Nullable — defaults to speech-2.8-turbo.
|
|
382
|
-
#
|
|
383
|
-
# @see Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone#model_id
|
|
384
|
-
module ModelID
|
|
385
|
-
extend Telnyx::Internal::Type::Enum
|
|
386
|
-
|
|
387
|
-
SPEECH_2_8_TURBO = :"speech-2.8-turbo"
|
|
388
|
-
|
|
389
|
-
# @!method self.values
|
|
390
|
-
# @return [Array<Symbol>]
|
|
391
|
-
end
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
# @!method self.variants
|
|
395
|
-
# @return [Array(Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxQwen3TtsClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::TelnyxUltraClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::UploadParams::MinimaxClone)]
|
|
396
|
-
end
|
|
397
18
|
end
|
|
398
19
|
end
|
|
399
20
|
end
|
|
@@ -31,7 +31,7 @@ module Telnyx
|
|
|
31
31
|
# When the `record` parameter is set to `record-from-answer`, the response will
|
|
32
32
|
# include a `recording_id` field.
|
|
33
33
|
#
|
|
34
|
-
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
|
|
34
|
+
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
35
35
|
#
|
|
36
36
|
# @param connection_id [String] The ID of the Call Control App (formerly ID of the connection) to be used when d
|
|
37
37
|
#
|
|
@@ -142,10 +142,16 @@ module Telnyx
|
|
|
142
142
|
#
|
|
143
143
|
# @param transcription_config [Telnyx::Models::Calls::TranscriptionStartRequest]
|
|
144
144
|
#
|
|
145
|
+
# @param webhook_retries_policies [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}] A map of event types to retry policies. Each retry policy contains an array of `
|
|
146
|
+
#
|
|
145
147
|
# @param webhook_url [String] Use this field to override the URL for which Telnyx will send subsequent webhook
|
|
146
148
|
#
|
|
147
149
|
# @param webhook_url_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod] HTTP request type used for `webhook_url`.
|
|
148
150
|
#
|
|
151
|
+
# @param webhook_urls [Hash{Symbol=>String}] A map of event types to webhook URLs. When an event of the specified type occurs
|
|
152
|
+
#
|
|
153
|
+
# @param webhook_urls_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod] HTTP request method to invoke `webhook_urls`.
|
|
154
|
+
#
|
|
149
155
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
156
|
#
|
|
151
157
|
# @return [Telnyx::Models::CallDialResponse]
|
|
@@ -113,17 +113,13 @@ module Telnyx
|
|
|
113
113
|
)
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
# Some parameter documentations has been truncated, see
|
|
117
|
-
# {Telnyx::Models::VoiceCloneCreateFromUploadParams} for more details.
|
|
118
|
-
#
|
|
119
116
|
# Creates a new voice clone by uploading an audio file directly. Supported
|
|
120
117
|
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
|
|
121
118
|
# clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
|
|
122
119
|
#
|
|
123
120
|
# @overload create_from_upload(upload_params:, request_options: {})
|
|
124
121
|
#
|
|
125
|
-
# @param upload_params [
|
|
126
|
-
#
|
|
122
|
+
# @param upload_params [Object]
|
|
127
123
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
128
124
|
#
|
|
129
125
|
# @return [Telnyx::Models::VoiceCloneCreateFromUploadResponse]
|
data/lib/telnyx/version.rb
CHANGED