@runwayml/sdk 3.2.0 → 3.3.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 +8 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +62 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +62 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +48 -0
- package/resources/voice-dubbing.d.mts.map +1 -0
- package/resources/voice-dubbing.d.ts +48 -0
- package/resources/voice-dubbing.d.ts.map +1 -0
- package/resources/voice-dubbing.js +16 -0
- package/resources/voice-dubbing.js.map +1 -0
- package/resources/voice-dubbing.mjs +12 -0
- package/resources/voice-dubbing.mjs.map +1 -0
- package/resources/voice-isolation.d.mts +30 -0
- package/resources/voice-isolation.d.mts.map +1 -0
- package/resources/voice-isolation.d.ts +30 -0
- package/resources/voice-isolation.d.ts.map +1 -0
- package/resources/voice-isolation.js +16 -0
- package/resources/voice-isolation.js.map +1 -0
- package/resources/voice-isolation.mjs +12 -0
- package/resources/voice-isolation.mjs.map +1 -0
- package/src/client.ts +26 -0
- package/src/resources/index.ts +10 -0
- package/src/resources/organization.ts +74 -0
- package/src/resources/voice-dubbing.ts +97 -0
- package/src/resources/voice-isolation.ts +46 -0
- 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
|
@@ -59,6 +59,14 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
59
59
|
* Limits associated with the eleven_text_to_sound_v2 model.
|
|
60
60
|
*/
|
|
61
61
|
eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
|
|
62
|
+
/**
|
|
63
|
+
* Limits associated with the eleven_voice_dubbing model.
|
|
64
|
+
*/
|
|
65
|
+
eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
|
|
66
|
+
/**
|
|
67
|
+
* Limits associated with the eleven_voice_isolation model.
|
|
68
|
+
*/
|
|
69
|
+
eleven_voice_isolation?: Models.ElevenVoiceIsolation;
|
|
62
70
|
/**
|
|
63
71
|
* Limits associated with the gemini_2.5_flash model.
|
|
64
72
|
*/
|
|
@@ -132,6 +140,32 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
132
140
|
*/
|
|
133
141
|
maxDailyGenerations: number;
|
|
134
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Limits associated with the eleven_voice_dubbing model.
|
|
145
|
+
*/
|
|
146
|
+
interface ElevenVoiceDubbing {
|
|
147
|
+
/**
|
|
148
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
149
|
+
*/
|
|
150
|
+
maxConcurrentGenerations: number;
|
|
151
|
+
/**
|
|
152
|
+
* The maximum number of generations that can be created each day for this model.
|
|
153
|
+
*/
|
|
154
|
+
maxDailyGenerations: number;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Limits associated with the eleven_voice_isolation model.
|
|
158
|
+
*/
|
|
159
|
+
interface ElevenVoiceIsolation {
|
|
160
|
+
/**
|
|
161
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
162
|
+
*/
|
|
163
|
+
maxConcurrentGenerations: number;
|
|
164
|
+
/**
|
|
165
|
+
* The maximum number of generations that can be created each day for this model.
|
|
166
|
+
*/
|
|
167
|
+
maxDailyGenerations: number;
|
|
168
|
+
}
|
|
135
169
|
/**
|
|
136
170
|
* Limits associated with the gemini_2.5_flash model.
|
|
137
171
|
*/
|
|
@@ -264,6 +298,14 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
264
298
|
* Usage data for the eleven_text_to_sound_v2 model.
|
|
265
299
|
*/
|
|
266
300
|
eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
|
|
301
|
+
/**
|
|
302
|
+
* Usage data for the eleven_voice_dubbing model.
|
|
303
|
+
*/
|
|
304
|
+
eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
|
|
305
|
+
/**
|
|
306
|
+
* Usage data for the eleven_voice_isolation model.
|
|
307
|
+
*/
|
|
308
|
+
eleven_voice_isolation?: Models.ElevenVoiceIsolation;
|
|
267
309
|
/**
|
|
268
310
|
* Usage data for the gemini_2.5_flash model.
|
|
269
311
|
*/
|
|
@@ -325,6 +367,24 @@ export declare namespace OrganizationRetrieveResponse {
|
|
|
325
367
|
*/
|
|
326
368
|
dailyGenerations: number;
|
|
327
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Usage data for the eleven_voice_dubbing model.
|
|
372
|
+
*/
|
|
373
|
+
interface ElevenVoiceDubbing {
|
|
374
|
+
/**
|
|
375
|
+
* The number of generations that have been run for this model in the past day.
|
|
376
|
+
*/
|
|
377
|
+
dailyGenerations: number;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Usage data for the eleven_voice_isolation model.
|
|
381
|
+
*/
|
|
382
|
+
interface ElevenVoiceIsolation {
|
|
383
|
+
/**
|
|
384
|
+
* The number of generations that have been run for this model in the past day.
|
|
385
|
+
*/
|
|
386
|
+
dailyGenerations: number;
|
|
387
|
+
}
|
|
328
388
|
/**
|
|
329
389
|
* Usage data for the gemini_2.5_flash model.
|
|
330
390
|
*/
|
|
@@ -404,7 +464,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
404
464
|
/**
|
|
405
465
|
* The list of models with usage during the queried time range.
|
|
406
466
|
*/
|
|
407
|
-
models: Array<'act_two' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'gemini_2.5_flash' | 'gen3a_turbo' | 'gen4_aleph' | 'gen4_image' | 'gen4_image_turbo' | 'gen4_turbo' | 'upscale_v1' | 'veo3'>;
|
|
467
|
+
models: Array<'act_two' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_dubbing' | 'eleven_voice_isolation' | 'gemini_2.5_flash' | 'gen3a_turbo' | 'gen4_aleph' | 'gen4_image' | 'gen4_image_turbo' | 'gen4_turbo' | 'upscale_v1' | 'veo3'>;
|
|
408
468
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
409
469
|
}
|
|
410
470
|
export declare namespace OrganizationRetrieveUsageResponse {
|
|
@@ -428,7 +488,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
|
|
|
428
488
|
/**
|
|
429
489
|
* The model whose usage resulted in the credit usage.
|
|
430
490
|
*/
|
|
431
|
-
model: 'act_two' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'gemini_2.5_flash' | 'gen3a_turbo' | 'gen4_aleph' | 'gen4_image' | 'gen4_image_turbo' | 'gen4_turbo' | 'upscale_v1' | 'veo3';
|
|
491
|
+
model: 'act_two' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_dubbing' | 'eleven_voice_isolation' | 'gemini_2.5_flash' | 'gen3a_turbo' | 'gen4_aleph' | 'gen4_image' | 'gen4_image_turbo' | 'gen4_turbo' | 'upscale_v1' | 'veo3';
|
|
432
492
|
}
|
|
433
493
|
}
|
|
434
494
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,C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;QACrB;;;WAGG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KACvC;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,UAAU;YACzB;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,KAAK,EACD,SAAS,GACT,wBAAwB,GACxB,yBAAyB,GACzB,kBAAkB,GAClB,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,MAAM,CAAC;SACZ;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,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 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
export declare class VoiceDubbing extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*/
|
|
8
|
+
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VoiceDubbingCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the newly created task.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
export interface VoiceDubbingCreateParams {
|
|
17
|
+
/**
|
|
18
|
+
* A HTTPS URL or data URI containing the audio file to dub. See
|
|
19
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
+
*/
|
|
21
|
+
audioUri: string;
|
|
22
|
+
/**
|
|
23
|
+
* The model variant to use.
|
|
24
|
+
*/
|
|
25
|
+
model: 'eleven_voice_dubbing';
|
|
26
|
+
/**
|
|
27
|
+
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
28
|
+
* French).
|
|
29
|
+
*/
|
|
30
|
+
targetLang: 'en' | 'hi' | 'pt' | 'zh' | 'es' | 'fr' | 'de' | 'ja' | 'ar' | 'ru' | 'ko' | 'id' | 'it' | 'nl' | 'tr' | 'pl' | 'sv' | 'fil' | 'ms' | 'ro' | 'uk' | 'el' | 'cs' | 'da' | 'fi' | 'bg' | 'hr' | 'sk' | 'ta';
|
|
31
|
+
/**
|
|
32
|
+
* Whether to disable voice cloning and use a generic voice instead.
|
|
33
|
+
*/
|
|
34
|
+
disableVoiceCloning?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to remove background audio from the dubbed output.
|
|
37
|
+
*/
|
|
38
|
+
dropBackgroundAudio?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The number of speakers in the audio. If not provided, it will be detected
|
|
41
|
+
* automatically.
|
|
42
|
+
*/
|
|
43
|
+
numSpeakers?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace VoiceDubbing {
|
|
46
|
+
export { type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse, type VoiceDubbingCreateParams as VoiceDubbingCreateParams, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=voice-dubbing.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-dubbing.d.mts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
export declare class VoiceDubbing extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*/
|
|
8
|
+
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VoiceDubbingCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the newly created task.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
export interface VoiceDubbingCreateParams {
|
|
17
|
+
/**
|
|
18
|
+
* A HTTPS URL or data URI containing the audio file to dub. See
|
|
19
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
+
*/
|
|
21
|
+
audioUri: string;
|
|
22
|
+
/**
|
|
23
|
+
* The model variant to use.
|
|
24
|
+
*/
|
|
25
|
+
model: 'eleven_voice_dubbing';
|
|
26
|
+
/**
|
|
27
|
+
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
28
|
+
* French).
|
|
29
|
+
*/
|
|
30
|
+
targetLang: 'en' | 'hi' | 'pt' | 'zh' | 'es' | 'fr' | 'de' | 'ja' | 'ar' | 'ru' | 'ko' | 'id' | 'it' | 'nl' | 'tr' | 'pl' | 'sv' | 'fil' | 'ms' | 'ro' | 'uk' | 'el' | 'cs' | 'da' | 'fi' | 'bg' | 'hr' | 'sk' | 'ta';
|
|
31
|
+
/**
|
|
32
|
+
* Whether to disable voice cloning and use a generic voice instead.
|
|
33
|
+
*/
|
|
34
|
+
disableVoiceCloning?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to remove background audio from the dubbed output.
|
|
37
|
+
*/
|
|
38
|
+
dropBackgroundAudio?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The number of speakers in the audio. If not provided, it will be detected
|
|
41
|
+
* automatically.
|
|
42
|
+
*/
|
|
43
|
+
numSpeakers?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace VoiceDubbing {
|
|
46
|
+
export { type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse, type VoiceDubbingCreateParams as VoiceDubbingCreateParams, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=voice-dubbing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.VoiceDubbing = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
class VoiceDubbing extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint will start a new task to dub audio content to a target language.
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.VoiceDubbing = VoiceDubbing;
|
|
16
|
+
//# sourceMappingURL=voice-dubbing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-dubbing.js","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AAZD,oCAYC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
export class VoiceDubbing extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*/
|
|
8
|
+
create(body, options) {
|
|
9
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=voice-dubbing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
export declare class VoiceIsolation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to isolate and enhance voices in audio.
|
|
7
|
+
*/
|
|
8
|
+
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VoiceIsolationCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the newly created task.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
export interface VoiceIsolationCreateParams {
|
|
17
|
+
/**
|
|
18
|
+
* A HTTPS URL or data URI containing the audio file to process. See
|
|
19
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
+
*/
|
|
21
|
+
audioUrl: string;
|
|
22
|
+
/**
|
|
23
|
+
* The model variant to use.
|
|
24
|
+
*/
|
|
25
|
+
model: 'eleven_voice_isolation';
|
|
26
|
+
}
|
|
27
|
+
export declare namespace VoiceIsolation {
|
|
28
|
+
export { type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse, type VoiceIsolationCreateParams as VoiceIsolationCreateParams, };
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=voice-isolation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
export declare class VoiceIsolation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to isolate and enhance voices in audio.
|
|
7
|
+
*/
|
|
8
|
+
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VoiceIsolationCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the newly created task.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
export interface VoiceIsolationCreateParams {
|
|
17
|
+
/**
|
|
18
|
+
* A HTTPS URL or data URI containing the audio file to process. See
|
|
19
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
+
*/
|
|
21
|
+
audioUrl: string;
|
|
22
|
+
/**
|
|
23
|
+
* The model variant to use.
|
|
24
|
+
*/
|
|
25
|
+
model: 'eleven_voice_isolation';
|
|
26
|
+
}
|
|
27
|
+
export declare namespace VoiceIsolation {
|
|
28
|
+
export { type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse, type VoiceIsolationCreateParams as VoiceIsolationCreateParams, };
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=voice-isolation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.VoiceIsolation = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
class VoiceIsolation extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint will start a new task to isolate and enhance voices in audio.
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.VoiceIsolation = VoiceIsolation;
|
|
16
|
+
//# sourceMappingURL=voice-isolation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF;AAZD,wCAYC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
export class VoiceIsolation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to isolate and enhance voices in audio.
|
|
7
|
+
*/
|
|
8
|
+
create(body, options) {
|
|
9
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=voice-isolation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -51,6 +51,16 @@ import {
|
|
|
51
51
|
VideoUpscaleCreateParams,
|
|
52
52
|
VideoUpscaleCreateResponse,
|
|
53
53
|
} from './resources/video-upscale';
|
|
54
|
+
import {
|
|
55
|
+
VoiceDubbing,
|
|
56
|
+
VoiceDubbingCreateParams,
|
|
57
|
+
VoiceDubbingCreateResponse,
|
|
58
|
+
} from './resources/voice-dubbing';
|
|
59
|
+
import {
|
|
60
|
+
VoiceIsolation,
|
|
61
|
+
VoiceIsolationCreateParams,
|
|
62
|
+
VoiceIsolationCreateResponse,
|
|
63
|
+
} from './resources/voice-isolation';
|
|
54
64
|
import { type Fetch } from './internal/builtin-types';
|
|
55
65
|
import { isRunningInBrowser } from './internal/detect-platform';
|
|
56
66
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -773,6 +783,8 @@ export class RunwayML {
|
|
|
773
783
|
characterPerformance: API.CharacterPerformance = new API.CharacterPerformance(this);
|
|
774
784
|
textToSpeech: API.TextToSpeech = new API.TextToSpeech(this);
|
|
775
785
|
soundEffect: API.SoundEffect = new API.SoundEffect(this);
|
|
786
|
+
voiceIsolation: API.VoiceIsolation = new API.VoiceIsolation(this);
|
|
787
|
+
voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
|
|
776
788
|
organization: API.Organization = new API.Organization(this);
|
|
777
789
|
}
|
|
778
790
|
|
|
@@ -785,6 +797,8 @@ RunwayML.VideoUpscale = VideoUpscale;
|
|
|
785
797
|
RunwayML.CharacterPerformance = CharacterPerformance;
|
|
786
798
|
RunwayML.TextToSpeech = TextToSpeech;
|
|
787
799
|
RunwayML.SoundEffect = SoundEffect;
|
|
800
|
+
RunwayML.VoiceIsolation = VoiceIsolation;
|
|
801
|
+
RunwayML.VoiceDubbing = VoiceDubbing;
|
|
788
802
|
RunwayML.Organization = Organization;
|
|
789
803
|
|
|
790
804
|
export declare namespace RunwayML {
|
|
@@ -840,6 +854,18 @@ export declare namespace RunwayML {
|
|
|
840
854
|
type SoundEffectCreateParams as SoundEffectCreateParams,
|
|
841
855
|
};
|
|
842
856
|
|
|
857
|
+
export {
|
|
858
|
+
VoiceIsolation as VoiceIsolation,
|
|
859
|
+
type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse,
|
|
860
|
+
type VoiceIsolationCreateParams as VoiceIsolationCreateParams,
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
export {
|
|
864
|
+
VoiceDubbing as VoiceDubbing,
|
|
865
|
+
type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse,
|
|
866
|
+
type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
|
|
867
|
+
};
|
|
868
|
+
|
|
843
869
|
export {
|
|
844
870
|
Organization as Organization,
|
|
845
871
|
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -35,3 +35,13 @@ export {
|
|
|
35
35
|
type VideoUpscaleCreateResponse,
|
|
36
36
|
type VideoUpscaleCreateParams,
|
|
37
37
|
} from './video-upscale';
|
|
38
|
+
export {
|
|
39
|
+
VoiceDubbing,
|
|
40
|
+
type VoiceDubbingCreateResponse,
|
|
41
|
+
type VoiceDubbingCreateParams,
|
|
42
|
+
} from './voice-dubbing';
|
|
43
|
+
export {
|
|
44
|
+
VoiceIsolation,
|
|
45
|
+
type VoiceIsolationCreateResponse,
|
|
46
|
+
type VoiceIsolationCreateParams,
|
|
47
|
+
} from './voice-isolation';
|
|
@@ -79,6 +79,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
79
79
|
*/
|
|
80
80
|
eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Limits associated with the eleven_voice_dubbing model.
|
|
84
|
+
*/
|
|
85
|
+
eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Limits associated with the eleven_voice_isolation model.
|
|
89
|
+
*/
|
|
90
|
+
eleven_voice_isolation?: Models.ElevenVoiceIsolation;
|
|
91
|
+
|
|
82
92
|
/**
|
|
83
93
|
* Limits associated with the gemini_2.5_flash model.
|
|
84
94
|
*/
|
|
@@ -166,6 +176,36 @@ export namespace OrganizationRetrieveResponse {
|
|
|
166
176
|
maxDailyGenerations: number;
|
|
167
177
|
}
|
|
168
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Limits associated with the eleven_voice_dubbing model.
|
|
181
|
+
*/
|
|
182
|
+
export interface ElevenVoiceDubbing {
|
|
183
|
+
/**
|
|
184
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
185
|
+
*/
|
|
186
|
+
maxConcurrentGenerations: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The maximum number of generations that can be created each day for this model.
|
|
190
|
+
*/
|
|
191
|
+
maxDailyGenerations: number;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Limits associated with the eleven_voice_isolation model.
|
|
196
|
+
*/
|
|
197
|
+
export interface ElevenVoiceIsolation {
|
|
198
|
+
/**
|
|
199
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
200
|
+
*/
|
|
201
|
+
maxConcurrentGenerations: number;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The maximum number of generations that can be created each day for this model.
|
|
205
|
+
*/
|
|
206
|
+
maxDailyGenerations: number;
|
|
207
|
+
}
|
|
208
|
+
|
|
169
209
|
/**
|
|
170
210
|
* Limits associated with the gemini_2.5_flash model.
|
|
171
211
|
*/
|
|
@@ -318,6 +358,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
318
358
|
*/
|
|
319
359
|
eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
|
|
320
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Usage data for the eleven_voice_dubbing model.
|
|
363
|
+
*/
|
|
364
|
+
eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Usage data for the eleven_voice_isolation model.
|
|
368
|
+
*/
|
|
369
|
+
eleven_voice_isolation?: Models.ElevenVoiceIsolation;
|
|
370
|
+
|
|
321
371
|
/**
|
|
322
372
|
* Usage data for the gemini_2.5_flash model.
|
|
323
373
|
*/
|
|
@@ -390,6 +440,26 @@ export namespace OrganizationRetrieveResponse {
|
|
|
390
440
|
dailyGenerations: number;
|
|
391
441
|
}
|
|
392
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Usage data for the eleven_voice_dubbing model.
|
|
445
|
+
*/
|
|
446
|
+
export interface ElevenVoiceDubbing {
|
|
447
|
+
/**
|
|
448
|
+
* The number of generations that have been run for this model in the past day.
|
|
449
|
+
*/
|
|
450
|
+
dailyGenerations: number;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Usage data for the eleven_voice_isolation model.
|
|
455
|
+
*/
|
|
456
|
+
export interface ElevenVoiceIsolation {
|
|
457
|
+
/**
|
|
458
|
+
* The number of generations that have been run for this model in the past day.
|
|
459
|
+
*/
|
|
460
|
+
dailyGenerations: number;
|
|
461
|
+
}
|
|
462
|
+
|
|
393
463
|
/**
|
|
394
464
|
* Usage data for the gemini_2.5_flash model.
|
|
395
465
|
*/
|
|
@@ -481,6 +551,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
481
551
|
| 'act_two'
|
|
482
552
|
| 'eleven_multilingual_v2'
|
|
483
553
|
| 'eleven_text_to_sound_v2'
|
|
554
|
+
| 'eleven_voice_dubbing'
|
|
555
|
+
| 'eleven_voice_isolation'
|
|
484
556
|
| 'gemini_2.5_flash'
|
|
485
557
|
| 'gen3a_turbo'
|
|
486
558
|
| 'gen4_aleph'
|
|
@@ -522,6 +594,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
522
594
|
| 'act_two'
|
|
523
595
|
| 'eleven_multilingual_v2'
|
|
524
596
|
| 'eleven_text_to_sound_v2'
|
|
597
|
+
| 'eleven_voice_dubbing'
|
|
598
|
+
| 'eleven_voice_isolation'
|
|
525
599
|
| 'gemini_2.5_flash'
|
|
526
600
|
| 'gen3a_turbo'
|
|
527
601
|
| 'gen4_aleph'
|