@runwayml/sdk 4.5.0 → 4.7.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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +93 -3
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +93 -3
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +53 -16
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +53 -16
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +67 -19
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +67 -19
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +86 -3
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +86 -3
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +145 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +145 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +124 -2
- package/src/resources/sound-effect.ts +64 -16
- package/src/resources/text-to-speech.ts +131 -70
- package/src/resources/text-to-video.ts +116 -2
- package/src/resources/video-to-video.ts +184 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -24,7 +24,7 @@ export interface VideoToVideoCreateResponse {
|
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
}
|
|
27
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast;
|
|
27
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash;
|
|
28
28
|
export declare namespace VideoToVideoCreateParams {
|
|
29
29
|
interface Variant0 {
|
|
30
30
|
model: 'aleph2';
|
|
@@ -82,6 +82,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
82
82
|
* A HTTPS URL.
|
|
83
83
|
*/
|
|
84
84
|
uri: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
87
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
88
|
+
* none may.
|
|
89
|
+
*/
|
|
90
|
+
range?: UnionMember0.Range;
|
|
91
|
+
}
|
|
92
|
+
namespace UnionMember0 {
|
|
93
|
+
/**
|
|
94
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
95
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
96
|
+
* none may.
|
|
97
|
+
*/
|
|
98
|
+
interface Range {
|
|
99
|
+
/**
|
|
100
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
101
|
+
* video.
|
|
102
|
+
*/
|
|
103
|
+
end_seconds: number;
|
|
104
|
+
/**
|
|
105
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
106
|
+
*/
|
|
107
|
+
start_seconds: number;
|
|
108
|
+
}
|
|
85
109
|
}
|
|
86
110
|
interface UnionMember1 {
|
|
87
111
|
/**
|
|
@@ -93,6 +117,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
93
117
|
* A HTTPS URL.
|
|
94
118
|
*/
|
|
95
119
|
uri: string;
|
|
120
|
+
/**
|
|
121
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
122
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
123
|
+
* none may.
|
|
124
|
+
*/
|
|
125
|
+
range?: UnionMember1.Range;
|
|
126
|
+
}
|
|
127
|
+
namespace UnionMember1 {
|
|
128
|
+
/**
|
|
129
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
130
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
131
|
+
* none may.
|
|
132
|
+
*/
|
|
133
|
+
interface Range {
|
|
134
|
+
/**
|
|
135
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
136
|
+
* video.
|
|
137
|
+
*/
|
|
138
|
+
end_seconds: number;
|
|
139
|
+
/**
|
|
140
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
141
|
+
*/
|
|
142
|
+
start_seconds: number;
|
|
143
|
+
}
|
|
96
144
|
}
|
|
97
145
|
}
|
|
98
146
|
interface Seedance2 {
|
|
@@ -102,7 +150,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
102
150
|
*/
|
|
103
151
|
promptVideo: string;
|
|
104
152
|
/**
|
|
105
|
-
* Whether to generate audio for the video.
|
|
153
|
+
* Whether to generate audio for the video.
|
|
106
154
|
*/
|
|
107
155
|
audio?: boolean;
|
|
108
156
|
/**
|
|
@@ -172,7 +220,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
172
220
|
*/
|
|
173
221
|
promptVideo: string;
|
|
174
222
|
/**
|
|
175
|
-
* Whether to generate audio for the video.
|
|
223
|
+
* Whether to generate audio for the video.
|
|
176
224
|
*/
|
|
177
225
|
audio?: boolean;
|
|
178
226
|
/**
|
|
@@ -236,6 +284,100 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
236
284
|
uri: string;
|
|
237
285
|
}
|
|
238
286
|
}
|
|
287
|
+
interface Seedance2Mini {
|
|
288
|
+
model: 'seedance2_mini';
|
|
289
|
+
/**
|
|
290
|
+
* A HTTPS URL.
|
|
291
|
+
*/
|
|
292
|
+
promptVideo: string;
|
|
293
|
+
/**
|
|
294
|
+
* Whether to generate audio for the video.
|
|
295
|
+
*/
|
|
296
|
+
audio?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* The number of seconds of duration for the output video.
|
|
299
|
+
*/
|
|
300
|
+
duration?: number;
|
|
301
|
+
/**
|
|
302
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
303
|
+
* the output.
|
|
304
|
+
*/
|
|
305
|
+
promptText?: string;
|
|
306
|
+
/**
|
|
307
|
+
* The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
|
|
308
|
+
* only.
|
|
309
|
+
*/
|
|
310
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
311
|
+
/**
|
|
312
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
313
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
314
|
+
*/
|
|
315
|
+
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
316
|
+
/**
|
|
317
|
+
* An optional array of image references (up to 9). See
|
|
318
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
319
|
+
*/
|
|
320
|
+
references?: Array<Seedance2Mini.Reference>;
|
|
321
|
+
/**
|
|
322
|
+
* An optional array of video references. The combined duration across all video
|
|
323
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
324
|
+
* video inputs for more information.
|
|
325
|
+
*/
|
|
326
|
+
referenceVideos?: Array<Seedance2Mini.ReferenceVideo>;
|
|
327
|
+
}
|
|
328
|
+
namespace Seedance2Mini {
|
|
329
|
+
/**
|
|
330
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
331
|
+
* the output.
|
|
332
|
+
*/
|
|
333
|
+
interface ReferenceAudio {
|
|
334
|
+
type: 'audio';
|
|
335
|
+
/**
|
|
336
|
+
* A HTTPS URL.
|
|
337
|
+
*/
|
|
338
|
+
uri: string;
|
|
339
|
+
}
|
|
340
|
+
interface Reference {
|
|
341
|
+
/**
|
|
342
|
+
* A HTTPS URL.
|
|
343
|
+
*/
|
|
344
|
+
uri: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* A video reference allows the model to use the video as additional context for
|
|
348
|
+
* the output.
|
|
349
|
+
*/
|
|
350
|
+
interface ReferenceVideo {
|
|
351
|
+
type: 'video';
|
|
352
|
+
/**
|
|
353
|
+
* A HTTPS URL.
|
|
354
|
+
*/
|
|
355
|
+
uri: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
interface GeminiOmniFlash {
|
|
359
|
+
model: 'gemini_omni_flash';
|
|
360
|
+
/**
|
|
361
|
+
* A non-empty instruction describing the edit to apply.
|
|
362
|
+
*/
|
|
363
|
+
promptText: string;
|
|
364
|
+
/**
|
|
365
|
+
* A HTTPS URL.
|
|
366
|
+
*/
|
|
367
|
+
videoUri: string;
|
|
368
|
+
/**
|
|
369
|
+
* An optional array of image references to guide the edit.
|
|
370
|
+
*/
|
|
371
|
+
references?: Array<GeminiOmniFlash.Reference>;
|
|
372
|
+
}
|
|
373
|
+
namespace GeminiOmniFlash {
|
|
374
|
+
interface Reference {
|
|
375
|
+
/**
|
|
376
|
+
* A HTTPS URL.
|
|
377
|
+
*/
|
|
378
|
+
uri: string;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
239
381
|
}
|
|
240
382
|
export declare namespace VideoToVideo {
|
|
241
383
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WA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Ac,CAAC,CAAC;KACvD;IAED,UAAiB,aAAa,CAAC;QAC7B;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,SAAS;YACxB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,eAAe;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAE3B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;KAC/C;IAED,UAAiB,eAAe,CAAC;QAC/B,UAAiB,SAAS;YACxB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -36,6 +36,8 @@ export type ImageToVideoCreateParams =
|
|
|
36
36
|
| ImageToVideoCreateParams.Happyhorse1_0
|
|
37
37
|
| ImageToVideoCreateParams.Seedance2
|
|
38
38
|
| ImageToVideoCreateParams.Seedance2Fast
|
|
39
|
+
| ImageToVideoCreateParams.Seedance2Mini
|
|
40
|
+
| ImageToVideoCreateParams.GeminiOmniFlash
|
|
39
41
|
| ImageToVideoCreateParams.Veo3;
|
|
40
42
|
|
|
41
43
|
export declare namespace ImageToVideoCreateParams {
|
|
@@ -312,7 +314,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
312
314
|
promptImage: string | Array<Seedance2.PromptImage>;
|
|
313
315
|
|
|
314
316
|
/**
|
|
315
|
-
* Whether to generate audio for the video.
|
|
317
|
+
* Whether to generate audio for the video.
|
|
316
318
|
*/
|
|
317
319
|
audio?: boolean;
|
|
318
320
|
|
|
@@ -401,7 +403,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
401
403
|
promptImage: string | Array<Seedance2Fast.PromptImage>;
|
|
402
404
|
|
|
403
405
|
/**
|
|
404
|
-
* Whether to generate audio for the video.
|
|
406
|
+
* Whether to generate audio for the video.
|
|
405
407
|
*/
|
|
406
408
|
audio?: boolean;
|
|
407
409
|
|
|
@@ -469,6 +471,126 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
469
471
|
}
|
|
470
472
|
}
|
|
471
473
|
|
|
474
|
+
export interface Seedance2Mini {
|
|
475
|
+
model: 'seedance2_mini';
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
479
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
480
|
+
*/
|
|
481
|
+
promptImage: string | Array<Seedance2Mini.PromptImage>;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Whether to generate audio for the video.
|
|
485
|
+
*/
|
|
486
|
+
audio?: boolean;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* The number of seconds of duration for the output video.
|
|
490
|
+
*/
|
|
491
|
+
duration?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
495
|
+
* the output.
|
|
496
|
+
*/
|
|
497
|
+
promptText?: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
|
|
501
|
+
* only.
|
|
502
|
+
*/
|
|
503
|
+
ratio?:
|
|
504
|
+
| '992:432'
|
|
505
|
+
| '864:496'
|
|
506
|
+
| '752:560'
|
|
507
|
+
| '640:640'
|
|
508
|
+
| '560:752'
|
|
509
|
+
| '496:864'
|
|
510
|
+
| '1470:630'
|
|
511
|
+
| '1280:720'
|
|
512
|
+
| '1112:834'
|
|
513
|
+
| '960:960'
|
|
514
|
+
| '834:1112'
|
|
515
|
+
| '720:1280';
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
519
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
520
|
+
*/
|
|
521
|
+
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export namespace Seedance2Mini {
|
|
525
|
+
export interface PromptImage {
|
|
526
|
+
/**
|
|
527
|
+
* A HTTPS URL.
|
|
528
|
+
*/
|
|
529
|
+
uri: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
533
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
534
|
+
*/
|
|
535
|
+
position?: 'first' | 'last';
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
540
|
+
* the output.
|
|
541
|
+
*/
|
|
542
|
+
export interface ReferenceAudio {
|
|
543
|
+
type: 'audio';
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* A HTTPS URL.
|
|
547
|
+
*/
|
|
548
|
+
uri: string;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export interface GeminiOmniFlash {
|
|
553
|
+
model: 'gemini_omni_flash';
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* An image to use as the first frame of the output video. Gemini Omni Flash only
|
|
557
|
+
* supports a first frame.
|
|
558
|
+
*/
|
|
559
|
+
promptImage: string | Array<GeminiOmniFlash.PromptImage>;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* The duration of the output video in seconds, as a whole number from 3 to 10.
|
|
563
|
+
*/
|
|
564
|
+
duration?: number;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* An optional text prompt describing how the video should evolve from the first
|
|
568
|
+
* frame.
|
|
569
|
+
*/
|
|
570
|
+
promptText?: string;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The aspect ratio of the output video: `1280:720` (landscape) or `720:1280`
|
|
574
|
+
* (portrait).
|
|
575
|
+
*/
|
|
576
|
+
ratio?: '1280:720' | '720:1280';
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export namespace GeminiOmniFlash {
|
|
580
|
+
export interface PromptImage {
|
|
581
|
+
/**
|
|
582
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
583
|
+
* first frame of the video.
|
|
584
|
+
*/
|
|
585
|
+
position: 'first';
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* A HTTPS URL.
|
|
589
|
+
*/
|
|
590
|
+
uri: string;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
472
594
|
export interface Veo3 {
|
|
473
595
|
/**
|
|
474
596
|
* The number of seconds of duration for the output video.
|
|
@@ -29,25 +29,73 @@ export interface SoundEffectCreateResponse {
|
|
|
29
29
|
id: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export
|
|
33
|
-
|
|
32
|
+
export type SoundEffectCreateParams =
|
|
33
|
+
| SoundEffectCreateParams.SeedAudio
|
|
34
|
+
| SoundEffectCreateParams.ElevenTextToSoundV2;
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
promptText: string;
|
|
36
|
+
export declare namespace SoundEffectCreateParams {
|
|
37
|
+
export interface SeedAudio {
|
|
38
|
+
model: 'seed_audio';
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
/**
|
|
41
|
+
* A non-empty text prompt. For text-to-speech, the words to speak. For
|
|
42
|
+
* text-to-audio, a scene description that can include voice direction, dialogue,
|
|
43
|
+
* music, and sound effects.
|
|
44
|
+
*/
|
|
45
|
+
promptText: string;
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Relative output loudness. Negative is quieter, positive is louder; 0 is normal.
|
|
49
|
+
*/
|
|
50
|
+
loudnessRate?: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Output audio container/format.
|
|
54
|
+
*/
|
|
55
|
+
outputFormat?: 'wav' | 'mp3' | 'ogg_opus';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.
|
|
59
|
+
*/
|
|
60
|
+
pitchRate?: number;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Up to three reference audio clips. When provided, reference them in promptText
|
|
64
|
+
* as @Audio1, @Audio2, and @Audio3 in order.
|
|
65
|
+
*/
|
|
66
|
+
referenceAudios?: Array<string>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Output sample rate in Hz.
|
|
70
|
+
*/
|
|
71
|
+
sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Relative speech speed. Negative is slower, positive is faster; 0 is normal.
|
|
75
|
+
*/
|
|
76
|
+
speechRate?: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ElevenTextToSoundV2 {
|
|
80
|
+
model: 'eleven_text_to_sound_v2';
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A text description of the sound effect to generate.
|
|
84
|
+
*/
|
|
85
|
+
promptText: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The duration of the sound effect in seconds, between 0.5 and 30 seconds. If not
|
|
89
|
+
* provided, the duration will be determined automatically based on the text
|
|
90
|
+
* description.
|
|
91
|
+
*/
|
|
92
|
+
duration?: number;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Whether the output sound effect should be designed to loop seamlessly.
|
|
96
|
+
*/
|
|
97
|
+
loop?: boolean;
|
|
98
|
+
}
|
|
51
99
|
}
|
|
52
100
|
|
|
53
101
|
export declare namespace SoundEffect {
|
|
@@ -28,81 +28,142 @@ export interface TextToSpeechCreateResponse {
|
|
|
28
28
|
id: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export
|
|
32
|
-
|
|
31
|
+
export type TextToSpeechCreateParams =
|
|
32
|
+
| TextToSpeechCreateParams.SeedAudio
|
|
33
|
+
| TextToSpeechCreateParams.ElevenMultilingualV2;
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*/
|
|
38
|
-
promptText: string;
|
|
35
|
+
export declare namespace TextToSpeechCreateParams {
|
|
36
|
+
export interface SeedAudio {
|
|
37
|
+
model: 'seed_audio';
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
/**
|
|
40
|
+
* A non-empty text prompt. For text-to-speech, the words to speak. For
|
|
41
|
+
* text-to-audio, a scene description that can include voice direction, dialogue,
|
|
42
|
+
* music, and sound effects.
|
|
43
|
+
*/
|
|
44
|
+
promptText: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Relative output loudness. Negative is quieter, positive is louder; 0 is normal.
|
|
48
|
+
*/
|
|
49
|
+
loudnessRate?: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Output audio container/format.
|
|
53
|
+
*/
|
|
54
|
+
outputFormat?: 'wav' | 'mp3' | 'ogg_opus';
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.
|
|
58
|
+
*/
|
|
59
|
+
pitchRate?: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Output sample rate in Hz.
|
|
63
|
+
*/
|
|
64
|
+
sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000;
|
|
45
65
|
|
|
46
|
-
export namespace TextToSpeechCreateParams {
|
|
47
|
-
/**
|
|
48
|
-
* A voice preset from the RunwayML API.
|
|
49
|
-
*/
|
|
50
|
-
export interface Voice {
|
|
51
66
|
/**
|
|
52
|
-
*
|
|
67
|
+
* Relative speech speed. Negative is slower, positive is faster; 0 is normal.
|
|
53
68
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
69
|
+
speechRate?: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Clone from a single reference audio clip, then speak promptText in that voice.
|
|
73
|
+
*/
|
|
74
|
+
voice?: SeedAudio.Voice;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace SeedAudio {
|
|
78
|
+
/**
|
|
79
|
+
* Clone from a single reference audio clip, then speak promptText in that voice.
|
|
80
|
+
*/
|
|
81
|
+
export interface Voice {
|
|
82
|
+
/**
|
|
83
|
+
* A HTTPS URL.
|
|
84
|
+
*/
|
|
85
|
+
audioUri: string;
|
|
86
|
+
|
|
87
|
+
type: 'reference-audio';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ElevenMultilingualV2 {
|
|
92
|
+
model: 'eleven_multilingual_v2';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
96
|
+
* should describe in detail what should appear in the output.
|
|
97
|
+
*/
|
|
98
|
+
promptText: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A voice preset from the RunwayML API.
|
|
102
|
+
*/
|
|
103
|
+
voice: ElevenMultilingualV2.Voice;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace ElevenMultilingualV2 {
|
|
107
|
+
/**
|
|
108
|
+
* A voice preset from the RunwayML API.
|
|
109
|
+
*/
|
|
110
|
+
export interface Voice {
|
|
111
|
+
/**
|
|
112
|
+
* The preset voice ID to use for the generated speech.
|
|
113
|
+
*/
|
|
114
|
+
presetId:
|
|
115
|
+
| 'Maya'
|
|
116
|
+
| 'Arjun'
|
|
117
|
+
| 'Serene'
|
|
118
|
+
| 'Bernard'
|
|
119
|
+
| 'Billy'
|
|
120
|
+
| 'Mark'
|
|
121
|
+
| 'Clint'
|
|
122
|
+
| 'Mabel'
|
|
123
|
+
| 'Chad'
|
|
124
|
+
| 'Leslie'
|
|
125
|
+
| 'Eleanor'
|
|
126
|
+
| 'Elias'
|
|
127
|
+
| 'Elliot'
|
|
128
|
+
| 'Grungle'
|
|
129
|
+
| 'Brodie'
|
|
130
|
+
| 'Sandra'
|
|
131
|
+
| 'Kirk'
|
|
132
|
+
| 'Kylie'
|
|
133
|
+
| 'Lara'
|
|
134
|
+
| 'Lisa'
|
|
135
|
+
| 'Malachi'
|
|
136
|
+
| 'Marlene'
|
|
137
|
+
| 'Martin'
|
|
138
|
+
| 'Miriam'
|
|
139
|
+
| 'Monster'
|
|
140
|
+
| 'Paula'
|
|
141
|
+
| 'Pip'
|
|
142
|
+
| 'Rusty'
|
|
143
|
+
| 'Ragnar'
|
|
144
|
+
| 'Xylar'
|
|
145
|
+
| 'Maggie'
|
|
146
|
+
| 'Jack'
|
|
147
|
+
| 'Katie'
|
|
148
|
+
| 'Noah'
|
|
149
|
+
| 'James'
|
|
150
|
+
| 'Rina'
|
|
151
|
+
| 'Ella'
|
|
152
|
+
| 'Mariah'
|
|
153
|
+
| 'Frank'
|
|
154
|
+
| 'Claudia'
|
|
155
|
+
| 'Niki'
|
|
156
|
+
| 'Vincent'
|
|
157
|
+
| 'Kendrick'
|
|
158
|
+
| 'Myrna'
|
|
159
|
+
| 'Tom'
|
|
160
|
+
| 'Wanda'
|
|
161
|
+
| 'Benjamin'
|
|
162
|
+
| 'Kiana'
|
|
163
|
+
| 'Rachel';
|
|
164
|
+
|
|
165
|
+
type: 'runway-preset';
|
|
166
|
+
}
|
|
106
167
|
}
|
|
107
168
|
}
|
|
108
169
|
|