@byte_fluffy/nexra-sdk 0.1.0-alpha.25 → 0.1.0-alpha.27
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.
- package/README.md +37 -0
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +2 -2
- package/dist/{chunk-RKIOP6VA.js → chunk-N622DGTD.js} +467 -344
- package/dist/{chunk-OPHFEY7Z.js → chunk-YQXMWTSV.js} +6 -1
- package/dist/index.d.ts +19 -5
- package/dist/index.js +35 -2
- package/dist/{media-geometry-Bo6ukeIQ.d.ts → media-geometry-B7ip-nrA.d.ts} +2 -1
- package/dist/media.d.ts +2 -2
- package/dist/media.js +1 -1
- package/dist/{types-CmONdGYs.d.ts → types-CGOhwG87.d.ts} +31 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,370 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sortRatioDisplayOrder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YQXMWTSV.js";
|
|
4
4
|
|
|
5
5
|
// src/catalog/generated/audio.generated.json
|
|
6
6
|
var audio_generated_default = [
|
|
7
|
+
{
|
|
8
|
+
id: "elevenlabs/eleven_multilingual_ttv_v2",
|
|
9
|
+
contractVersion: 1,
|
|
10
|
+
developer: "elevenlabs",
|
|
11
|
+
displayName: "ElevenLabs Voice Design v2",
|
|
12
|
+
summary: "Design three voice previews from a voice description and preview script. Save a selected preview as a private voice for speech and voice conversion.",
|
|
13
|
+
kind: "audio",
|
|
14
|
+
family: "ElevenLabs Voice Design",
|
|
15
|
+
versionLabel: "2",
|
|
16
|
+
aliases: [],
|
|
17
|
+
capabilities: {
|
|
18
|
+
inputModalities: [
|
|
19
|
+
"text",
|
|
20
|
+
"audio"
|
|
21
|
+
],
|
|
22
|
+
outputModalities: [
|
|
23
|
+
"audio",
|
|
24
|
+
"voice"
|
|
25
|
+
],
|
|
26
|
+
inputModes: [
|
|
27
|
+
"text-to-audio"
|
|
28
|
+
],
|
|
29
|
+
features: [
|
|
30
|
+
"voice-design"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
operations: [
|
|
34
|
+
{
|
|
35
|
+
operation: "audio.generate",
|
|
36
|
+
inputModalities: [
|
|
37
|
+
"text"
|
|
38
|
+
],
|
|
39
|
+
outputModalities: [
|
|
40
|
+
"audio"
|
|
41
|
+
],
|
|
42
|
+
inputSchema: {
|
|
43
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
content: {
|
|
47
|
+
type: "array",
|
|
48
|
+
minItems: 2,
|
|
49
|
+
maxItems: 2,
|
|
50
|
+
items: {
|
|
51
|
+
oneOf: [
|
|
52
|
+
{
|
|
53
|
+
type: "object",
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
required: [
|
|
56
|
+
"type",
|
|
57
|
+
"role",
|
|
58
|
+
"text"
|
|
59
|
+
],
|
|
60
|
+
properties: {
|
|
61
|
+
type: {
|
|
62
|
+
const: "text"
|
|
63
|
+
},
|
|
64
|
+
role: {
|
|
65
|
+
const: "prompt"
|
|
66
|
+
},
|
|
67
|
+
text: {
|
|
68
|
+
type: "string",
|
|
69
|
+
minLength: 20,
|
|
70
|
+
maxLength: 1e3,
|
|
71
|
+
title: "\u97F3\u8272\u63CF\u8FF0"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: "object",
|
|
77
|
+
additionalProperties: false,
|
|
78
|
+
required: [
|
|
79
|
+
"type",
|
|
80
|
+
"role",
|
|
81
|
+
"text"
|
|
82
|
+
],
|
|
83
|
+
properties: {
|
|
84
|
+
type: {
|
|
85
|
+
const: "text"
|
|
86
|
+
},
|
|
87
|
+
role: {
|
|
88
|
+
const: "script"
|
|
89
|
+
},
|
|
90
|
+
text: {
|
|
91
|
+
type: "string",
|
|
92
|
+
minLength: 100,
|
|
93
|
+
maxLength: 1e3,
|
|
94
|
+
title: "\u8BD5\u542C\u6587\u672C"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
allOf: [
|
|
101
|
+
{
|
|
102
|
+
contains: {
|
|
103
|
+
type: "object",
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
required: [
|
|
106
|
+
"type",
|
|
107
|
+
"role",
|
|
108
|
+
"text"
|
|
109
|
+
],
|
|
110
|
+
properties: {
|
|
111
|
+
type: {
|
|
112
|
+
const: "text"
|
|
113
|
+
},
|
|
114
|
+
role: {
|
|
115
|
+
const: "prompt"
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
type: "string",
|
|
119
|
+
minLength: 20,
|
|
120
|
+
maxLength: 1e3,
|
|
121
|
+
title: "\u97F3\u8272\u63CF\u8FF0"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
minContains: 1,
|
|
126
|
+
maxContains: 1
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
contains: {
|
|
130
|
+
type: "object",
|
|
131
|
+
additionalProperties: false,
|
|
132
|
+
required: [
|
|
133
|
+
"type",
|
|
134
|
+
"role",
|
|
135
|
+
"text"
|
|
136
|
+
],
|
|
137
|
+
properties: {
|
|
138
|
+
type: {
|
|
139
|
+
const: "text"
|
|
140
|
+
},
|
|
141
|
+
role: {
|
|
142
|
+
const: "script"
|
|
143
|
+
},
|
|
144
|
+
text: {
|
|
145
|
+
type: "string",
|
|
146
|
+
minLength: 100,
|
|
147
|
+
maxLength: 1e3,
|
|
148
|
+
title: "\u8BD5\u542C\u6587\u672C"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
minContains: 1,
|
|
153
|
+
maxContains: 1
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
seed: {
|
|
158
|
+
type: [
|
|
159
|
+
"integer",
|
|
160
|
+
"null"
|
|
161
|
+
],
|
|
162
|
+
minimum: 0,
|
|
163
|
+
maximum: 2147483647,
|
|
164
|
+
"x-ui": {
|
|
165
|
+
order: 22,
|
|
166
|
+
control: "number"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
output_format: {
|
|
170
|
+
type: "string",
|
|
171
|
+
enum: [
|
|
172
|
+
"mp3_22050_32",
|
|
173
|
+
"mp3_24000_48",
|
|
174
|
+
"mp3_44100_32",
|
|
175
|
+
"mp3_44100_64",
|
|
176
|
+
"mp3_44100_96",
|
|
177
|
+
"mp3_44100_128",
|
|
178
|
+
"mp3_44100_192",
|
|
179
|
+
"pcm_8000",
|
|
180
|
+
"pcm_16000",
|
|
181
|
+
"pcm_22050",
|
|
182
|
+
"pcm_24000",
|
|
183
|
+
"pcm_32000",
|
|
184
|
+
"pcm_44100",
|
|
185
|
+
"pcm_48000",
|
|
186
|
+
"ulaw_8000",
|
|
187
|
+
"alaw_8000",
|
|
188
|
+
"opus_48000_32",
|
|
189
|
+
"opus_48000_64",
|
|
190
|
+
"opus_48000_96",
|
|
191
|
+
"opus_48000_128",
|
|
192
|
+
"opus_48000_192"
|
|
193
|
+
],
|
|
194
|
+
default: "mp3_44100_128"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
required: [
|
|
198
|
+
"content"
|
|
199
|
+
],
|
|
200
|
+
additionalProperties: false
|
|
201
|
+
},
|
|
202
|
+
outputSchema: {},
|
|
203
|
+
metering: {
|
|
204
|
+
schemaVersion: 1,
|
|
205
|
+
kind: "non_token",
|
|
206
|
+
metrics: [
|
|
207
|
+
{
|
|
208
|
+
metric: "requests",
|
|
209
|
+
requirement: "required"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
metric: "input_characters",
|
|
213
|
+
requirement: "required"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
metric: "output_audio_seconds",
|
|
217
|
+
requirement: "informational"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
operation: "voice.create",
|
|
224
|
+
inputModalities: [
|
|
225
|
+
"text"
|
|
226
|
+
],
|
|
227
|
+
outputModalities: [
|
|
228
|
+
"voice"
|
|
229
|
+
],
|
|
230
|
+
inputSchema: {
|
|
231
|
+
type: "object",
|
|
232
|
+
additionalProperties: false,
|
|
233
|
+
required: [
|
|
234
|
+
"name",
|
|
235
|
+
"source"
|
|
236
|
+
],
|
|
237
|
+
properties: {
|
|
238
|
+
name: {
|
|
239
|
+
type: "string",
|
|
240
|
+
minLength: 1,
|
|
241
|
+
maxLength: 255
|
|
242
|
+
},
|
|
243
|
+
source: {
|
|
244
|
+
type: "object",
|
|
245
|
+
additionalProperties: false,
|
|
246
|
+
required: [
|
|
247
|
+
"kind",
|
|
248
|
+
"taskId",
|
|
249
|
+
"previewId"
|
|
250
|
+
],
|
|
251
|
+
properties: {
|
|
252
|
+
kind: {
|
|
253
|
+
const: "design"
|
|
254
|
+
},
|
|
255
|
+
taskId: {
|
|
256
|
+
type: "string",
|
|
257
|
+
minLength: 1
|
|
258
|
+
},
|
|
259
|
+
previewId: {
|
|
260
|
+
type: "string",
|
|
261
|
+
minLength: 1
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
outputSchema: {
|
|
268
|
+
type: "object",
|
|
269
|
+
required: [
|
|
270
|
+
"taskId",
|
|
271
|
+
"voice"
|
|
272
|
+
],
|
|
273
|
+
properties: {
|
|
274
|
+
taskId: {
|
|
275
|
+
type: "string"
|
|
276
|
+
},
|
|
277
|
+
voice: {
|
|
278
|
+
type: "object"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
metering: {
|
|
283
|
+
schemaVersion: 1,
|
|
284
|
+
kind: "non_token",
|
|
285
|
+
metrics: [
|
|
286
|
+
{
|
|
287
|
+
metric: "requests",
|
|
288
|
+
requirement: "required"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
operation: "voice.clone",
|
|
295
|
+
inputModalities: [
|
|
296
|
+
"audio"
|
|
297
|
+
],
|
|
298
|
+
outputModalities: [
|
|
299
|
+
"voice"
|
|
300
|
+
],
|
|
301
|
+
inputSchema: {
|
|
302
|
+
type: "object",
|
|
303
|
+
additionalProperties: false,
|
|
304
|
+
required: [
|
|
305
|
+
"name",
|
|
306
|
+
"source"
|
|
307
|
+
],
|
|
308
|
+
properties: {
|
|
309
|
+
name: {
|
|
310
|
+
type: "string",
|
|
311
|
+
minLength: 1,
|
|
312
|
+
maxLength: 255
|
|
313
|
+
},
|
|
314
|
+
source: {
|
|
315
|
+
type: "object",
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
required: [
|
|
318
|
+
"kind",
|
|
319
|
+
"samples"
|
|
320
|
+
],
|
|
321
|
+
properties: {
|
|
322
|
+
kind: {
|
|
323
|
+
const: "clone"
|
|
324
|
+
},
|
|
325
|
+
samples: {
|
|
326
|
+
type: "array",
|
|
327
|
+
minItems: 1,
|
|
328
|
+
maxItems: 5,
|
|
329
|
+
uniqueItems: true,
|
|
330
|
+
items: {
|
|
331
|
+
type: "string",
|
|
332
|
+
format: "uuid"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
outputSchema: {
|
|
340
|
+
type: "object",
|
|
341
|
+
required: [
|
|
342
|
+
"taskId",
|
|
343
|
+
"voice"
|
|
344
|
+
],
|
|
345
|
+
properties: {
|
|
346
|
+
taskId: {
|
|
347
|
+
type: "string"
|
|
348
|
+
},
|
|
349
|
+
voice: {
|
|
350
|
+
type: "object"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
metering: {
|
|
355
|
+
schemaVersion: 1,
|
|
356
|
+
kind: "non_token",
|
|
357
|
+
metrics: [
|
|
358
|
+
{
|
|
359
|
+
metric: "requests",
|
|
360
|
+
requirement: "required"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
endpoints: []
|
|
367
|
+
},
|
|
7
368
|
{
|
|
8
369
|
id: "bytedance/doubao-tts-v1",
|
|
9
370
|
contractVersion: 1,
|
|
@@ -105,12 +466,12 @@ var audio_generated_default = [
|
|
|
105
466
|
type: "string",
|
|
106
467
|
title: "\u97F3\u8272",
|
|
107
468
|
description: "\u8C46\u5305\u8BED\u97F3\u5408\u6210 v1 \u97F3\u8272 ID\u3002",
|
|
108
|
-
default: "zh_male_guangzhoudege_emo_mars_bigtts",
|
|
109
469
|
"x-ui": {
|
|
110
470
|
order: 10,
|
|
111
471
|
control: "resource",
|
|
112
472
|
resource: "doubao_tts_voices"
|
|
113
|
-
}
|
|
473
|
+
},
|
|
474
|
+
default: "zh_male_guangzhoudege_emo_mars_bigtts"
|
|
114
475
|
}
|
|
115
476
|
},
|
|
116
477
|
required: [
|
|
@@ -242,12 +603,12 @@ var audio_generated_default = [
|
|
|
242
603
|
type: "string",
|
|
243
604
|
title: "\u97F3\u8272",
|
|
244
605
|
description: "\u8C46\u5305\u8BED\u97F3\u5408\u6210 2.0 \u97F3\u8272 ID\u3002",
|
|
245
|
-
default: "zh_female_vv_uranus_bigtts",
|
|
246
606
|
"x-ui": {
|
|
247
607
|
order: 10,
|
|
248
608
|
control: "resource",
|
|
249
609
|
resource: "doubao_tts_voices"
|
|
250
|
-
}
|
|
610
|
+
},
|
|
611
|
+
default: "zh_female_vv_uranus_bigtts"
|
|
251
612
|
}
|
|
252
613
|
},
|
|
253
614
|
required: [
|
|
@@ -1412,19 +1773,19 @@ var audio_generated_default = [
|
|
|
1412
1773
|
type: "number",
|
|
1413
1774
|
minimum: 0.5,
|
|
1414
1775
|
maximum: 2,
|
|
1415
|
-
multipleOf: 0.05,
|
|
1416
1776
|
title: "\u8BED\u901F",
|
|
1417
1777
|
default: 1,
|
|
1418
|
-
"x-ui": {}
|
|
1778
|
+
"x-ui": {},
|
|
1779
|
+
multipleOf: 0.05
|
|
1419
1780
|
},
|
|
1420
1781
|
volume: {
|
|
1421
1782
|
type: "number",
|
|
1422
|
-
minimum: -20,
|
|
1423
|
-
maximum: 20,
|
|
1424
|
-
multipleOf: 0.5,
|
|
1425
1783
|
title: "\u97F3\u91CF",
|
|
1426
1784
|
default: 0,
|
|
1427
|
-
"x-ui": {}
|
|
1785
|
+
"x-ui": {},
|
|
1786
|
+
minimum: -20,
|
|
1787
|
+
maximum: 20,
|
|
1788
|
+
multipleOf: 0.5
|
|
1428
1789
|
}
|
|
1429
1790
|
},
|
|
1430
1791
|
required: [
|
|
@@ -1630,7 +1991,7 @@ var audio_generated_default = [
|
|
|
1630
1991
|
]
|
|
1631
1992
|
},
|
|
1632
1993
|
voice: {
|
|
1633
|
-
|
|
1994
|
+
default: "933563129e564b19a115bedd57b7406a",
|
|
1634
1995
|
description: "\u7528\u4E8E\u8BED\u97F3\u5408\u6210\u7684 Fish Audio \u97F3\u8272 ID\u3002",
|
|
1635
1996
|
title: "\u97F3\u8272",
|
|
1636
1997
|
"x-ui": {
|
|
@@ -1638,16 +1999,18 @@ var audio_generated_default = [
|
|
|
1638
1999
|
control: "resource",
|
|
1639
2000
|
resource: "fish_audio_tts_voices"
|
|
1640
2001
|
},
|
|
1641
|
-
|
|
2002
|
+
type: "string"
|
|
1642
2003
|
},
|
|
1643
2004
|
output_format: {
|
|
1644
|
-
|
|
2005
|
+
default: "mp3",
|
|
1645
2006
|
enum: [
|
|
1646
2007
|
"wav",
|
|
1647
2008
|
"pcm",
|
|
1648
2009
|
"mp3",
|
|
1649
2010
|
"opus"
|
|
1650
2011
|
],
|
|
2012
|
+
title: "\u8F93\u51FA\u683C\u5F0F",
|
|
2013
|
+
type: "string",
|
|
1651
2014
|
"x-ui": {
|
|
1652
2015
|
order: 4,
|
|
1653
2016
|
control: "segmented",
|
|
@@ -1657,11 +2020,15 @@ var audio_generated_default = [
|
|
|
1657
2020
|
mp3: "mp3",
|
|
1658
2021
|
opus: "opus"
|
|
1659
2022
|
}
|
|
1660
|
-
}
|
|
1661
|
-
default: "mp3",
|
|
1662
|
-
title: "\u8F93\u51FA\u683C\u5F0F"
|
|
2023
|
+
}
|
|
1663
2024
|
},
|
|
1664
2025
|
sample_rate: {
|
|
2026
|
+
description: "\u8F93\u51FA\u97F3\u9891\u7684\u91C7\u6837\u7387\uFF1B\u53EF\u7528\u503C\u53D6\u51B3\u4E8E\u8F93\u51FA\u683C\u5F0F\u3002",
|
|
2027
|
+
title: "\u91C7\u6837\u7387",
|
|
2028
|
+
"x-ui": {
|
|
2029
|
+
order: 15,
|
|
2030
|
+
control: "select"
|
|
2031
|
+
},
|
|
1665
2032
|
type: "integer",
|
|
1666
2033
|
enum: [
|
|
1667
2034
|
8e3,
|
|
@@ -1670,31 +2037,25 @@ var audio_generated_default = [
|
|
|
1670
2037
|
32e3,
|
|
1671
2038
|
44100,
|
|
1672
2039
|
48e3
|
|
1673
|
-
]
|
|
1674
|
-
description: "\u8F93\u51FA\u97F3\u9891\u7684\u91C7\u6837\u7387\uFF1B\u53EF\u7528\u503C\u53D6\u51B3\u4E8E\u8F93\u51FA\u683C\u5F0F\u3002",
|
|
1675
|
-
"x-ui": {
|
|
1676
|
-
order: 15,
|
|
1677
|
-
control: "select"
|
|
1678
|
-
},
|
|
1679
|
-
title: "\u91C7\u6837\u7387"
|
|
2040
|
+
]
|
|
1680
2041
|
},
|
|
1681
2042
|
speed: {
|
|
2043
|
+
default: 1,
|
|
2044
|
+
title: "\u8BED\u901F",
|
|
1682
2045
|
type: "number",
|
|
1683
2046
|
minimum: 0.5,
|
|
1684
2047
|
maximum: 2,
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
default: 1,
|
|
1688
|
-
"x-ui": {}
|
|
2048
|
+
"x-ui": {},
|
|
2049
|
+
multipleOf: 0.05
|
|
1689
2050
|
},
|
|
1690
2051
|
volume: {
|
|
2052
|
+
default: 0,
|
|
2053
|
+
title: "\u97F3\u91CF",
|
|
1691
2054
|
type: "number",
|
|
2055
|
+
"x-ui": {},
|
|
1692
2056
|
minimum: -20,
|
|
1693
2057
|
maximum: 20,
|
|
1694
|
-
multipleOf: 0.5
|
|
1695
|
-
title: "\u97F3\u91CF",
|
|
1696
|
-
default: 0,
|
|
1697
|
-
"x-ui": {}
|
|
2058
|
+
multipleOf: 0.5
|
|
1698
2059
|
}
|
|
1699
2060
|
},
|
|
1700
2061
|
required: [
|
|
@@ -2104,12 +2465,12 @@ var audio_generated_default = [
|
|
|
2104
2465
|
type: "string",
|
|
2105
2466
|
minLength: 1,
|
|
2106
2467
|
title: "\u97F3\u8272",
|
|
2107
|
-
default: "male-qn-qingse",
|
|
2108
2468
|
"x-ui": {
|
|
2109
2469
|
order: 10,
|
|
2110
2470
|
control: "resource",
|
|
2111
2471
|
resource: "minimax_tts_voices"
|
|
2112
2472
|
},
|
|
2473
|
+
default: "male-qn-qingse",
|
|
2113
2474
|
description: "MiniMax \u8BED\u97F3\u5408\u6210\u97F3\u8272 ID\u3002"
|
|
2114
2475
|
},
|
|
2115
2476
|
output_format: {
|
|
@@ -2131,25 +2492,25 @@ var audio_generated_default = [
|
|
|
2131
2492
|
type: "number",
|
|
2132
2493
|
minimum: 0.5,
|
|
2133
2494
|
maximum: 2,
|
|
2134
|
-
multipleOf: 0.05,
|
|
2135
2495
|
default: 1,
|
|
2136
2496
|
title: "\u8BED\u901F",
|
|
2137
2497
|
"x-ui": {
|
|
2138
2498
|
order: 12,
|
|
2139
2499
|
control: "range"
|
|
2140
|
-
}
|
|
2500
|
+
},
|
|
2501
|
+
multipleOf: 0.05
|
|
2141
2502
|
},
|
|
2142
2503
|
volume: {
|
|
2143
2504
|
type: "number",
|
|
2144
|
-
minimum: 0.01,
|
|
2145
2505
|
maximum: 10,
|
|
2146
|
-
multipleOf: 0.1,
|
|
2147
2506
|
default: 1,
|
|
2148
2507
|
title: "\u97F3\u91CF",
|
|
2149
2508
|
"x-ui": {
|
|
2150
2509
|
order: 13,
|
|
2151
2510
|
control: "range"
|
|
2152
|
-
}
|
|
2511
|
+
},
|
|
2512
|
+
minimum: 0.01,
|
|
2513
|
+
multipleOf: 0.1
|
|
2153
2514
|
},
|
|
2154
2515
|
pitch: {
|
|
2155
2516
|
type: "integer",
|
|
@@ -2174,7 +2535,6 @@ var audio_generated_default = [
|
|
|
2174
2535
|
"surprised",
|
|
2175
2536
|
"calm"
|
|
2176
2537
|
],
|
|
2177
|
-
default: "calm",
|
|
2178
2538
|
title: "\u60C5\u7EEA",
|
|
2179
2539
|
"x-ui": {
|
|
2180
2540
|
order: 15,
|
|
@@ -2188,7 +2548,8 @@ var audio_generated_default = [
|
|
|
2188
2548
|
surprised: "\u60CA\u8BB6",
|
|
2189
2549
|
calm: "\u4E2D\u6027"
|
|
2190
2550
|
}
|
|
2191
|
-
}
|
|
2551
|
+
},
|
|
2552
|
+
default: "calm"
|
|
2192
2553
|
}
|
|
2193
2554
|
},
|
|
2194
2555
|
required: [
|
|
@@ -2320,12 +2681,12 @@ var audio_generated_default = [
|
|
|
2320
2681
|
type: "string",
|
|
2321
2682
|
minLength: 1,
|
|
2322
2683
|
title: "\u97F3\u8272",
|
|
2323
|
-
default: "male-qn-qingse",
|
|
2324
2684
|
"x-ui": {
|
|
2325
2685
|
order: 10,
|
|
2326
2686
|
control: "resource",
|
|
2327
2687
|
resource: "minimax_tts_voices"
|
|
2328
2688
|
},
|
|
2689
|
+
default: "male-qn-qingse",
|
|
2329
2690
|
description: "MiniMax \u8BED\u97F3\u5408\u6210\u97F3\u8272 ID\u3002"
|
|
2330
2691
|
},
|
|
2331
2692
|
output_format: {
|
|
@@ -2347,25 +2708,25 @@ var audio_generated_default = [
|
|
|
2347
2708
|
type: "number",
|
|
2348
2709
|
minimum: 0.5,
|
|
2349
2710
|
maximum: 2,
|
|
2350
|
-
multipleOf: 0.05,
|
|
2351
2711
|
default: 1,
|
|
2352
2712
|
title: "\u8BED\u901F",
|
|
2353
2713
|
"x-ui": {
|
|
2354
2714
|
order: 12,
|
|
2355
2715
|
control: "range"
|
|
2356
|
-
}
|
|
2716
|
+
},
|
|
2717
|
+
multipleOf: 0.05
|
|
2357
2718
|
},
|
|
2358
2719
|
volume: {
|
|
2359
2720
|
type: "number",
|
|
2360
|
-
minimum: 0.01,
|
|
2361
2721
|
maximum: 10,
|
|
2362
|
-
multipleOf: 0.1,
|
|
2363
2722
|
default: 1,
|
|
2364
2723
|
title: "\u97F3\u91CF",
|
|
2365
2724
|
"x-ui": {
|
|
2366
2725
|
order: 13,
|
|
2367
2726
|
control: "range"
|
|
2368
|
-
}
|
|
2727
|
+
},
|
|
2728
|
+
minimum: 0.01,
|
|
2729
|
+
multipleOf: 0.1
|
|
2369
2730
|
},
|
|
2370
2731
|
pitch: {
|
|
2371
2732
|
type: "integer",
|
|
@@ -2390,7 +2751,6 @@ var audio_generated_default = [
|
|
|
2390
2751
|
"surprised",
|
|
2391
2752
|
"calm"
|
|
2392
2753
|
],
|
|
2393
|
-
default: "calm",
|
|
2394
2754
|
title: "\u60C5\u7EEA",
|
|
2395
2755
|
"x-ui": {
|
|
2396
2756
|
order: 15,
|
|
@@ -2404,7 +2764,8 @@ var audio_generated_default = [
|
|
|
2404
2764
|
surprised: "\u60CA\u8BB6",
|
|
2405
2765
|
calm: "\u4E2D\u6027"
|
|
2406
2766
|
}
|
|
2407
|
-
}
|
|
2767
|
+
},
|
|
2768
|
+
default: "calm"
|
|
2408
2769
|
}
|
|
2409
2770
|
},
|
|
2410
2771
|
required: [
|
|
@@ -20718,47 +21079,37 @@ var language_generated_default = [
|
|
|
20718
21079
|
var video_generated_default = [
|
|
20719
21080
|
{
|
|
20720
21081
|
id: "yadan/minimax-h3-local",
|
|
20721
|
-
contractVersion:
|
|
21082
|
+
contractVersion: 3,
|
|
20722
21083
|
developer: "minimax",
|
|
20723
21084
|
displayName: "MiniMax H3 Local\uFF08\u81EA\u90E8\u7F72\uFF09",
|
|
20724
|
-
summary: "Generate
|
|
21085
|
+
summary: "Generate a roughly five-second video with audio from a text prompt.",
|
|
20725
21086
|
kind: "video",
|
|
20726
21087
|
family: "H3 Local",
|
|
20727
|
-
versionLabel: "H3
|
|
21088
|
+
versionLabel: "H3 Pruned INT8",
|
|
20728
21089
|
aliases: [
|
|
20729
21090
|
"minimax-h3-local",
|
|
20730
21091
|
"minimax-h3-t"
|
|
20731
21092
|
],
|
|
20732
21093
|
capabilities: {
|
|
20733
21094
|
inputModalities: [
|
|
20734
|
-
"text"
|
|
20735
|
-
"image",
|
|
20736
|
-
"video",
|
|
20737
|
-
"audio"
|
|
21095
|
+
"text"
|
|
20738
21096
|
],
|
|
20739
21097
|
outputModalities: [
|
|
20740
21098
|
"video"
|
|
20741
21099
|
],
|
|
20742
21100
|
inputModes: [
|
|
20743
|
-
"
|
|
20744
|
-
"video-to-video",
|
|
20745
|
-
"audio-to-video"
|
|
21101
|
+
"text-to-video"
|
|
20746
21102
|
],
|
|
20747
21103
|
features: [
|
|
20748
|
-
"
|
|
20749
|
-
"
|
|
20750
|
-
"reference-audio",
|
|
20751
|
-
"omni-reference"
|
|
21104
|
+
"text-to-video",
|
|
21105
|
+
"audio-output"
|
|
20752
21106
|
]
|
|
20753
21107
|
},
|
|
20754
21108
|
operations: [
|
|
20755
21109
|
{
|
|
20756
21110
|
operation: "video.generate",
|
|
20757
21111
|
inputModalities: [
|
|
20758
|
-
"text"
|
|
20759
|
-
"image",
|
|
20760
|
-
"video",
|
|
20761
|
-
"audio"
|
|
21112
|
+
"text"
|
|
20762
21113
|
],
|
|
20763
21114
|
outputModalities: [
|
|
20764
21115
|
"video"
|
|
@@ -20769,160 +21120,37 @@ var video_generated_default = [
|
|
|
20769
21120
|
properties: {
|
|
20770
21121
|
content: {
|
|
20771
21122
|
type: "array",
|
|
20772
|
-
minItems:
|
|
21123
|
+
minItems: 1,
|
|
20773
21124
|
items: {
|
|
20774
21125
|
oneOf: [
|
|
20775
21126
|
{
|
|
20776
21127
|
type: "object",
|
|
20777
21128
|
properties: {
|
|
20778
21129
|
type: {
|
|
20779
|
-
const: "text"
|
|
20780
|
-
},
|
|
20781
|
-
text: {
|
|
20782
|
-
type: "string",
|
|
20783
|
-
minLength: 1
|
|
20784
|
-
},
|
|
20785
|
-
role: {
|
|
20786
21130
|
type: "string",
|
|
20787
|
-
|
|
20788
|
-
"prompt",
|
|
20789
|
-
"negative_prompt"
|
|
20790
|
-
]
|
|
20791
|
-
}
|
|
20792
|
-
},
|
|
20793
|
-
required: [
|
|
20794
|
-
"type",
|
|
20795
|
-
"text",
|
|
20796
|
-
"role"
|
|
20797
|
-
],
|
|
20798
|
-
additionalProperties: false,
|
|
20799
|
-
title: "\u6587\u672C"
|
|
20800
|
-
},
|
|
20801
|
-
{
|
|
20802
|
-
type: "object",
|
|
20803
|
-
properties: {
|
|
20804
|
-
type: {
|
|
20805
|
-
const: "image"
|
|
20806
|
-
},
|
|
20807
|
-
source: {
|
|
20808
|
-
oneOf: [
|
|
20809
|
-
{
|
|
20810
|
-
type: "string",
|
|
20811
|
-
minLength: 1
|
|
20812
|
-
},
|
|
20813
|
-
{
|
|
20814
|
-
type: "object",
|
|
20815
|
-
properties: {
|
|
20816
|
-
assetId: {
|
|
20817
|
-
type: "string",
|
|
20818
|
-
minLength: 1
|
|
20819
|
-
}
|
|
20820
|
-
},
|
|
20821
|
-
required: [
|
|
20822
|
-
"assetId"
|
|
20823
|
-
],
|
|
20824
|
-
additionalProperties: false
|
|
20825
|
-
}
|
|
20826
|
-
]
|
|
21131
|
+
const: "text"
|
|
20827
21132
|
},
|
|
20828
21133
|
role: {
|
|
20829
21134
|
type: "string",
|
|
20830
|
-
const: "
|
|
21135
|
+
const: "prompt"
|
|
20831
21136
|
},
|
|
20832
|
-
|
|
21137
|
+
text: {
|
|
20833
21138
|
type: "string",
|
|
20834
21139
|
minLength: 1,
|
|
20835
|
-
maxLength:
|
|
20836
|
-
|
|
20837
|
-
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
"source",
|
|
20842
|
-
"role"
|
|
20843
|
-
],
|
|
20844
|
-
additionalProperties: false,
|
|
20845
|
-
title: "\u53C2\u8003\u56FE\u7247"
|
|
20846
|
-
},
|
|
20847
|
-
{
|
|
20848
|
-
type: "object",
|
|
20849
|
-
properties: {
|
|
20850
|
-
type: {
|
|
20851
|
-
const: "video"
|
|
20852
|
-
},
|
|
20853
|
-
source: {
|
|
20854
|
-
oneOf: [
|
|
20855
|
-
{
|
|
20856
|
-
type: "string",
|
|
20857
|
-
minLength: 1
|
|
20858
|
-
},
|
|
20859
|
-
{
|
|
20860
|
-
type: "object",
|
|
20861
|
-
properties: {
|
|
20862
|
-
assetId: {
|
|
20863
|
-
type: "string",
|
|
20864
|
-
minLength: 1
|
|
20865
|
-
}
|
|
20866
|
-
},
|
|
20867
|
-
required: [
|
|
20868
|
-
"assetId"
|
|
20869
|
-
],
|
|
20870
|
-
additionalProperties: false
|
|
20871
|
-
}
|
|
20872
|
-
]
|
|
20873
|
-
},
|
|
20874
|
-
role: {
|
|
20875
|
-
type: "string",
|
|
20876
|
-
const: "reference"
|
|
20877
|
-
}
|
|
20878
|
-
},
|
|
20879
|
-
required: [
|
|
20880
|
-
"type",
|
|
20881
|
-
"source",
|
|
20882
|
-
"role"
|
|
20883
|
-
],
|
|
20884
|
-
additionalProperties: false,
|
|
20885
|
-
title: "\u53C2\u8003\u89C6\u9891"
|
|
20886
|
-
},
|
|
20887
|
-
{
|
|
20888
|
-
type: "object",
|
|
20889
|
-
properties: {
|
|
20890
|
-
type: {
|
|
20891
|
-
const: "audio"
|
|
20892
|
-
},
|
|
20893
|
-
source: {
|
|
20894
|
-
oneOf: [
|
|
20895
|
-
{
|
|
20896
|
-
type: "string",
|
|
20897
|
-
minLength: 1
|
|
20898
|
-
},
|
|
20899
|
-
{
|
|
20900
|
-
type: "object",
|
|
20901
|
-
properties: {
|
|
20902
|
-
assetId: {
|
|
20903
|
-
type: "string",
|
|
20904
|
-
minLength: 1
|
|
20905
|
-
}
|
|
20906
|
-
},
|
|
20907
|
-
required: [
|
|
20908
|
-
"assetId"
|
|
20909
|
-
],
|
|
20910
|
-
additionalProperties: false
|
|
20911
|
-
}
|
|
20912
|
-
]
|
|
20913
|
-
},
|
|
20914
|
-
role: {
|
|
20915
|
-
type: "string",
|
|
20916
|
-
const: "reference"
|
|
21140
|
+
maxLength: 8e3,
|
|
21141
|
+
title: "\u63D0\u793A\u8BCD",
|
|
21142
|
+
"x-ui": {
|
|
21143
|
+
order: 0,
|
|
21144
|
+
control: "textarea"
|
|
21145
|
+
}
|
|
20917
21146
|
}
|
|
20918
21147
|
},
|
|
20919
21148
|
required: [
|
|
20920
21149
|
"type",
|
|
20921
|
-
"
|
|
20922
|
-
"
|
|
21150
|
+
"role",
|
|
21151
|
+
"text"
|
|
20923
21152
|
],
|
|
20924
|
-
additionalProperties: false
|
|
20925
|
-
title: "\u53C2\u8003\u97F3\u9891"
|
|
21153
|
+
additionalProperties: false
|
|
20926
21154
|
}
|
|
20927
21155
|
]
|
|
20928
21156
|
},
|
|
@@ -20930,172 +21158,64 @@ var video_generated_default = [
|
|
|
20930
21158
|
control: "content-parts",
|
|
20931
21159
|
order: 0
|
|
20932
21160
|
},
|
|
20933
|
-
|
|
20934
|
-
description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u548C\u81F3\u5C11\u4E00\u4E2A\u53C2\u8003\u56FE\u7247\u6216\u89C6\u9891\uFF1B\u97F3\u9891\u53C2\u8003\u987B\u642D\u914D\u56FE\u7247\u6216\u89C6\u9891\u3002",
|
|
20935
|
-
maxItems: 17,
|
|
20936
|
-
allOf: [
|
|
20937
|
-
{
|
|
20938
|
-
contains: {
|
|
20939
|
-
type: "object",
|
|
20940
|
-
properties: {
|
|
20941
|
-
type: {
|
|
20942
|
-
const: "text"
|
|
20943
|
-
},
|
|
20944
|
-
role: {
|
|
20945
|
-
const: "prompt"
|
|
20946
|
-
}
|
|
20947
|
-
},
|
|
20948
|
-
required: [
|
|
20949
|
-
"type",
|
|
20950
|
-
"role"
|
|
20951
|
-
]
|
|
20952
|
-
},
|
|
20953
|
-
minContains: 1,
|
|
20954
|
-
maxContains: 1
|
|
20955
|
-
},
|
|
20956
|
-
{
|
|
20957
|
-
contains: {
|
|
20958
|
-
type: "object",
|
|
20959
|
-
properties: {
|
|
20960
|
-
type: {
|
|
20961
|
-
const: "text"
|
|
20962
|
-
},
|
|
20963
|
-
role: {
|
|
20964
|
-
const: "negative_prompt"
|
|
20965
|
-
}
|
|
20966
|
-
},
|
|
20967
|
-
required: [
|
|
20968
|
-
"type",
|
|
20969
|
-
"role"
|
|
20970
|
-
]
|
|
20971
|
-
},
|
|
20972
|
-
minContains: 0,
|
|
20973
|
-
maxContains: 1
|
|
20974
|
-
},
|
|
20975
|
-
{
|
|
20976
|
-
contains: {
|
|
20977
|
-
type: "object",
|
|
20978
|
-
properties: {
|
|
20979
|
-
type: {
|
|
20980
|
-
const: "image"
|
|
20981
|
-
},
|
|
20982
|
-
role: {
|
|
20983
|
-
const: "reference"
|
|
20984
|
-
}
|
|
20985
|
-
},
|
|
20986
|
-
required: [
|
|
20987
|
-
"type",
|
|
20988
|
-
"role"
|
|
20989
|
-
]
|
|
20990
|
-
},
|
|
20991
|
-
minContains: 0,
|
|
20992
|
-
maxContains: 9
|
|
20993
|
-
},
|
|
20994
|
-
{
|
|
20995
|
-
contains: {
|
|
20996
|
-
type: "object",
|
|
20997
|
-
properties: {
|
|
20998
|
-
type: {
|
|
20999
|
-
const: "video"
|
|
21000
|
-
},
|
|
21001
|
-
role: {
|
|
21002
|
-
const: "reference"
|
|
21003
|
-
}
|
|
21004
|
-
},
|
|
21005
|
-
required: [
|
|
21006
|
-
"type",
|
|
21007
|
-
"role"
|
|
21008
|
-
]
|
|
21009
|
-
},
|
|
21010
|
-
minContains: 0,
|
|
21011
|
-
maxContains: 3
|
|
21012
|
-
},
|
|
21013
|
-
{
|
|
21014
|
-
contains: {
|
|
21015
|
-
type: "object",
|
|
21016
|
-
properties: {
|
|
21017
|
-
type: {
|
|
21018
|
-
const: "audio"
|
|
21019
|
-
},
|
|
21020
|
-
role: {
|
|
21021
|
-
const: "reference"
|
|
21022
|
-
}
|
|
21023
|
-
},
|
|
21024
|
-
required: [
|
|
21025
|
-
"type",
|
|
21026
|
-
"role"
|
|
21027
|
-
]
|
|
21028
|
-
},
|
|
21029
|
-
minContains: 0,
|
|
21030
|
-
maxContains: 3
|
|
21031
|
-
},
|
|
21032
|
-
{
|
|
21033
|
-
contains: {
|
|
21034
|
-
type: "object",
|
|
21035
|
-
properties: {
|
|
21036
|
-
type: {
|
|
21037
|
-
enum: [
|
|
21038
|
-
"image",
|
|
21039
|
-
"video"
|
|
21040
|
-
]
|
|
21041
|
-
}
|
|
21042
|
-
},
|
|
21043
|
-
required: [
|
|
21044
|
-
"type"
|
|
21045
|
-
]
|
|
21046
|
-
},
|
|
21047
|
-
minContains: 1
|
|
21048
|
-
}
|
|
21049
|
-
]
|
|
21161
|
+
maxItems: 1
|
|
21050
21162
|
},
|
|
21051
21163
|
aspect_ratio: {
|
|
21052
21164
|
type: "string",
|
|
21053
|
-
title: "\u753B\u9762\u6BD4\u4F8B",
|
|
21054
21165
|
enum: [
|
|
21055
|
-
"
|
|
21056
|
-
"16:9",
|
|
21057
|
-
"4:3",
|
|
21058
|
-
"1:1",
|
|
21059
|
-
"3:4",
|
|
21060
|
-
"9:16"
|
|
21166
|
+
"16:9"
|
|
21061
21167
|
],
|
|
21062
21168
|
default: "16:9",
|
|
21169
|
+
title: "\u753B\u9762\u6BD4\u4F8B",
|
|
21063
21170
|
"x-ui": {
|
|
21064
|
-
order: 10
|
|
21065
|
-
control: "segmented"
|
|
21171
|
+
order: 10
|
|
21066
21172
|
}
|
|
21067
21173
|
},
|
|
21068
21174
|
resolution: {
|
|
21069
21175
|
type: "string",
|
|
21070
|
-
title: "\u5206\u8FA8\u7387",
|
|
21071
21176
|
enum: [
|
|
21072
|
-
"480P",
|
|
21073
21177
|
"768P"
|
|
21074
21178
|
],
|
|
21075
|
-
default: "
|
|
21179
|
+
default: "768P",
|
|
21180
|
+
description: "1344 \xD7 768 pixels.",
|
|
21181
|
+
title: "\u5206\u8FA8\u7387",
|
|
21076
21182
|
"x-ui": {
|
|
21077
|
-
order: 11
|
|
21078
|
-
control: "segmented"
|
|
21183
|
+
order: 11
|
|
21079
21184
|
}
|
|
21080
21185
|
},
|
|
21081
21186
|
duration: {
|
|
21082
|
-
type: "
|
|
21187
|
+
type: "number",
|
|
21188
|
+
enum: [
|
|
21189
|
+
5.166666666666667
|
|
21190
|
+
],
|
|
21191
|
+
default: 5.166666666666667,
|
|
21192
|
+
description: "124 frames at 24 fps, approximately five seconds.",
|
|
21083
21193
|
title: "\u89C6\u9891\u65F6\u957F",
|
|
21084
|
-
minimum: 4,
|
|
21085
|
-
maximum: 15,
|
|
21086
|
-
default: 5,
|
|
21087
21194
|
"x-ui": {
|
|
21088
|
-
order:
|
|
21089
|
-
control: "
|
|
21090
|
-
|
|
21195
|
+
order: 13,
|
|
21196
|
+
control: "number"
|
|
21197
|
+
}
|
|
21198
|
+
},
|
|
21199
|
+
generate_audio: {
|
|
21200
|
+
type: "boolean",
|
|
21201
|
+
enum: [
|
|
21202
|
+
true
|
|
21203
|
+
],
|
|
21204
|
+
default: true,
|
|
21205
|
+
title: "\u751F\u6210\u97F3\u9891",
|
|
21206
|
+
"x-ui": {
|
|
21207
|
+
order: 14,
|
|
21208
|
+
control: "switch"
|
|
21091
21209
|
}
|
|
21092
21210
|
},
|
|
21093
21211
|
seed: {
|
|
21094
21212
|
type: "integer",
|
|
21095
|
-
title: "\u968F\u673A\u79CD\u5B50",
|
|
21096
21213
|
minimum: 0,
|
|
21214
|
+
maximum: 4294967295,
|
|
21215
|
+
default: 42,
|
|
21216
|
+
title: "\u968F\u673A\u79CD\u5B50",
|
|
21097
21217
|
"x-ui": {
|
|
21098
|
-
order:
|
|
21218
|
+
order: 16,
|
|
21099
21219
|
control: "number"
|
|
21100
21220
|
}
|
|
21101
21221
|
}
|
|
@@ -26786,7 +26906,10 @@ var video_generated_default = [
|
|
|
26786
26906
|
"wan2.7",
|
|
26787
26907
|
"wan2.7-t2v",
|
|
26788
26908
|
"wan2.7-i2v",
|
|
26789
|
-
"wan2.7-r2v"
|
|
26909
|
+
"wan2.7-r2v",
|
|
26910
|
+
"wan2.7-t2v-2026-06-12",
|
|
26911
|
+
"wan2.7-i2v-2026-04-25",
|
|
26912
|
+
"wan2.7-r2v-2026-06-12"
|
|
26790
26913
|
],
|
|
26791
26914
|
capabilities: {
|
|
26792
26915
|
inputModalities: [
|
|
@@ -40991,7 +41114,7 @@ var NexraWaitTimeoutError = class extends Error {
|
|
|
40991
41114
|
};
|
|
40992
41115
|
|
|
40993
41116
|
// src/generated/version.generated.ts
|
|
40994
|
-
var SDK_VERSION = "0.1.0-alpha.
|
|
41117
|
+
var SDK_VERSION = "0.1.0-alpha.27";
|
|
40995
41118
|
|
|
40996
41119
|
// src/transport.ts
|
|
40997
41120
|
var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";
|