telnyx 5.72.0 → 5.72.1
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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +3 -382
- data/lib/telnyx/resources/voice_clones.rb +1 -5
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -744
- data/rbi/telnyx/resources/voice_clones.rbi +2 -12
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +4 -285
- 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: 2de57d095a499f65deaa5ff6f238906900c1766a326406dde046422b6691fb5f
|
|
4
|
+
data.tar.gz: 550620f1f61305b5119584f3e60d16c6c18c526a4c3c191f0501f612074b6e69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85ac4fafc5e4458591fcad7fde672442fe5911599c77340be6e76132ea6b5e19961910e5c8cb1cd85c606d41a2c685aa761c0367115005a268629eff54272121
|
|
7
|
+
data.tar.gz: 1e279b0daca717647d517581733faa38c1a57d351b3d8949ca16413f2b5c66a8f5857846e12f4d62932b682a5d568a7714c3bcf6d89409fc2d2d48a4e5d80c4a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.72.1 (2026-04-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.72.0...v5.72.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.72.0...v5.72.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* set additionalProperties=false on VoiceCloneUploadRequest to prevent codegen errors ([fed6f0b](https://github.com/team-telnyx/telnyx-ruby/commit/fed6f0b5d6d256f56f8a87c37e5058bdc7ebdc81))
|
|
10
|
+
|
|
3
11
|
## 5.72.0 (2026-04-11)
|
|
4
12
|
|
|
5
13
|
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
|
@@ -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
|
|
@@ -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