@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-effect.d.ts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC
|
|
1
|
+
{"version":3,"file":"sound-effect.d.ts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class SpeechToSpeech extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to convert speech from one voice to another
|
|
7
|
+
* in audio or video.
|
|
8
|
+
*/
|
|
9
|
+
create(body: SpeechToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<SpeechToSpeechCreateResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface SpeechToSpeechCreateResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SpeechToSpeechCreateParams {
|
|
15
|
+
media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
|
|
16
|
+
model: 'eleven_multilingual_sts_v2';
|
|
17
|
+
/**
|
|
18
|
+
* The voice to use for the generated speech.
|
|
19
|
+
*/
|
|
20
|
+
voice: SpeechToSpeechCreateParams.Voice;
|
|
21
|
+
removeBackgroundNoise?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace SpeechToSpeechCreateParams {
|
|
24
|
+
interface Audio {
|
|
25
|
+
type: 'audio';
|
|
26
|
+
/**
|
|
27
|
+
* A data URI containing encoded audio.
|
|
28
|
+
*/
|
|
29
|
+
uri: string;
|
|
30
|
+
}
|
|
31
|
+
interface Video {
|
|
32
|
+
type: 'video';
|
|
33
|
+
/**
|
|
34
|
+
* A data URI containing an encoded video.
|
|
35
|
+
*/
|
|
36
|
+
uri: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The voice to use for the generated speech.
|
|
40
|
+
*/
|
|
41
|
+
interface Voice {
|
|
42
|
+
/**
|
|
43
|
+
* The preset voice ID to use for the generated speech.
|
|
44
|
+
*/
|
|
45
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
46
|
+
type: 'runway-preset';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export declare namespace SpeechToSpeech {
|
|
50
|
+
export { type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams, };
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=speech-to-speech.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
2
|
+
import { APIResource } from "../core/resource.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class SpeechToSpeech extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to convert speech from one voice to another
|
|
7
|
+
* in audio or video.
|
|
8
|
+
*/
|
|
9
|
+
create(body: SpeechToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<SpeechToSpeechCreateResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface SpeechToSpeechCreateResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SpeechToSpeechCreateParams {
|
|
15
|
+
media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
|
|
16
|
+
model: 'eleven_multilingual_sts_v2';
|
|
17
|
+
/**
|
|
18
|
+
* The voice to use for the generated speech.
|
|
19
|
+
*/
|
|
20
|
+
voice: SpeechToSpeechCreateParams.Voice;
|
|
21
|
+
removeBackgroundNoise?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace SpeechToSpeechCreateParams {
|
|
24
|
+
interface Audio {
|
|
25
|
+
type: 'audio';
|
|
26
|
+
/**
|
|
27
|
+
* A data URI containing encoded audio.
|
|
28
|
+
*/
|
|
29
|
+
uri: string;
|
|
30
|
+
}
|
|
31
|
+
interface Video {
|
|
32
|
+
type: 'video';
|
|
33
|
+
/**
|
|
34
|
+
* A data URI containing an encoded video.
|
|
35
|
+
*/
|
|
36
|
+
uri: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The voice to use for the generated speech.
|
|
40
|
+
*/
|
|
41
|
+
interface Voice {
|
|
42
|
+
/**
|
|
43
|
+
* The preset voice ID to use for the generated speech.
|
|
44
|
+
*/
|
|
45
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
46
|
+
type: 'runway-preset';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export declare namespace SpeechToSpeech {
|
|
50
|
+
export { type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams, };
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=speech-to-speech.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpeechToSpeech = void 0;
|
|
4
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5
|
+
const polling_1 = require("../lib/polling.js");
|
|
6
|
+
const resource_1 = require("../core/resource.js");
|
|
7
|
+
class SpeechToSpeech extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint will start a new task to convert speech from one voice to another
|
|
10
|
+
* in audio or video.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/speech_to_speech', { body, ...options }));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.SpeechToSpeech = SpeechToSpeech;
|
|
17
|
+
//# sourceMappingURL=speech-to-speech.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speech-to-speech.js","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":";;;AAAA,sFAAsF;AACtF,+CAAqF;AACrF,kDAA+C;AAG/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAbD,wCAaC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class SpeechToSpeech extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint will start a new task to convert speech from one voice to another
|
|
6
|
+
* in audio or video.
|
|
7
|
+
*/
|
|
8
|
+
create(body, options) {
|
|
9
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/speech_to_speech', { body, ...options }));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=speech-to-speech.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speech-to-speech.mjs","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAA+B,sBAAsB,EAAE;OACvD,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -8,15 +8,9 @@ export declare class TextToSpeech extends APIResource {
|
|
|
8
8
|
create(body: TextToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToSpeechCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface TextToSpeechCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
11
|
id: string;
|
|
15
12
|
}
|
|
16
13
|
export interface TextToSpeechCreateParams {
|
|
17
|
-
/**
|
|
18
|
-
* The model variant to use.
|
|
19
|
-
*/
|
|
20
14
|
model: 'eleven_multilingual_v2';
|
|
21
15
|
/**
|
|
22
16
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -34,7 +28,7 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
34
28
|
*/
|
|
35
29
|
interface Voice {
|
|
36
30
|
/**
|
|
37
|
-
* The
|
|
31
|
+
* The preset voice ID to use for the generated speech.
|
|
38
32
|
*/
|
|
39
33
|
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
40
34
|
type: 'runway-preset';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.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
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/text-to-speech.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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;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,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -8,15 +8,9 @@ export declare class TextToSpeech extends APIResource {
|
|
|
8
8
|
create(body: TextToSpeechCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToSpeechCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface TextToSpeechCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
11
|
id: string;
|
|
15
12
|
}
|
|
16
13
|
export interface TextToSpeechCreateParams {
|
|
17
|
-
/**
|
|
18
|
-
* The model variant to use.
|
|
19
|
-
*/
|
|
20
14
|
model: 'eleven_multilingual_v2';
|
|
21
15
|
/**
|
|
22
16
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -34,7 +28,7 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
34
28
|
*/
|
|
35
29
|
interface Voice {
|
|
36
30
|
/**
|
|
37
|
-
* The
|
|
31
|
+
* The preset voice ID to use for the generated speech.
|
|
38
32
|
*/
|
|
39
33
|
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
40
34
|
type: 'runway-preset';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.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
|
|
1
|
+
{"version":3,"file":"text-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/text-to-speech.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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,wBAAwB,CAAC;IAEhC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC;CACvC;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;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,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -15,13 +15,14 @@ export interface TextToVideoCreateResponse {
|
|
|
15
15
|
}
|
|
16
16
|
export interface TextToVideoCreateParams {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* `veo3` videos must be 8 seconds long. `veo3.1` and `veo3.1_fast` videos must be
|
|
19
|
+
* 4, 6, or 8 seconds long.
|
|
19
20
|
*/
|
|
20
|
-
duration: 8;
|
|
21
|
+
duration: 4 | 6 | 8;
|
|
21
22
|
/**
|
|
22
23
|
* The model variant to use.
|
|
23
24
|
*/
|
|
24
|
-
model: 'veo3';
|
|
25
|
+
model: 'veo3.1' | 'veo3.1_fast' | 'veo3';
|
|
25
26
|
/**
|
|
26
27
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
27
28
|
* should describe in detail what should appear in the output.
|
|
@@ -30,7 +31,7 @@ export interface TextToVideoCreateParams {
|
|
|
30
31
|
/**
|
|
31
32
|
* A string representing the aspect ratio of the output video.
|
|
32
33
|
*/
|
|
33
|
-
ratio: '1280:720' | '720:1280';
|
|
34
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
34
35
|
/**
|
|
35
36
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
36
37
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC
|
|
1
|
+
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;IAEzC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;IAE3D;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -15,13 +15,14 @@ export interface TextToVideoCreateResponse {
|
|
|
15
15
|
}
|
|
16
16
|
export interface TextToVideoCreateParams {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* `veo3` videos must be 8 seconds long. `veo3.1` and `veo3.1_fast` videos must be
|
|
19
|
+
* 4, 6, or 8 seconds long.
|
|
19
20
|
*/
|
|
20
|
-
duration: 8;
|
|
21
|
+
duration: 4 | 6 | 8;
|
|
21
22
|
/**
|
|
22
23
|
* The model variant to use.
|
|
23
24
|
*/
|
|
24
|
-
model: 'veo3';
|
|
25
|
+
model: 'veo3.1' | 'veo3.1_fast' | 'veo3';
|
|
25
26
|
/**
|
|
26
27
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
27
28
|
* should describe in detail what should appear in the output.
|
|
@@ -30,7 +31,7 @@ export interface TextToVideoCreateParams {
|
|
|
30
31
|
/**
|
|
31
32
|
* A string representing the aspect ratio of the output video.
|
|
32
33
|
*/
|
|
33
|
-
ratio: '1280:720' | '720:1280';
|
|
34
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
34
35
|
/**
|
|
35
36
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
36
37
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC
|
|
1
|
+
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;IAEzC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;IAE3D;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -8,20 +8,13 @@ export declare class VoiceDubbing extends APIResource {
|
|
|
8
8
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface VoiceDubbingCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
11
|
id: string;
|
|
15
12
|
}
|
|
16
13
|
export interface VoiceDubbingCreateParams {
|
|
17
14
|
/**
|
|
18
|
-
* A
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
15
|
+
* A data URI containing encoded audio.
|
|
20
16
|
*/
|
|
21
17
|
audioUri: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
24
|
-
*/
|
|
25
18
|
model: 'eleven_voice_dubbing';
|
|
26
19
|
/**
|
|
27
20
|
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
@@ -1 +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
|
|
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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,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"}
|
|
@@ -8,20 +8,13 @@ export declare class VoiceDubbing extends APIResource {
|
|
|
8
8
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface VoiceDubbingCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
11
|
id: string;
|
|
15
12
|
}
|
|
16
13
|
export interface VoiceDubbingCreateParams {
|
|
17
14
|
/**
|
|
18
|
-
* A
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
15
|
+
* A data URI containing encoded audio.
|
|
20
16
|
*/
|
|
21
17
|
audioUri: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
24
|
-
*/
|
|
25
18
|
model: 'eleven_voice_dubbing';
|
|
26
19
|
/**
|
|
27
20
|
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
@@ -1 +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
|
|
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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,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"}
|
|
@@ -3,25 +3,19 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio.
|
|
7
8
|
*/
|
|
8
9
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
10
|
}
|
|
10
11
|
export interface VoiceIsolationCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
12
|
id: string;
|
|
15
13
|
}
|
|
16
14
|
export interface VoiceIsolationCreateParams {
|
|
17
15
|
/**
|
|
18
|
-
* A
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
-
*/
|
|
21
|
-
audioUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
16
|
+
* A data URI containing encoded audio.
|
|
24
17
|
*/
|
|
18
|
+
audioUri: string;
|
|
25
19
|
model: 'eleven_voice_isolation';
|
|
26
20
|
}
|
|
27
21
|
export declare namespace VoiceIsolation {
|
|
@@ -1 +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
|
|
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;;;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,QAAQ,EAAE,MAAM,CAAC;IAEjB,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"}
|
|
@@ -3,25 +3,19 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio.
|
|
7
8
|
*/
|
|
8
9
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
10
|
}
|
|
10
11
|
export interface VoiceIsolationCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
12
|
id: string;
|
|
15
13
|
}
|
|
16
14
|
export interface VoiceIsolationCreateParams {
|
|
17
15
|
/**
|
|
18
|
-
* A
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
-
*/
|
|
21
|
-
audioUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
16
|
+
* A data URI containing encoded audio.
|
|
24
17
|
*/
|
|
18
|
+
audioUri: string;
|
|
25
19
|
model: 'eleven_voice_isolation';
|
|
26
20
|
}
|
|
27
21
|
export declare namespace VoiceIsolation {
|
|
@@ -1 +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
|
|
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;;;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,QAAQ,EAAE,MAAM,CAAC;IAEjB,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"}
|
|
@@ -6,7 +6,8 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
7
|
class VoiceIsolation extends resource_1.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(body, options) {
|
|
12
13
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -1 +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
|
|
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;;;OAGG;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;AAbD,wCAaC"}
|
|
@@ -3,7 +3,8 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
4
|
export class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio.
|
|
7
8
|
*/
|
|
8
9
|
create(body, options) {
|
|
9
10
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -1 +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
|
|
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;;;OAGG;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
|
@@ -33,6 +33,11 @@ import {
|
|
|
33
33
|
OrganizationRetrieveUsageResponse,
|
|
34
34
|
} from './resources/organization';
|
|
35
35
|
import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from './resources/sound-effect';
|
|
36
|
+
import {
|
|
37
|
+
SpeechToSpeech,
|
|
38
|
+
SpeechToSpeechCreateParams,
|
|
39
|
+
SpeechToSpeechCreateResponse,
|
|
40
|
+
} from './resources/speech-to-speech';
|
|
36
41
|
import { TaskRetrieveResponse, Tasks } from './resources/tasks';
|
|
37
42
|
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
|
|
38
43
|
import {
|
|
@@ -785,6 +790,7 @@ export class RunwayML {
|
|
|
785
790
|
soundEffect: API.SoundEffect = new API.SoundEffect(this);
|
|
786
791
|
voiceIsolation: API.VoiceIsolation = new API.VoiceIsolation(this);
|
|
787
792
|
voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
|
|
793
|
+
speechToSpeech: API.SpeechToSpeech = new API.SpeechToSpeech(this);
|
|
788
794
|
organization: API.Organization = new API.Organization(this);
|
|
789
795
|
}
|
|
790
796
|
|
|
@@ -799,6 +805,7 @@ RunwayML.TextToSpeech = TextToSpeech;
|
|
|
799
805
|
RunwayML.SoundEffect = SoundEffect;
|
|
800
806
|
RunwayML.VoiceIsolation = VoiceIsolation;
|
|
801
807
|
RunwayML.VoiceDubbing = VoiceDubbing;
|
|
808
|
+
RunwayML.SpeechToSpeech = SpeechToSpeech;
|
|
802
809
|
RunwayML.Organization = Organization;
|
|
803
810
|
|
|
804
811
|
export declare namespace RunwayML {
|
|
@@ -866,6 +873,12 @@ export declare namespace RunwayML {
|
|
|
866
873
|
type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
|
|
867
874
|
};
|
|
868
875
|
|
|
876
|
+
export {
|
|
877
|
+
SpeechToSpeech as SpeechToSpeech,
|
|
878
|
+
type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse,
|
|
879
|
+
type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams,
|
|
880
|
+
};
|
|
881
|
+
|
|
869
882
|
export {
|
|
870
883
|
Organization as Organization,
|
|
871
884
|
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
|
|
@@ -20,9 +20,6 @@ export class CharacterPerformance extends APIResource {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface CharacterPerformanceCreateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the newly created task.
|
|
25
|
-
*/
|
|
26
23
|
id: string;
|
|
27
24
|
}
|
|
28
25
|
|
|
@@ -31,18 +28,13 @@ export interface CharacterPerformanceCreateParams {
|
|
|
31
28
|
* The character to control. You can either provide a video or an image. A visually
|
|
32
29
|
* recognizable face must be visible and stay within the frame.
|
|
33
30
|
*/
|
|
34
|
-
character: CharacterPerformanceCreateParams.
|
|
31
|
+
character: CharacterPerformanceCreateParams.Image | CharacterPerformanceCreateParams.Video;
|
|
35
32
|
|
|
36
|
-
/**
|
|
37
|
-
* The model variant to use.
|
|
38
|
-
*/
|
|
39
33
|
model: 'act_two';
|
|
40
34
|
|
|
41
35
|
/**
|
|
42
|
-
* The
|
|
36
|
+
* The reference video containing the performance to apply to the character.
|
|
43
37
|
*/
|
|
44
|
-
ratio: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
45
|
-
|
|
46
38
|
reference: CharacterPerformanceCreateParams.Reference;
|
|
47
39
|
|
|
48
40
|
/**
|
|
@@ -64,53 +56,49 @@ export interface CharacterPerformanceCreateParams {
|
|
|
64
56
|
expressionIntensity?: number;
|
|
65
57
|
|
|
66
58
|
/**
|
|
67
|
-
*
|
|
68
|
-
* get different results for the same other request parameters. Using the same seed
|
|
69
|
-
* integer for an identical request will produce similar results.
|
|
59
|
+
* The resolution of the output video.
|
|
70
60
|
*/
|
|
61
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
62
|
+
|
|
71
63
|
seed?: number;
|
|
72
64
|
}
|
|
73
65
|
|
|
74
66
|
export namespace CharacterPerformanceCreateParams {
|
|
75
67
|
/**
|
|
76
|
-
*
|
|
77
|
-
* video performance in its original
|
|
78
|
-
* character's own movements.
|
|
68
|
+
* An image of your character. In the output, the character will use the reference
|
|
69
|
+
* video performance in its original static environment.
|
|
79
70
|
*/
|
|
80
|
-
export interface
|
|
81
|
-
type: '
|
|
71
|
+
export interface Image {
|
|
72
|
+
type: 'image';
|
|
82
73
|
|
|
83
74
|
/**
|
|
84
|
-
* A
|
|
85
|
-
* character. See [our docs](/assets/inputs#videos) on video inputs for more
|
|
86
|
-
* information.
|
|
75
|
+
* A data URI containing an encoded image.
|
|
87
76
|
*/
|
|
88
77
|
uri: string;
|
|
89
78
|
}
|
|
90
79
|
|
|
91
80
|
/**
|
|
92
|
-
*
|
|
93
|
-
* video performance in its original
|
|
81
|
+
* A video of your character. In the output, the character will use the reference
|
|
82
|
+
* video performance in its original animated environment and some of the
|
|
83
|
+
* character's own movements.
|
|
94
84
|
*/
|
|
95
|
-
export interface
|
|
96
|
-
type: '
|
|
85
|
+
export interface Video {
|
|
86
|
+
type: 'video';
|
|
97
87
|
|
|
98
88
|
/**
|
|
99
|
-
* A
|
|
100
|
-
* character. See [our docs](/assets/inputs#images) on image inputs for more
|
|
101
|
-
* information.
|
|
89
|
+
* A data URI containing an encoded video.
|
|
102
90
|
*/
|
|
103
91
|
uri: string;
|
|
104
92
|
}
|
|
105
93
|
|
|
94
|
+
/**
|
|
95
|
+
* The reference video containing the performance to apply to the character.
|
|
96
|
+
*/
|
|
106
97
|
export interface Reference {
|
|
107
98
|
type: 'video';
|
|
108
99
|
|
|
109
100
|
/**
|
|
110
|
-
* A
|
|
111
|
-
* performing in the manner that you would like your character to perform. The
|
|
112
|
-
* video must be between 3 and 30 seconds in duration. See
|
|
113
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
101
|
+
* A data URI containing an encoded video.
|
|
114
102
|
*/
|
|
115
103
|
uri: string;
|
|
116
104
|
}
|
|
@@ -119,10 +107,6 @@ export namespace CharacterPerformanceCreateParams {
|
|
|
119
107
|
* Settings that affect the behavior of the content moderation system.
|
|
120
108
|
*/
|
|
121
109
|
export interface ContentModeration {
|
|
122
|
-
/**
|
|
123
|
-
* When set to `low`, the content moderation system will be less strict about
|
|
124
|
-
* preventing generations that include recognizable public figures.
|
|
125
|
-
*/
|
|
126
110
|
publicFigureThreshold?: 'auto' | 'low';
|
|
127
111
|
}
|
|
128
112
|
}
|