@runwayml/sdk 3.5.0 → 3.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/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +5 -2
- package/client.js.map +1 -1
- package/client.mjs +5 -2
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +1 -1
- package/resources/character-performance.d.mts +32 -5
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +32 -5
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +16 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +16 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/image-to-video.d.mts +215 -88
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +215 -88
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +10 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +10 -1
- package/resources/image-to-video.mjs.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/speech-to-speech.d.mts +16 -4
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +16 -4
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +3 -3
- package/resources/text-to-image.d.ts +3 -3
- package/resources/text-to-speech.d.mts +2 -2
- package/resources/text-to-speech.d.ts +2 -2
- package/resources/text-to-video.d.mts +50 -28
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +50 -28
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/uploads.d.mts +33 -0
- package/resources/uploads.d.mts.map +1 -0
- package/resources/uploads.d.ts +33 -0
- package/resources/uploads.d.ts.map +1 -0
- package/resources/uploads.js +75 -0
- package/resources/uploads.js.map +1 -0
- package/resources/uploads.mjs +70 -0
- package/resources/uploads.mjs.map +1 -0
- package/resources/video-to-video.d.mts +12 -10
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +12 -10
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +10 -0
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +10 -0
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/video-upscale.d.mts +9 -9
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +9 -9
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/video-upscale.js +8 -0
- package/resources/video-upscale.js.map +1 -1
- package/resources/video-upscale.mjs +8 -0
- package/resources/video-upscale.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +10 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +10 -1
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +9 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +9 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +11 -2
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +11 -2
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +10 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +10 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/client.ts +11 -2
- package/src/resources/character-performance.ts +32 -5
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/index.ts +1 -0
- package/src/resources/speech-to-speech.ts +16 -4
- package/src/resources/text-to-image.ts +3 -3
- package/src/resources/text-to-speech.ts +2 -2
- package/src/resources/text-to-video.ts +61 -28
- package/src/resources/uploads.ts +135 -0
- package/src/resources/video-to-video.ts +12 -10
- package/src/resources/video-upscale.ts +9 -9
- package/src/resources/voice-dubbing.ts +10 -1
- package/src/resources/voice-isolation.ts +11 -2
- 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
|
@@ -3,108 +3,235 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
4
|
export declare class ImageToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to generate a video from an image
|
|
6
|
+
* This endpoint will start a new task to generate a video from an image.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const imageToVideo = await client.imageToVideo.create({
|
|
11
|
+
* model: 'gen3a_turbo',
|
|
12
|
+
* promptImage: 'https://example.com/file',
|
|
13
|
+
* promptText: 'A beautiful sunset over a calm ocean.',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body: ImageToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<ImageToVideoCreateResponse>;
|
|
9
18
|
}
|
|
10
19
|
export interface ImageToVideoCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task. Use this ID to query the task status and
|
|
13
|
-
* retrieve the generated video.
|
|
14
|
-
*/
|
|
15
20
|
id: string;
|
|
16
21
|
}
|
|
17
|
-
export
|
|
18
|
-
/**
|
|
19
|
-
* The model variant to use.
|
|
20
|
-
*/
|
|
21
|
-
model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3.1' | 'veo3.1_fast' | 'veo3';
|
|
22
|
-
/**
|
|
23
|
-
* A HTTPS URL or data URI containing an encoded image to be used as the first
|
|
24
|
-
* frame of the generated video. See [our docs](/assets/inputs#images) on image
|
|
25
|
-
* inputs for more information.
|
|
26
|
-
*/
|
|
27
|
-
promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
|
|
28
|
-
/**
|
|
29
|
-
* The resolution of the output video.
|
|
30
|
-
*
|
|
31
|
-
* `gen4_turbo` supports the following values:
|
|
32
|
-
*
|
|
33
|
-
* - `1280:720`
|
|
34
|
-
* - `720:1280`
|
|
35
|
-
* - `1104:832`
|
|
36
|
-
* - `832:1104`
|
|
37
|
-
* - `960:960`
|
|
38
|
-
* - `1584:672`
|
|
39
|
-
*
|
|
40
|
-
* `gen3a_turbo` supports the following values:
|
|
41
|
-
*
|
|
42
|
-
* - `1280:768`
|
|
43
|
-
* - `768:1280`
|
|
44
|
-
*
|
|
45
|
-
* `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
|
|
46
|
-
*
|
|
47
|
-
* - `1280:720`
|
|
48
|
-
* - `720:1280`
|
|
49
|
-
* - `1080:1920`
|
|
50
|
-
* - `1920:1080`
|
|
51
|
-
*/
|
|
52
|
-
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280' | '1080:1920' | '1920:1080';
|
|
53
|
-
/**
|
|
54
|
-
* Settings that affect the behavior of the content moderation system.
|
|
55
|
-
*
|
|
56
|
-
* This field is allowed only for the following model variants: `gen4_turbo`,
|
|
57
|
-
* `gen3a_turbo`
|
|
58
|
-
*/
|
|
59
|
-
contentModeration?: ImageToVideoCreateParams.ContentModeration;
|
|
60
|
-
/**
|
|
61
|
-
* The number of seconds of duration for the output video. `veo3` requires a
|
|
62
|
-
* duration of 8. `veo3.1` and `veo3.1_fast` require a duration of 4, 6, or 8.
|
|
63
|
-
* `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must specify a
|
|
64
|
-
* duration of 2-10 seconds.
|
|
65
|
-
*/
|
|
66
|
-
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
67
|
-
/**
|
|
68
|
-
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
69
|
-
* should describe in detail what should appear in the output.
|
|
70
|
-
*/
|
|
71
|
-
promptText?: string;
|
|
72
|
-
/**
|
|
73
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
74
|
-
* get different results for the same other request parameters. Using the same seed
|
|
75
|
-
* integer for an identical request will produce similar results.
|
|
76
|
-
*/
|
|
77
|
-
seed?: number;
|
|
78
|
-
}
|
|
22
|
+
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
|
|
79
23
|
export declare namespace ImageToVideoCreateParams {
|
|
80
|
-
interface
|
|
24
|
+
interface Gen4Turbo {
|
|
25
|
+
model: 'gen4_turbo';
|
|
26
|
+
/**
|
|
27
|
+
* A HTTPS URL.
|
|
28
|
+
*/
|
|
29
|
+
promptImage: string | Array<Gen4Turbo.PromptImage>;
|
|
30
|
+
/**
|
|
31
|
+
* The resolution of the output video.
|
|
32
|
+
*/
|
|
33
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672';
|
|
34
|
+
/**
|
|
35
|
+
* Settings that affect the behavior of the content moderation system.
|
|
36
|
+
*/
|
|
37
|
+
contentModeration?: Gen4Turbo.ContentModeration;
|
|
81
38
|
/**
|
|
82
|
-
* The
|
|
83
|
-
* first frame of the video, "last" will use the image as the last frame of the
|
|
84
|
-
* video.
|
|
85
|
-
*
|
|
86
|
-
* "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
|
|
87
|
-
* only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
|
|
39
|
+
* The number of seconds of duration for the output video.
|
|
88
40
|
*/
|
|
89
|
-
|
|
41
|
+
duration?: number;
|
|
90
42
|
/**
|
|
91
|
-
* A
|
|
92
|
-
*
|
|
43
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
44
|
+
* should describe in detail what should appear in the output.
|
|
93
45
|
*/
|
|
94
|
-
|
|
46
|
+
promptText?: string;
|
|
47
|
+
/**
|
|
48
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
49
|
+
* get different results for the same other request parameters. Using the same seed
|
|
50
|
+
* integer for an identical request will produce similar results.
|
|
51
|
+
*/
|
|
52
|
+
seed?: number;
|
|
95
53
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
54
|
+
namespace Gen4Turbo {
|
|
55
|
+
interface PromptImage {
|
|
56
|
+
/**
|
|
57
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
58
|
+
* first frame of the video.
|
|
59
|
+
*/
|
|
60
|
+
position: 'first';
|
|
61
|
+
/**
|
|
62
|
+
* A HTTPS URL.
|
|
63
|
+
*/
|
|
64
|
+
uri: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Settings that affect the behavior of the content moderation system.
|
|
68
|
+
*/
|
|
69
|
+
interface ContentModeration {
|
|
70
|
+
/**
|
|
71
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
72
|
+
* preventing generations that include recognizable public figures.
|
|
73
|
+
*/
|
|
74
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
interface Gen3aTurbo {
|
|
78
|
+
model: 'gen3a_turbo';
|
|
79
|
+
/**
|
|
80
|
+
* A HTTPS URL.
|
|
81
|
+
*/
|
|
82
|
+
promptImage: string | Array<Gen3aTurbo.PromptImage>;
|
|
103
83
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
84
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
85
|
+
* should describe in detail what should appear in the output.
|
|
106
86
|
*/
|
|
107
|
-
|
|
87
|
+
promptText: string;
|
|
88
|
+
/**
|
|
89
|
+
* Settings that affect the behavior of the content moderation system.
|
|
90
|
+
*/
|
|
91
|
+
contentModeration?: Gen3aTurbo.ContentModeration;
|
|
92
|
+
/**
|
|
93
|
+
* The duration of the output video in seconds.
|
|
94
|
+
*/
|
|
95
|
+
duration?: 5 | 10;
|
|
96
|
+
/**
|
|
97
|
+
* The resolution of the output video.
|
|
98
|
+
*/
|
|
99
|
+
ratio?: '768:1280' | '1280:768';
|
|
100
|
+
/**
|
|
101
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
102
|
+
* get different results for the same other request parameters. Using the same seed
|
|
103
|
+
* integer for an identical request will produce similar results.
|
|
104
|
+
*/
|
|
105
|
+
seed?: number;
|
|
106
|
+
}
|
|
107
|
+
namespace Gen3aTurbo {
|
|
108
|
+
interface PromptImage {
|
|
109
|
+
/**
|
|
110
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
111
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
112
|
+
* video.
|
|
113
|
+
*/
|
|
114
|
+
position: 'first' | 'last';
|
|
115
|
+
/**
|
|
116
|
+
* A HTTPS URL.
|
|
117
|
+
*/
|
|
118
|
+
uri: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Settings that affect the behavior of the content moderation system.
|
|
122
|
+
*/
|
|
123
|
+
interface ContentModeration {
|
|
124
|
+
/**
|
|
125
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
126
|
+
* preventing generations that include recognizable public figures.
|
|
127
|
+
*/
|
|
128
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
interface Veo3_1 {
|
|
132
|
+
model: 'veo3.1';
|
|
133
|
+
/**
|
|
134
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
135
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
136
|
+
* support generating with only a last frame.
|
|
137
|
+
*/
|
|
138
|
+
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
139
|
+
/**
|
|
140
|
+
* The resolution of the output video.
|
|
141
|
+
*/
|
|
142
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
143
|
+
/**
|
|
144
|
+
* The number of seconds of duration for the output video.
|
|
145
|
+
*/
|
|
146
|
+
duration?: 4 | 6 | 8;
|
|
147
|
+
/**
|
|
148
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
149
|
+
* should describe in detail what should appear in the output.
|
|
150
|
+
*/
|
|
151
|
+
promptText?: string;
|
|
152
|
+
}
|
|
153
|
+
namespace Veo3_1 {
|
|
154
|
+
interface PromptImage {
|
|
155
|
+
/**
|
|
156
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
157
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
158
|
+
* video.
|
|
159
|
+
*/
|
|
160
|
+
position: 'first' | 'last';
|
|
161
|
+
/**
|
|
162
|
+
* A HTTPS URL.
|
|
163
|
+
*/
|
|
164
|
+
uri: string;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
interface Veo3_1Fast {
|
|
168
|
+
model: 'veo3.1_fast';
|
|
169
|
+
/**
|
|
170
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
171
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
172
|
+
* support generating with only a last frame.
|
|
173
|
+
*/
|
|
174
|
+
promptImage: string | Array<Veo3_1Fast.PromptImage>;
|
|
175
|
+
/**
|
|
176
|
+
* The resolution of the output video.
|
|
177
|
+
*/
|
|
178
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
179
|
+
/**
|
|
180
|
+
* The number of seconds of duration for the output video.
|
|
181
|
+
*/
|
|
182
|
+
duration?: 4 | 6 | 8;
|
|
183
|
+
/**
|
|
184
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
185
|
+
* should describe in detail what should appear in the output.
|
|
186
|
+
*/
|
|
187
|
+
promptText?: string;
|
|
188
|
+
}
|
|
189
|
+
namespace Veo3_1Fast {
|
|
190
|
+
interface PromptImage {
|
|
191
|
+
/**
|
|
192
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
193
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
194
|
+
* video.
|
|
195
|
+
*/
|
|
196
|
+
position: 'first' | 'last';
|
|
197
|
+
/**
|
|
198
|
+
* A HTTPS URL.
|
|
199
|
+
*/
|
|
200
|
+
uri: string;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
interface Veo3 {
|
|
204
|
+
/**
|
|
205
|
+
* The number of seconds of duration for the output video.
|
|
206
|
+
*/
|
|
207
|
+
duration: 8;
|
|
208
|
+
model: 'veo3';
|
|
209
|
+
/**
|
|
210
|
+
* A HTTPS URL.
|
|
211
|
+
*/
|
|
212
|
+
promptImage: string | Array<Veo3.PromptImage>;
|
|
213
|
+
/**
|
|
214
|
+
* The resolution of the output video.
|
|
215
|
+
*/
|
|
216
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
217
|
+
/**
|
|
218
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
219
|
+
* should describe in detail what should appear in the output.
|
|
220
|
+
*/
|
|
221
|
+
promptText?: string;
|
|
222
|
+
}
|
|
223
|
+
namespace Veo3 {
|
|
224
|
+
interface PromptImage {
|
|
225
|
+
/**
|
|
226
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
227
|
+
* first frame of the video.
|
|
228
|
+
*/
|
|
229
|
+
position: 'first';
|
|
230
|
+
/**
|
|
231
|
+
* A HTTPS URL.
|
|
232
|
+
*/
|
|
233
|
+
uri: string;
|
|
234
|
+
}
|
|
108
235
|
}
|
|
109
236
|
}
|
|
110
237
|
export declare namespace ImageToVideo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO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}
|
|
@@ -6,7 +6,16 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
7
|
class ImageToVideo extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* This endpoint will start a new task to generate a video from an image
|
|
9
|
+
* This endpoint will start a new task to generate a video from an image.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const imageToVideo = await client.imageToVideo.create({
|
|
14
|
+
* model: 'gen3a_turbo',
|
|
15
|
+
* promptImage: 'https://example.com/file',
|
|
16
|
+
* promptText: 'A beautiful sunset over a calm ocean.',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(body, options) {
|
|
12
21
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/image_to_video', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
|
|
@@ -3,7 +3,16 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
4
|
export class ImageToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to generate a video from an image
|
|
6
|
+
* This endpoint will start a new task to generate a video from an image.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const imageToVideo = await client.imageToVideo.create({
|
|
11
|
+
* model: 'gen3a_turbo',
|
|
12
|
+
* promptImage: 'https://example.com/file',
|
|
13
|
+
* promptText: 'A beautiful sunset over a calm ocean.',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body, options) {
|
|
9
18
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/image_to_video', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -11,4 +11,5 @@ export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateP
|
|
|
11
11
|
export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.mjs";
|
|
12
12
|
export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.mjs";
|
|
13
13
|
export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.mjs";
|
|
14
|
+
export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.mjs";
|
|
14
15
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateP
|
|
|
11
11
|
export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
|
|
12
12
|
export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.js";
|
|
13
13
|
export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.js";
|
|
14
|
+
export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.js";
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.VoiceIsolation = exports.VoiceDubbing = exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.SpeechToSpeech = exports.SoundEffect = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
|
|
4
|
+
exports.Uploads = exports.VoiceIsolation = exports.VoiceDubbing = exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.SpeechToSpeech = exports.SoundEffect = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
|
|
5
5
|
var character_performance_1 = require("./character-performance.js");
|
|
6
6
|
Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
|
|
7
7
|
var image_to_video_1 = require("./image-to-video.js");
|
|
@@ -28,4 +28,6 @@ var voice_dubbing_1 = require("./voice-dubbing.js");
|
|
|
28
28
|
Object.defineProperty(exports, "VoiceDubbing", { enumerable: true, get: function () { return voice_dubbing_1.VoiceDubbing; } });
|
|
29
29
|
var voice_isolation_1 = require("./voice-isolation.js");
|
|
30
30
|
Object.defineProperty(exports, "VoiceIsolation", { enumerable: true, get: function () { return voice_isolation_1.VoiceIsolation; } });
|
|
31
|
+
var uploads_1 = require("./uploads.js");
|
|
32
|
+
Object.defineProperty(exports, "Uploads", { enumerable: true, get: function () { return uploads_1.Uploads; } });
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA;AAIhB,wCAA2G;AAAlG,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -12,4 +12,5 @@ export { VideoToVideo, } from "./video-to-video.mjs";
|
|
|
12
12
|
export { VideoUpscale, } from "./video-upscale.mjs";
|
|
13
13
|
export { VoiceDubbing, } from "./voice-dubbing.mjs";
|
|
14
14
|
export { VoiceIsolation, } from "./voice-isolation.mjs";
|
|
15
|
+
export { Uploads } from "./uploads.mjs";
|
|
15
16
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,cAAc,GAGf"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,cAAc,GAGf;OACM,EAAE,OAAO,EAAyE"}
|
|
@@ -12,31 +12,43 @@ export interface SpeechToSpeechCreateResponse {
|
|
|
12
12
|
id: string;
|
|
13
13
|
}
|
|
14
14
|
export interface SpeechToSpeechCreateParams {
|
|
15
|
+
/**
|
|
16
|
+
* The media to use as a source for the dialogue for the generated speech.
|
|
17
|
+
*/
|
|
15
18
|
media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
|
|
16
19
|
model: 'eleven_multilingual_sts_v2';
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* A voice preset from the RunwayML API.
|
|
19
22
|
*/
|
|
20
23
|
voice: SpeechToSpeechCreateParams.Voice;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to remove background noise from the generated speech.
|
|
26
|
+
*/
|
|
21
27
|
removeBackgroundNoise?: boolean;
|
|
22
28
|
}
|
|
23
29
|
export declare namespace SpeechToSpeechCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* An audio file containing dialogue to be processed.
|
|
32
|
+
*/
|
|
24
33
|
interface Audio {
|
|
25
34
|
type: 'audio';
|
|
26
35
|
/**
|
|
27
|
-
* A
|
|
36
|
+
* A HTTPS URL.
|
|
28
37
|
*/
|
|
29
38
|
uri: string;
|
|
30
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A video file containing dialogue to be processed.
|
|
42
|
+
*/
|
|
31
43
|
interface Video {
|
|
32
44
|
type: 'video';
|
|
33
45
|
/**
|
|
34
|
-
* A
|
|
46
|
+
* A HTTPS URL.
|
|
35
47
|
*/
|
|
36
48
|
uri: string;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
|
-
*
|
|
51
|
+
* A voice preset from the RunwayML API.
|
|
40
52
|
*/
|
|
41
53
|
interface Voice {
|
|
42
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,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ACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -12,31 +12,43 @@ export interface SpeechToSpeechCreateResponse {
|
|
|
12
12
|
id: string;
|
|
13
13
|
}
|
|
14
14
|
export interface SpeechToSpeechCreateParams {
|
|
15
|
+
/**
|
|
16
|
+
* The media to use as a source for the dialogue for the generated speech.
|
|
17
|
+
*/
|
|
15
18
|
media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
|
|
16
19
|
model: 'eleven_multilingual_sts_v2';
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* A voice preset from the RunwayML API.
|
|
19
22
|
*/
|
|
20
23
|
voice: SpeechToSpeechCreateParams.Voice;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to remove background noise from the generated speech.
|
|
26
|
+
*/
|
|
21
27
|
removeBackgroundNoise?: boolean;
|
|
22
28
|
}
|
|
23
29
|
export declare namespace SpeechToSpeechCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* An audio file containing dialogue to be processed.
|
|
32
|
+
*/
|
|
24
33
|
interface Audio {
|
|
25
34
|
type: 'audio';
|
|
26
35
|
/**
|
|
27
|
-
* A
|
|
36
|
+
* A HTTPS URL.
|
|
28
37
|
*/
|
|
29
38
|
uri: string;
|
|
30
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A video file containing dialogue to be processed.
|
|
42
|
+
*/
|
|
31
43
|
interface Video {
|
|
32
44
|
type: 'video';
|
|
33
45
|
/**
|
|
34
|
-
* A
|
|
46
|
+
* A HTTPS URL.
|
|
35
47
|
*/
|
|
36
48
|
uri: string;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
|
-
*
|
|
51
|
+
* A voice preset from the RunwayML API.
|
|
40
52
|
*/
|
|
41
53
|
interface Voice {
|
|
42
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -96,9 +96,9 @@ export declare namespace TextToImageCreateParams {
|
|
|
96
96
|
}
|
|
97
97
|
interface ReferenceImage {
|
|
98
98
|
/**
|
|
99
|
-
* A HTTPS URL or data URI containing an encoded image to be used as
|
|
100
|
-
* the generated output image. See [our docs](/assets/inputs#images)
|
|
101
|
-
* inputs for more information.
|
|
99
|
+
* A HTTPS URL, Runway or data URI containing an encoded image to be used as
|
|
100
|
+
* reference for the generated output image. See [our docs](/assets/inputs#images)
|
|
101
|
+
* on image inputs for more information.
|
|
102
102
|
*/
|
|
103
103
|
uri: string;
|
|
104
104
|
/**
|
|
@@ -96,9 +96,9 @@ export declare namespace TextToImageCreateParams {
|
|
|
96
96
|
}
|
|
97
97
|
interface ReferenceImage {
|
|
98
98
|
/**
|
|
99
|
-
* A HTTPS URL or data URI containing an encoded image to be used as
|
|
100
|
-
* the generated output image. See [our docs](/assets/inputs#images)
|
|
101
|
-
* inputs for more information.
|
|
99
|
+
* A HTTPS URL, Runway or data URI containing an encoded image to be used as
|
|
100
|
+
* reference for the generated output image. See [our docs](/assets/inputs#images)
|
|
101
|
+
* on image inputs for more information.
|
|
102
102
|
*/
|
|
103
103
|
uri: string;
|
|
104
104
|
/**
|
|
@@ -18,13 +18,13 @@ export interface TextToSpeechCreateParams {
|
|
|
18
18
|
*/
|
|
19
19
|
promptText: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* A voice preset from the RunwayML API.
|
|
22
22
|
*/
|
|
23
23
|
voice: TextToSpeechCreateParams.Voice;
|
|
24
24
|
}
|
|
25
25
|
export declare namespace TextToSpeechCreateParams {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* A voice preset from the RunwayML API.
|
|
28
28
|
*/
|
|
29
29
|
interface Voice {
|
|
30
30
|
/**
|
|
@@ -18,13 +18,13 @@ export interface TextToSpeechCreateParams {
|
|
|
18
18
|
*/
|
|
19
19
|
promptText: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* A voice preset from the RunwayML API.
|
|
22
22
|
*/
|
|
23
23
|
voice: TextToSpeechCreateParams.Voice;
|
|
24
24
|
}
|
|
25
25
|
export declare namespace TextToSpeechCreateParams {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* A voice preset from the RunwayML API.
|
|
28
28
|
*/
|
|
29
29
|
interface Voice {
|
|
30
30
|
/**
|