@runwayml/sdk 3.1.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +9 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/lib/polling.d.mts +1 -1
  11. package/lib/polling.d.ts +1 -1
  12. package/package.json +1 -1
  13. package/resources/image-to-video.d.mts +1 -1
  14. package/resources/image-to-video.d.ts +1 -1
  15. package/resources/index.d.mts +3 -0
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +3 -0
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +7 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +3 -0
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/organization.d.mts +92 -2
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +92 -2
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/sound-effect.d.mts +40 -0
  28. package/resources/sound-effect.d.mts.map +1 -0
  29. package/resources/sound-effect.d.ts +40 -0
  30. package/resources/sound-effect.d.ts.map +1 -0
  31. package/resources/sound-effect.js +17 -0
  32. package/resources/sound-effect.js.map +1 -0
  33. package/resources/sound-effect.mjs +13 -0
  34. package/resources/sound-effect.mjs.map +1 -0
  35. package/resources/voice-dubbing.d.mts +48 -0
  36. package/resources/voice-dubbing.d.mts.map +1 -0
  37. package/resources/voice-dubbing.d.ts +48 -0
  38. package/resources/voice-dubbing.d.ts.map +1 -0
  39. package/resources/voice-dubbing.js +16 -0
  40. package/resources/voice-dubbing.js.map +1 -0
  41. package/resources/voice-dubbing.mjs +12 -0
  42. package/resources/voice-dubbing.mjs.map +1 -0
  43. package/resources/voice-isolation.d.mts +30 -0
  44. package/resources/voice-isolation.d.mts.map +1 -0
  45. package/resources/voice-isolation.d.ts +30 -0
  46. package/resources/voice-isolation.d.ts.map +1 -0
  47. package/resources/voice-isolation.js +16 -0
  48. package/resources/voice-isolation.js.map +1 -0
  49. package/resources/voice-isolation.mjs +12 -0
  50. package/resources/voice-isolation.mjs.map +1 -0
  51. package/src/client.ts +35 -0
  52. package/src/lib/polling.ts +1 -1
  53. package/src/resources/image-to-video.ts +1 -1
  54. package/src/resources/index.ts +11 -0
  55. package/src/resources/organization.ts +111 -0
  56. package/src/resources/sound-effect.ts +58 -0
  57. package/src/resources/voice-dubbing.ts +97 -0
  58. package/src/resources/voice-isolation.ts +46 -0
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -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
@@ -32,6 +32,7 @@ import {
32
32
  OrganizationRetrieveUsageParams,
33
33
  OrganizationRetrieveUsageResponse,
34
34
  } from './resources/organization';
35
+ import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from './resources/sound-effect';
35
36
  import { TaskRetrieveResponse, Tasks } from './resources/tasks';
36
37
  import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
37
38
  import {
@@ -50,6 +51,16 @@ import {
50
51
  VideoUpscaleCreateParams,
51
52
  VideoUpscaleCreateResponse,
52
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';
53
64
  import { type Fetch } from './internal/builtin-types';
54
65
  import { isRunningInBrowser } from './internal/detect-platform';
55
66
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
@@ -771,6 +782,9 @@ export class RunwayML {
771
782
  videoUpscale: API.VideoUpscale = new API.VideoUpscale(this);
772
783
  characterPerformance: API.CharacterPerformance = new API.CharacterPerformance(this);
773
784
  textToSpeech: API.TextToSpeech = new API.TextToSpeech(this);
785
+ soundEffect: API.SoundEffect = new API.SoundEffect(this);
786
+ voiceIsolation: API.VoiceIsolation = new API.VoiceIsolation(this);
787
+ voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
774
788
  organization: API.Organization = new API.Organization(this);
775
789
  }
776
790
 
@@ -782,6 +796,9 @@ RunwayML.TextToImage = TextToImage;
782
796
  RunwayML.VideoUpscale = VideoUpscale;
783
797
  RunwayML.CharacterPerformance = CharacterPerformance;
784
798
  RunwayML.TextToSpeech = TextToSpeech;
799
+ RunwayML.SoundEffect = SoundEffect;
800
+ RunwayML.VoiceIsolation = VoiceIsolation;
801
+ RunwayML.VoiceDubbing = VoiceDubbing;
785
802
  RunwayML.Organization = Organization;
786
803
 
787
804
  export declare namespace RunwayML {
@@ -831,6 +848,24 @@ export declare namespace RunwayML {
831
848
  type TextToSpeechCreateParams as TextToSpeechCreateParams,
832
849
  };
833
850
 
851
+ export {
852
+ SoundEffect as SoundEffect,
853
+ type SoundEffectCreateResponse as SoundEffectCreateResponse,
854
+ type SoundEffectCreateParams as SoundEffectCreateParams,
855
+ };
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
+
834
869
  export {
835
870
  Organization as Organization,
836
871
  type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
@@ -1,5 +1,5 @@
1
1
  import type { RunwayML } from '../client';
2
- import { APIPromise } from '../api-promise';
2
+ import { APIPromise } from '../core/api-promise';
3
3
  import { TaskRetrieveResponse } from '../resources/tasks';
4
4
 
5
5
  const POLL_TIME = 6000; // 6 seconds
@@ -73,7 +73,7 @@ export interface ImageToVideoCreateParams {
73
73
 
74
74
  /**
75
75
  * The number of seconds of duration for the output video. `veo3` requires a
76
- * duration of 8. `gen3a_turbo` requires a duration of 5 or 10. gen4_turbo must
76
+ * duration of 8. `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must
77
77
  * specify a duration of 2-10 seconds.
78
78
  */
79
79
  duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
@@ -16,6 +16,7 @@ export {
16
16
  type OrganizationRetrieveUsageResponse,
17
17
  type OrganizationRetrieveUsageParams,
18
18
  } from './organization';
19
+ export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
19
20
  export { Tasks, type TaskRetrieveResponse } from './tasks';
20
21
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
21
22
  export {
@@ -34,3 +35,13 @@ export {
34
35
  type VideoUpscaleCreateResponse,
35
36
  type VideoUpscaleCreateParams,
36
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';
@@ -74,6 +74,21 @@ export namespace OrganizationRetrieveResponse {
74
74
  */
75
75
  eleven_multilingual_v2?: Models.ElevenMultilingualV2;
76
76
 
77
+ /**
78
+ * Limits associated with the eleven_text_to_sound_v2 model.
79
+ */
80
+ eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
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
+
77
92
  /**
78
93
  * Limits associated with the gemini_2.5_flash model.
79
94
  */
@@ -146,6 +161,51 @@ export namespace OrganizationRetrieveResponse {
146
161
  maxDailyGenerations: number;
147
162
  }
148
163
 
164
+ /**
165
+ * Limits associated with the eleven_text_to_sound_v2 model.
166
+ */
167
+ export interface ElevenTextToSoundV2 {
168
+ /**
169
+ * The maximum number of generations that can be run concurrently for this model.
170
+ */
171
+ maxConcurrentGenerations: number;
172
+
173
+ /**
174
+ * The maximum number of generations that can be created each day for this model.
175
+ */
176
+ maxDailyGenerations: number;
177
+ }
178
+
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
+
149
209
  /**
150
210
  * Limits associated with the gemini_2.5_flash model.
151
211
  */
@@ -293,6 +353,21 @@ export namespace OrganizationRetrieveResponse {
293
353
  */
294
354
  eleven_multilingual_v2?: Models.ElevenMultilingualV2;
295
355
 
356
+ /**
357
+ * Usage data for the eleven_text_to_sound_v2 model.
358
+ */
359
+ eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
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
+
296
371
  /**
297
372
  * Usage data for the gemini_2.5_flash model.
298
373
  */
@@ -355,6 +430,36 @@ export namespace OrganizationRetrieveResponse {
355
430
  dailyGenerations: number;
356
431
  }
357
432
 
433
+ /**
434
+ * Usage data for the eleven_text_to_sound_v2 model.
435
+ */
436
+ export interface ElevenTextToSoundV2 {
437
+ /**
438
+ * The number of generations that have been run for this model in the past day.
439
+ */
440
+ dailyGenerations: number;
441
+ }
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
+
358
463
  /**
359
464
  * Usage data for the gemini_2.5_flash model.
360
465
  */
@@ -445,6 +550,9 @@ export interface OrganizationRetrieveUsageResponse {
445
550
  models: Array<
446
551
  | 'act_two'
447
552
  | 'eleven_multilingual_v2'
553
+ | 'eleven_text_to_sound_v2'
554
+ | 'eleven_voice_dubbing'
555
+ | 'eleven_voice_isolation'
448
556
  | 'gemini_2.5_flash'
449
557
  | 'gen3a_turbo'
450
558
  | 'gen4_aleph'
@@ -485,6 +593,9 @@ export namespace OrganizationRetrieveUsageResponse {
485
593
  model:
486
594
  | 'act_two'
487
595
  | 'eleven_multilingual_v2'
596
+ | 'eleven_text_to_sound_v2'
597
+ | 'eleven_voice_dubbing'
598
+ | 'eleven_voice_isolation'
488
599
  | 'gemini_2.5_flash'
489
600
  | 'gen3a_turbo'
490
601
  | 'gen4_aleph'
@@ -0,0 +1,58 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class SoundEffect extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to generate sound effects from a text
10
+ * description.
11
+ */
12
+ create(
13
+ body: SoundEffectCreateParams,
14
+ options?: RequestOptions,
15
+ ): APIPromiseWithAwaitableTask<SoundEffectCreateResponse> {
16
+ return wrapAsWaitableResource<SoundEffectCreateResponse>(this._client)(
17
+ this._client.post('/v1/sound_effect', { body, ...options }),
18
+ );
19
+ }
20
+ }
21
+
22
+ export interface SoundEffectCreateResponse {
23
+ /**
24
+ * The ID of the newly created task.
25
+ */
26
+ id: string;
27
+ }
28
+
29
+ export interface SoundEffectCreateParams {
30
+ /**
31
+ * The model variant to use.
32
+ */
33
+ model: 'eleven_text_to_sound_v2';
34
+
35
+ /**
36
+ * A text description of the sound effect to generate.
37
+ */
38
+ promptText: string;
39
+
40
+ /**
41
+ * The duration of the sound effect in seconds, between 0.5 and 30 seconds. If not
42
+ * provided, the duration will be determined automatically based on the text
43
+ * description.
44
+ */
45
+ duration?: number;
46
+
47
+ /**
48
+ * Whether the sound effect should be designed to loop seamlessly.
49
+ */
50
+ loop?: boolean;
51
+ }
52
+
53
+ export declare namespace SoundEffect {
54
+ export {
55
+ type SoundEffectCreateResponse as SoundEffectCreateResponse,
56
+ type SoundEffectCreateParams as SoundEffectCreateParams,
57
+ };
58
+ }
@@ -0,0 +1,97 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class VoiceDubbing extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to dub audio content to a target language.
10
+ */
11
+ create(
12
+ body: VoiceDubbingCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceDubbingCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_dubbing', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceDubbingCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceDubbingCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to dub. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUri: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_dubbing';
39
+
40
+ /**
41
+ * The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
42
+ * French).
43
+ */
44
+ targetLang:
45
+ | 'en'
46
+ | 'hi'
47
+ | 'pt'
48
+ | 'zh'
49
+ | 'es'
50
+ | 'fr'
51
+ | 'de'
52
+ | 'ja'
53
+ | 'ar'
54
+ | 'ru'
55
+ | 'ko'
56
+ | 'id'
57
+ | 'it'
58
+ | 'nl'
59
+ | 'tr'
60
+ | 'pl'
61
+ | 'sv'
62
+ | 'fil'
63
+ | 'ms'
64
+ | 'ro'
65
+ | 'uk'
66
+ | 'el'
67
+ | 'cs'
68
+ | 'da'
69
+ | 'fi'
70
+ | 'bg'
71
+ | 'hr'
72
+ | 'sk'
73
+ | 'ta';
74
+
75
+ /**
76
+ * Whether to disable voice cloning and use a generic voice instead.
77
+ */
78
+ disableVoiceCloning?: boolean;
79
+
80
+ /**
81
+ * Whether to remove background audio from the dubbed output.
82
+ */
83
+ dropBackgroundAudio?: boolean;
84
+
85
+ /**
86
+ * The number of speakers in the audio. If not provided, it will be detected
87
+ * automatically.
88
+ */
89
+ numSpeakers?: number;
90
+ }
91
+
92
+ export declare namespace VoiceDubbing {
93
+ export {
94
+ type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse,
95
+ type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
96
+ };
97
+ }
@@ -0,0 +1,46 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class VoiceIsolation extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to isolate and enhance voices in audio.
10
+ */
11
+ create(
12
+ body: VoiceIsolationCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceIsolationCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_isolation', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceIsolationCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceIsolationCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to process. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUrl: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_isolation';
39
+ }
40
+
41
+ export declare namespace VoiceIsolation {
42
+ export {
43
+ type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse,
44
+ type VoiceIsolationCreateParams as VoiceIsolationCreateParams,
45
+ };
46
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.1.0'; // x-release-please-version
1
+ export const VERSION = '3.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.1.0";
1
+ export declare const VERSION = "3.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.1.0";
1
+ export declare const VERSION = "3.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.1.0'; // x-release-please-version
4
+ exports.VERSION = '3.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.1.0'; // x-release-please-version
1
+ export const VERSION = '3.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map