@runwayml/sdk 3.3.0 → 3.5.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 +22 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +18 -34
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +18 -34
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +10 -6
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +10 -6
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +92 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +92 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +1 -7
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +1 -7
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +52 -0
- package/resources/speech-to-speech.d.mts.map +1 -0
- package/resources/speech-to-speech.d.ts +52 -0
- package/resources/speech-to-speech.d.ts.map +1 -0
- package/resources/speech-to-speech.js +17 -0
- package/resources/speech-to-speech.js.map +1 -0
- package/resources/speech-to-speech.mjs +12 -0
- package/resources/speech-to-speech.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +1 -7
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +1 -7
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +5 -4
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +5 -4
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +1 -8
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +1 -8
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +4 -10
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +4 -10
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +2 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +2 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/character-performance.ts +20 -36
- package/src/resources/image-to-video.ts +20 -6
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +112 -1
- package/src/resources/sound-effect.ts +1 -7
- package/src/resources/speech-to-speech.ts +124 -0
- package/src/resources/text-to-speech.ts +1 -7
- package/src/resources/text-to-video.ts +5 -4
- package/src/resources/voice-dubbing.ts +1 -8
- package/src/resources/voice-isolation.ts +4 -10
- 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
|
@@ -30,7 +30,7 @@ export interface ImageToVideoCreateParams {
|
|
|
30
30
|
/**
|
|
31
31
|
* The model variant to use.
|
|
32
32
|
*/
|
|
33
|
-
model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3';
|
|
33
|
+
model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3.1' | 'veo3.1_fast' | 'veo3';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* A HTTPS URL or data URI containing an encoded image to be used as the first
|
|
@@ -56,12 +56,24 @@ export interface ImageToVideoCreateParams {
|
|
|
56
56
|
* - `1280:768`
|
|
57
57
|
* - `768:1280`
|
|
58
58
|
*
|
|
59
|
-
* `veo3`
|
|
59
|
+
* `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
|
|
60
60
|
*
|
|
61
61
|
* - `1280:720`
|
|
62
62
|
* - `720:1280`
|
|
63
|
+
* - `1080:1920`
|
|
64
|
+
* - `1920:1080`
|
|
63
65
|
*/
|
|
64
|
-
ratio:
|
|
66
|
+
ratio:
|
|
67
|
+
| '1280:720'
|
|
68
|
+
| '720:1280'
|
|
69
|
+
| '1104:832'
|
|
70
|
+
| '832:1104'
|
|
71
|
+
| '960:960'
|
|
72
|
+
| '1584:672'
|
|
73
|
+
| '1280:768'
|
|
74
|
+
| '768:1280'
|
|
75
|
+
| '1080:1920'
|
|
76
|
+
| '1920:1080';
|
|
65
77
|
|
|
66
78
|
/**
|
|
67
79
|
* Settings that affect the behavior of the content moderation system.
|
|
@@ -73,8 +85,9 @@ export interface ImageToVideoCreateParams {
|
|
|
73
85
|
|
|
74
86
|
/**
|
|
75
87
|
* The number of seconds of duration for the output video. `veo3` requires a
|
|
76
|
-
* duration of 8. `
|
|
77
|
-
*
|
|
88
|
+
* duration of 8. `veo3.1` and `veo3.1_fast` require a duration of 4, 6, or 8.
|
|
89
|
+
* `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must specify a
|
|
90
|
+
* duration of 2-10 seconds.
|
|
78
91
|
*/
|
|
79
92
|
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
80
93
|
|
|
@@ -99,7 +112,8 @@ export namespace ImageToVideoCreateParams {
|
|
|
99
112
|
* first frame of the video, "last" will use the image as the last frame of the
|
|
100
113
|
* video.
|
|
101
114
|
*
|
|
102
|
-
* "last" is currently supported for `gen3a_turbo`
|
|
115
|
+
* "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
|
|
116
|
+
* only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
|
|
103
117
|
*/
|
|
104
118
|
position: 'first' | 'last';
|
|
105
119
|
|
package/src/resources/index.ts
CHANGED
|
@@ -17,6 +17,11 @@ export {
|
|
|
17
17
|
type OrganizationRetrieveUsageParams,
|
|
18
18
|
} from './organization';
|
|
19
19
|
export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
|
|
20
|
+
export {
|
|
21
|
+
SpeechToSpeech,
|
|
22
|
+
type SpeechToSpeechCreateResponse,
|
|
23
|
+
type SpeechToSpeechCreateParams,
|
|
24
|
+
} from './speech-to-speech';
|
|
20
25
|
export { Tasks, type TaskRetrieveResponse } from './tasks';
|
|
21
26
|
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
|
|
22
27
|
export {
|
|
@@ -69,6 +69,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
69
69
|
*/
|
|
70
70
|
act_two?: Models.ActTwo;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Limits associated with the eleven_multilingual_sts_v2 model.
|
|
74
|
+
*/
|
|
75
|
+
eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
|
|
76
|
+
|
|
72
77
|
/**
|
|
73
78
|
* Limits associated with the eleven_multilingual_v2 model.
|
|
74
79
|
*/
|
|
@@ -128,6 +133,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
128
133
|
* Limits associated with the veo3 model.
|
|
129
134
|
*/
|
|
130
135
|
veo3?: Models.Veo3;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Limits associated with the veo3.1 model.
|
|
139
|
+
*/
|
|
140
|
+
'veo3.1'?: Models.Veo3_1;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Limits associated with the veo3.1_fast model.
|
|
144
|
+
*/
|
|
145
|
+
'veo3.1_fast'?: Models.Veo3_1Fast;
|
|
131
146
|
}
|
|
132
147
|
|
|
133
148
|
export namespace Models {
|
|
@@ -146,6 +161,21 @@ export namespace OrganizationRetrieveResponse {
|
|
|
146
161
|
maxDailyGenerations: number;
|
|
147
162
|
}
|
|
148
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Limits associated with the eleven_multilingual_sts_v2 model.
|
|
166
|
+
*/
|
|
167
|
+
export interface ElevenMultilingualStsV2 {
|
|
168
|
+
/**
|
|
169
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
170
|
+
*/
|
|
171
|
+
maxConcurrentGenerations: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The maximum number of generations that can be created each day for this model.
|
|
175
|
+
*/
|
|
176
|
+
maxDailyGenerations: number;
|
|
177
|
+
}
|
|
178
|
+
|
|
149
179
|
/**
|
|
150
180
|
* Limits associated with the eleven_multilingual_v2 model.
|
|
151
181
|
*/
|
|
@@ -325,6 +355,36 @@ export namespace OrganizationRetrieveResponse {
|
|
|
325
355
|
*/
|
|
326
356
|
maxDailyGenerations: number;
|
|
327
357
|
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Limits associated with the veo3.1 model.
|
|
361
|
+
*/
|
|
362
|
+
export interface Veo3_1 {
|
|
363
|
+
/**
|
|
364
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
365
|
+
*/
|
|
366
|
+
maxConcurrentGenerations: number;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The maximum number of generations that can be created each day for this model.
|
|
370
|
+
*/
|
|
371
|
+
maxDailyGenerations: number;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Limits associated with the veo3.1_fast model.
|
|
376
|
+
*/
|
|
377
|
+
export interface Veo3_1Fast {
|
|
378
|
+
/**
|
|
379
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
380
|
+
*/
|
|
381
|
+
maxConcurrentGenerations: number;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The maximum number of generations that can be created each day for this model.
|
|
385
|
+
*/
|
|
386
|
+
maxDailyGenerations: number;
|
|
387
|
+
}
|
|
328
388
|
}
|
|
329
389
|
}
|
|
330
390
|
|
|
@@ -348,6 +408,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
348
408
|
*/
|
|
349
409
|
act_two?: Models.ActTwo;
|
|
350
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Usage data for the eleven_multilingual_sts_v2 model.
|
|
413
|
+
*/
|
|
414
|
+
eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
|
|
415
|
+
|
|
351
416
|
/**
|
|
352
417
|
* Usage data for the eleven_multilingual_v2 model.
|
|
353
418
|
*/
|
|
@@ -407,6 +472,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
407
472
|
* Usage data for the veo3 model.
|
|
408
473
|
*/
|
|
409
474
|
veo3?: Models.Veo3;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Usage data for the veo3.1 model.
|
|
478
|
+
*/
|
|
479
|
+
'veo3.1'?: Models.Veo3_1;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Usage data for the veo3.1_fast model.
|
|
483
|
+
*/
|
|
484
|
+
'veo3.1_fast'?: Models.Veo3_1Fast;
|
|
410
485
|
}
|
|
411
486
|
|
|
412
487
|
export namespace Models {
|
|
@@ -420,6 +495,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
420
495
|
dailyGenerations: number;
|
|
421
496
|
}
|
|
422
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Usage data for the eleven_multilingual_sts_v2 model.
|
|
500
|
+
*/
|
|
501
|
+
export interface ElevenMultilingualStsV2 {
|
|
502
|
+
/**
|
|
503
|
+
* The number of generations that have been run for this model in the past day.
|
|
504
|
+
*/
|
|
505
|
+
dailyGenerations: number;
|
|
506
|
+
}
|
|
507
|
+
|
|
423
508
|
/**
|
|
424
509
|
* Usage data for the eleven_multilingual_v2 model.
|
|
425
510
|
*/
|
|
@@ -539,6 +624,26 @@ export namespace OrganizationRetrieveResponse {
|
|
|
539
624
|
*/
|
|
540
625
|
dailyGenerations: number;
|
|
541
626
|
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Usage data for the veo3.1 model.
|
|
630
|
+
*/
|
|
631
|
+
export interface Veo3_1 {
|
|
632
|
+
/**
|
|
633
|
+
* The number of generations that have been run for this model in the past day.
|
|
634
|
+
*/
|
|
635
|
+
dailyGenerations: number;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Usage data for the veo3.1_fast model.
|
|
640
|
+
*/
|
|
641
|
+
export interface Veo3_1Fast {
|
|
642
|
+
/**
|
|
643
|
+
* The number of generations that have been run for this model in the past day.
|
|
644
|
+
*/
|
|
645
|
+
dailyGenerations: number;
|
|
646
|
+
}
|
|
542
647
|
}
|
|
543
648
|
}
|
|
544
649
|
}
|
|
@@ -549,6 +654,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
549
654
|
*/
|
|
550
655
|
models: Array<
|
|
551
656
|
| 'act_two'
|
|
657
|
+
| 'eleven_multilingual_sts_v2'
|
|
552
658
|
| 'eleven_multilingual_v2'
|
|
553
659
|
| 'eleven_text_to_sound_v2'
|
|
554
660
|
| 'eleven_voice_dubbing'
|
|
@@ -561,6 +667,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
561
667
|
| 'gen4_turbo'
|
|
562
668
|
| 'upscale_v1'
|
|
563
669
|
| 'veo3'
|
|
670
|
+
| 'veo3.1'
|
|
671
|
+
| 'veo3.1_fast'
|
|
564
672
|
>;
|
|
565
673
|
|
|
566
674
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -592,6 +700,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
592
700
|
*/
|
|
593
701
|
model:
|
|
594
702
|
| 'act_two'
|
|
703
|
+
| 'eleven_multilingual_sts_v2'
|
|
595
704
|
| 'eleven_multilingual_v2'
|
|
596
705
|
| 'eleven_text_to_sound_v2'
|
|
597
706
|
| 'eleven_voice_dubbing'
|
|
@@ -603,7 +712,9 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
603
712
|
| 'gen4_image_turbo'
|
|
604
713
|
| 'gen4_turbo'
|
|
605
714
|
| 'upscale_v1'
|
|
606
|
-
| 'veo3'
|
|
715
|
+
| 'veo3'
|
|
716
|
+
| 'veo3.1'
|
|
717
|
+
| 'veo3.1_fast';
|
|
607
718
|
}
|
|
608
719
|
}
|
|
609
720
|
}
|
|
@@ -20,16 +20,10 @@ export class SoundEffect extends APIResource {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface SoundEffectCreateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the newly created task.
|
|
25
|
-
*/
|
|
26
23
|
id: string;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
export interface SoundEffectCreateParams {
|
|
30
|
-
/**
|
|
31
|
-
* The model variant to use.
|
|
32
|
-
*/
|
|
33
27
|
model: 'eleven_text_to_sound_v2';
|
|
34
28
|
|
|
35
29
|
/**
|
|
@@ -45,7 +39,7 @@ export interface SoundEffectCreateParams {
|
|
|
45
39
|
duration?: number;
|
|
46
40
|
|
|
47
41
|
/**
|
|
48
|
-
* Whether the sound effect should be designed to loop seamlessly.
|
|
42
|
+
* Whether the output sound effect should be designed to loop seamlessly.
|
|
49
43
|
*/
|
|
50
44
|
loop?: boolean;
|
|
51
45
|
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { RequestOptions } from '../internal/request-options';
|
|
5
|
+
|
|
6
|
+
export class SpeechToSpeech extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint will start a new task to convert speech from one voice to another
|
|
9
|
+
* in audio or video.
|
|
10
|
+
*/
|
|
11
|
+
create(
|
|
12
|
+
body: SpeechToSpeechCreateParams,
|
|
13
|
+
options?: RequestOptions,
|
|
14
|
+
): APIPromiseWithAwaitableTask<SpeechToSpeechCreateResponse> {
|
|
15
|
+
return wrapAsWaitableResource<SpeechToSpeechCreateResponse>(this._client)(
|
|
16
|
+
this._client.post('/v1/speech_to_speech', { body, ...options }),
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface SpeechToSpeechCreateResponse {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SpeechToSpeechCreateParams {
|
|
26
|
+
media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
|
|
27
|
+
|
|
28
|
+
model: 'eleven_multilingual_sts_v2';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The voice to use for the generated speech.
|
|
32
|
+
*/
|
|
33
|
+
voice: SpeechToSpeechCreateParams.Voice;
|
|
34
|
+
|
|
35
|
+
removeBackgroundNoise?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace SpeechToSpeechCreateParams {
|
|
39
|
+
export interface Audio {
|
|
40
|
+
type: 'audio';
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* A data URI containing encoded audio.
|
|
44
|
+
*/
|
|
45
|
+
uri: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface Video {
|
|
49
|
+
type: 'video';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A data URI containing an encoded video.
|
|
53
|
+
*/
|
|
54
|
+
uri: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The voice to use for the generated speech.
|
|
59
|
+
*/
|
|
60
|
+
export interface Voice {
|
|
61
|
+
/**
|
|
62
|
+
* The preset voice ID to use for the generated speech.
|
|
63
|
+
*/
|
|
64
|
+
presetId:
|
|
65
|
+
| 'Maya'
|
|
66
|
+
| 'Arjun'
|
|
67
|
+
| 'Serene'
|
|
68
|
+
| 'Bernard'
|
|
69
|
+
| 'Billy'
|
|
70
|
+
| 'Mark'
|
|
71
|
+
| 'Clint'
|
|
72
|
+
| 'Mabel'
|
|
73
|
+
| 'Chad'
|
|
74
|
+
| 'Leslie'
|
|
75
|
+
| 'Eleanor'
|
|
76
|
+
| 'Elias'
|
|
77
|
+
| 'Elliot'
|
|
78
|
+
| 'Grungle'
|
|
79
|
+
| 'Brodie'
|
|
80
|
+
| 'Sandra'
|
|
81
|
+
| 'Kirk'
|
|
82
|
+
| 'Kylie'
|
|
83
|
+
| 'Lara'
|
|
84
|
+
| 'Lisa'
|
|
85
|
+
| 'Malachi'
|
|
86
|
+
| 'Marlene'
|
|
87
|
+
| 'Martin'
|
|
88
|
+
| 'Miriam'
|
|
89
|
+
| 'Monster'
|
|
90
|
+
| 'Paula'
|
|
91
|
+
| 'Pip'
|
|
92
|
+
| 'Rusty'
|
|
93
|
+
| 'Ragnar'
|
|
94
|
+
| 'Xylar'
|
|
95
|
+
| 'Maggie'
|
|
96
|
+
| 'Jack'
|
|
97
|
+
| 'Katie'
|
|
98
|
+
| 'Noah'
|
|
99
|
+
| 'James'
|
|
100
|
+
| 'Rina'
|
|
101
|
+
| 'Ella'
|
|
102
|
+
| 'Mariah'
|
|
103
|
+
| 'Frank'
|
|
104
|
+
| 'Claudia'
|
|
105
|
+
| 'Niki'
|
|
106
|
+
| 'Vincent'
|
|
107
|
+
| 'Kendrick'
|
|
108
|
+
| 'Myrna'
|
|
109
|
+
| 'Tom'
|
|
110
|
+
| 'Wanda'
|
|
111
|
+
| 'Benjamin'
|
|
112
|
+
| 'Kiana'
|
|
113
|
+
| 'Rachel';
|
|
114
|
+
|
|
115
|
+
type: 'runway-preset';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace SpeechToSpeech {
|
|
120
|
+
export {
|
|
121
|
+
type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse,
|
|
122
|
+
type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -19,16 +19,10 @@ export class TextToSpeech extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface TextToSpeechCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task.
|
|
24
|
-
*/
|
|
25
22
|
id: string;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
export interface TextToSpeechCreateParams {
|
|
29
|
-
/**
|
|
30
|
-
* The model variant to use.
|
|
31
|
-
*/
|
|
32
26
|
model: 'eleven_multilingual_v2';
|
|
33
27
|
|
|
34
28
|
/**
|
|
@@ -49,7 +43,7 @@ export namespace TextToSpeechCreateParams {
|
|
|
49
43
|
*/
|
|
50
44
|
export interface Voice {
|
|
51
45
|
/**
|
|
52
|
-
* The
|
|
46
|
+
* The preset voice ID to use for the generated speech.
|
|
53
47
|
*/
|
|
54
48
|
presetId:
|
|
55
49
|
| 'Maya'
|
|
@@ -27,14 +27,15 @@ export interface TextToVideoCreateResponse {
|
|
|
27
27
|
|
|
28
28
|
export interface TextToVideoCreateParams {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* `veo3` videos must be 8 seconds long. `veo3.1` and `veo3.1_fast` videos must be
|
|
31
|
+
* 4, 6, or 8 seconds long.
|
|
31
32
|
*/
|
|
32
|
-
duration: 8;
|
|
33
|
+
duration: 4 | 6 | 8;
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* The model variant to use.
|
|
36
37
|
*/
|
|
37
|
-
model: 'veo3';
|
|
38
|
+
model: 'veo3.1' | 'veo3.1_fast' | 'veo3';
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -45,7 +46,7 @@ export interface TextToVideoCreateParams {
|
|
|
45
46
|
/**
|
|
46
47
|
* A string representing the aspect ratio of the output video.
|
|
47
48
|
*/
|
|
48
|
-
ratio: '1280:720' | '720:1280';
|
|
49
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
52
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
@@ -19,22 +19,15 @@ export class VoiceDubbing extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface VoiceDubbingCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task.
|
|
24
|
-
*/
|
|
25
22
|
id: string;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
export interface VoiceDubbingCreateParams {
|
|
29
26
|
/**
|
|
30
|
-
* A
|
|
31
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
27
|
+
* A data URI containing encoded audio.
|
|
32
28
|
*/
|
|
33
29
|
audioUri: string;
|
|
34
30
|
|
|
35
|
-
/**
|
|
36
|
-
* The model variant to use.
|
|
37
|
-
*/
|
|
38
31
|
model: 'eleven_voice_dubbing';
|
|
39
32
|
|
|
40
33
|
/**
|
|
@@ -6,7 +6,8 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
6
6
|
|
|
7
7
|
export class VoiceIsolation extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* This endpoint will start a new task to isolate
|
|
9
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
10
|
+
* audio.
|
|
10
11
|
*/
|
|
11
12
|
create(
|
|
12
13
|
body: VoiceIsolationCreateParams,
|
|
@@ -19,22 +20,15 @@ export class VoiceIsolation extends APIResource {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export interface VoiceIsolationCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task.
|
|
24
|
-
*/
|
|
25
23
|
id: string;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
export interface VoiceIsolationCreateParams {
|
|
29
27
|
/**
|
|
30
|
-
* A
|
|
31
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
28
|
+
* A data URI containing encoded audio.
|
|
32
29
|
*/
|
|
33
|
-
|
|
30
|
+
audioUri: string;
|
|
34
31
|
|
|
35
|
-
/**
|
|
36
|
-
* The model variant to use.
|
|
37
|
-
*/
|
|
38
32
|
model: 'eleven_voice_isolation';
|
|
39
33
|
}
|
|
40
34
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|