@runwayml/sdk 3.4.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/character-performance.d.mts +18 -34
  12. package/resources/character-performance.d.mts.map +1 -1
  13. package/resources/character-performance.d.ts +18 -34
  14. package/resources/character-performance.d.ts.map +1 -1
  15. package/resources/index.d.mts +1 -0
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +1 -0
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +3 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +1 -0
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/organization.d.mts +32 -2
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +32 -2
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/sound-effect.d.mts +1 -7
  28. package/resources/sound-effect.d.mts.map +1 -1
  29. package/resources/sound-effect.d.ts +1 -7
  30. package/resources/sound-effect.d.ts.map +1 -1
  31. package/resources/speech-to-speech.d.mts +52 -0
  32. package/resources/speech-to-speech.d.mts.map +1 -0
  33. package/resources/speech-to-speech.d.ts +52 -0
  34. package/resources/speech-to-speech.d.ts.map +1 -0
  35. package/resources/speech-to-speech.js +17 -0
  36. package/resources/speech-to-speech.js.map +1 -0
  37. package/resources/speech-to-speech.mjs +12 -0
  38. package/resources/speech-to-speech.mjs.map +1 -0
  39. package/resources/text-to-speech.d.mts +1 -7
  40. package/resources/text-to-speech.d.mts.map +1 -1
  41. package/resources/text-to-speech.d.ts +1 -7
  42. package/resources/text-to-speech.d.ts.map +1 -1
  43. package/resources/voice-dubbing.d.mts +1 -8
  44. package/resources/voice-dubbing.d.mts.map +1 -1
  45. package/resources/voice-dubbing.d.ts +1 -8
  46. package/resources/voice-dubbing.d.ts.map +1 -1
  47. package/resources/voice-isolation.d.mts +4 -10
  48. package/resources/voice-isolation.d.mts.map +1 -1
  49. package/resources/voice-isolation.d.ts +4 -10
  50. package/resources/voice-isolation.d.ts.map +1 -1
  51. package/resources/voice-isolation.js +2 -1
  52. package/resources/voice-isolation.js.map +1 -1
  53. package/resources/voice-isolation.mjs +2 -1
  54. package/resources/voice-isolation.mjs.map +1 -1
  55. package/src/client.ts +13 -0
  56. package/src/resources/character-performance.ts +20 -36
  57. package/src/resources/index.ts +5 -0
  58. package/src/resources/organization.ts +37 -0
  59. package/src/resources/sound-effect.ts +1 -7
  60. package/src/resources/speech-to-speech.ts +124 -0
  61. package/src/resources/text-to-speech.ts +1 -7
  62. package/src/resources/voice-dubbing.ts +1 -8
  63. package/src/resources/voice-isolation.ts +4 -10
  64. package/src/version.ts +1 -1
  65. package/version.d.mts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -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;;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"}
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 and enhance voices in audio.
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 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.
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;;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"}
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 and enhance voices in audio.
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 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.
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;;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"}
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 and enhance voices in audio.
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;;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"}
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 and enhance voices in audio.
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;;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"}
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.Video | CharacterPerformanceCreateParams.Image;
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 resolution of the output video.
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
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
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
- * A video of your character. In the output, the character will use the reference
77
- * video performance in its original animated environment and some of the
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 Video {
81
- type: 'video';
71
+ export interface Image {
72
+ type: 'image';
82
73
 
83
74
  /**
84
- * A HTTPS URL pointing to a video or a data URI containing a video of your
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
- * An image of your character. In the output, the character will use the reference
93
- * video performance in its original static environment.
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 Image {
96
- type: 'image';
85
+ export interface Video {
86
+ type: 'video';
97
87
 
98
88
  /**
99
- * A HTTPS URL pointing to an image or a data URI containing an image of your
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 HTTPS URL pointing to a video or a data URI containing a video of a person
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
  }
@@ -17,6 +17,11 @@ export {
17
17
  type OrganizationRetrieveUsageParams,
18
18
  } from './organization';
19
19
  export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
20
+ export {
21
+ SpeechToSpeech,
22
+ type SpeechToSpeechCreateResponse,
23
+ type SpeechToSpeechCreateParams,
24
+ } from './speech-to-speech';
20
25
  export { Tasks, type TaskRetrieveResponse } from './tasks';
21
26
  export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
22
27
  export {
@@ -69,6 +69,11 @@ export namespace OrganizationRetrieveResponse {
69
69
  */
70
70
  act_two?: Models.ActTwo;
71
71
 
72
+ /**
73
+ * Limits associated with the eleven_multilingual_sts_v2 model.
74
+ */
75
+ eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
76
+
72
77
  /**
73
78
  * Limits associated with the eleven_multilingual_v2 model.
74
79
  */
@@ -156,6 +161,21 @@ export namespace OrganizationRetrieveResponse {
156
161
  maxDailyGenerations: number;
157
162
  }
158
163
 
164
+ /**
165
+ * Limits associated with the eleven_multilingual_sts_v2 model.
166
+ */
167
+ export interface ElevenMultilingualStsV2 {
168
+ /**
169
+ * The maximum number of generations that can be run concurrently for this model.
170
+ */
171
+ maxConcurrentGenerations: number;
172
+
173
+ /**
174
+ * The maximum number of generations that can be created each day for this model.
175
+ */
176
+ maxDailyGenerations: number;
177
+ }
178
+
159
179
  /**
160
180
  * Limits associated with the eleven_multilingual_v2 model.
161
181
  */
@@ -388,6 +408,11 @@ export namespace OrganizationRetrieveResponse {
388
408
  */
389
409
  act_two?: Models.ActTwo;
390
410
 
411
+ /**
412
+ * Usage data for the eleven_multilingual_sts_v2 model.
413
+ */
414
+ eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
415
+
391
416
  /**
392
417
  * Usage data for the eleven_multilingual_v2 model.
393
418
  */
@@ -470,6 +495,16 @@ export namespace OrganizationRetrieveResponse {
470
495
  dailyGenerations: number;
471
496
  }
472
497
 
498
+ /**
499
+ * Usage data for the eleven_multilingual_sts_v2 model.
500
+ */
501
+ export interface ElevenMultilingualStsV2 {
502
+ /**
503
+ * The number of generations that have been run for this model in the past day.
504
+ */
505
+ dailyGenerations: number;
506
+ }
507
+
473
508
  /**
474
509
  * Usage data for the eleven_multilingual_v2 model.
475
510
  */
@@ -619,6 +654,7 @@ export interface OrganizationRetrieveUsageResponse {
619
654
  */
620
655
  models: Array<
621
656
  | 'act_two'
657
+ | 'eleven_multilingual_sts_v2'
622
658
  | 'eleven_multilingual_v2'
623
659
  | 'eleven_text_to_sound_v2'
624
660
  | 'eleven_voice_dubbing'
@@ -664,6 +700,7 @@ export namespace OrganizationRetrieveUsageResponse {
664
700
  */
665
701
  model:
666
702
  | 'act_two'
703
+ | 'eleven_multilingual_sts_v2'
667
704
  | 'eleven_multilingual_v2'
668
705
  | 'eleven_text_to_sound_v2'
669
706
  | 'eleven_voice_dubbing'
@@ -20,16 +20,10 @@ export class SoundEffect extends APIResource {
20
20
  }
21
21
 
22
22
  export interface SoundEffectCreateResponse {
23
- /**
24
- * The ID of the newly created task.
25
- */
26
23
  id: string;
27
24
  }
28
25
 
29
26
  export interface SoundEffectCreateParams {
30
- /**
31
- * The model variant to use.
32
- */
33
27
  model: 'eleven_text_to_sound_v2';
34
28
 
35
29
  /**
@@ -45,7 +39,7 @@ export interface SoundEffectCreateParams {
45
39
  duration?: number;
46
40
 
47
41
  /**
48
- * Whether the sound effect should be designed to loop seamlessly.
42
+ * Whether the output sound effect should be designed to loop seamlessly.
49
43
  */
50
44
  loop?: boolean;
51
45
  }
@@ -0,0 +1,124 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+
6
+ export class SpeechToSpeech extends APIResource {
7
+ /**
8
+ * This endpoint will start a new task to convert speech from one voice to another
9
+ * in audio or video.
10
+ */
11
+ create(
12
+ body: SpeechToSpeechCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<SpeechToSpeechCreateResponse> {
15
+ return wrapAsWaitableResource<SpeechToSpeechCreateResponse>(this._client)(
16
+ this._client.post('/v1/speech_to_speech', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface SpeechToSpeechCreateResponse {
22
+ id: string;
23
+ }
24
+
25
+ export interface SpeechToSpeechCreateParams {
26
+ media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
27
+
28
+ model: 'eleven_multilingual_sts_v2';
29
+
30
+ /**
31
+ * The voice to use for the generated speech.
32
+ */
33
+ voice: SpeechToSpeechCreateParams.Voice;
34
+
35
+ removeBackgroundNoise?: boolean;
36
+ }
37
+
38
+ export namespace SpeechToSpeechCreateParams {
39
+ export interface Audio {
40
+ type: 'audio';
41
+
42
+ /**
43
+ * A data URI containing encoded audio.
44
+ */
45
+ uri: string;
46
+ }
47
+
48
+ export interface Video {
49
+ type: 'video';
50
+
51
+ /**
52
+ * A data URI containing an encoded video.
53
+ */
54
+ uri: string;
55
+ }
56
+
57
+ /**
58
+ * The voice to use for the generated speech.
59
+ */
60
+ export interface Voice {
61
+ /**
62
+ * The preset voice ID to use for the generated speech.
63
+ */
64
+ presetId:
65
+ | 'Maya'
66
+ | 'Arjun'
67
+ | 'Serene'
68
+ | 'Bernard'
69
+ | 'Billy'
70
+ | 'Mark'
71
+ | 'Clint'
72
+ | 'Mabel'
73
+ | 'Chad'
74
+ | 'Leslie'
75
+ | 'Eleanor'
76
+ | 'Elias'
77
+ | 'Elliot'
78
+ | 'Grungle'
79
+ | 'Brodie'
80
+ | 'Sandra'
81
+ | 'Kirk'
82
+ | 'Kylie'
83
+ | 'Lara'
84
+ | 'Lisa'
85
+ | 'Malachi'
86
+ | 'Marlene'
87
+ | 'Martin'
88
+ | 'Miriam'
89
+ | 'Monster'
90
+ | 'Paula'
91
+ | 'Pip'
92
+ | 'Rusty'
93
+ | 'Ragnar'
94
+ | 'Xylar'
95
+ | 'Maggie'
96
+ | 'Jack'
97
+ | 'Katie'
98
+ | 'Noah'
99
+ | 'James'
100
+ | 'Rina'
101
+ | 'Ella'
102
+ | 'Mariah'
103
+ | 'Frank'
104
+ | 'Claudia'
105
+ | 'Niki'
106
+ | 'Vincent'
107
+ | 'Kendrick'
108
+ | 'Myrna'
109
+ | 'Tom'
110
+ | 'Wanda'
111
+ | 'Benjamin'
112
+ | 'Kiana'
113
+ | 'Rachel';
114
+
115
+ type: 'runway-preset';
116
+ }
117
+ }
118
+
119
+ export declare namespace SpeechToSpeech {
120
+ export {
121
+ type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse,
122
+ type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams,
123
+ };
124
+ }
@@ -19,16 +19,10 @@ export class TextToSpeech extends APIResource {
19
19
  }
20
20
 
21
21
  export interface TextToSpeechCreateResponse {
22
- /**
23
- * The ID of the newly created task.
24
- */
25
22
  id: string;
26
23
  }
27
24
 
28
25
  export interface TextToSpeechCreateParams {
29
- /**
30
- * The model variant to use.
31
- */
32
26
  model: 'eleven_multilingual_v2';
33
27
 
34
28
  /**
@@ -49,7 +43,7 @@ export namespace TextToSpeechCreateParams {
49
43
  */
50
44
  export interface Voice {
51
45
  /**
52
- * The name of the voice to use for the generated speech.
46
+ * The preset voice ID to use for the generated speech.
53
47
  */
54
48
  presetId:
55
49
  | 'Maya'
@@ -19,22 +19,15 @@ export class VoiceDubbing extends APIResource {
19
19
  }
20
20
 
21
21
  export interface VoiceDubbingCreateResponse {
22
- /**
23
- * The ID of the newly created task.
24
- */
25
22
  id: string;
26
23
  }
27
24
 
28
25
  export interface VoiceDubbingCreateParams {
29
26
  /**
30
- * A HTTPS URL or data URI containing the audio file to dub. See
31
- * [our docs](/assets/inputs#audio) on audio inputs for more information.
27
+ * A data URI containing encoded audio.
32
28
  */
33
29
  audioUri: string;
34
30
 
35
- /**
36
- * The model variant to use.
37
- */
38
31
  model: 'eleven_voice_dubbing';
39
32
 
40
33
  /**
@@ -6,7 +6,8 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
6
6
 
7
7
  export class VoiceIsolation extends APIResource {
8
8
  /**
9
- * This endpoint will start a new task to isolate and enhance voices in audio.
9
+ * This endpoint will start a new task to isolate the voice from the background
10
+ * audio.
10
11
  */
11
12
  create(
12
13
  body: VoiceIsolationCreateParams,
@@ -19,22 +20,15 @@ export class VoiceIsolation extends APIResource {
19
20
  }
20
21
 
21
22
  export interface VoiceIsolationCreateResponse {
22
- /**
23
- * The ID of the newly created task.
24
- */
25
23
  id: string;
26
24
  }
27
25
 
28
26
  export interface VoiceIsolationCreateParams {
29
27
  /**
30
- * A HTTPS URL or data URI containing the audio file to process. See
31
- * [our docs](/assets/inputs#audio) on audio inputs for more information.
28
+ * A data URI containing encoded audio.
32
29
  */
33
- audioUrl: string;
30
+ audioUri: string;
34
31
 
35
- /**
36
- * The model variant to use.
37
- */
38
32
  model: 'eleven_voice_isolation';
39
33
  }
40
34
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.4.0'; // x-release-please-version
1
+ export const VERSION = '3.5.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.4.0";
1
+ export declare const VERSION = "3.5.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.4.0";
1
+ export declare const VERSION = "3.5.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.4.0'; // x-release-please-version
4
+ exports.VERSION = '3.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.4.0'; // x-release-please-version
1
+ export const VERSION = '3.5.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map