@cartesia/cartesia-js 2.1.3 → 2.1.4

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 (110) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/apiStatus/client/Client.js +1 -1
  4. package/api/resources/datasets/client/Client.js +4 -4
  5. package/api/resources/index.d.ts +2 -0
  6. package/api/resources/index.js +3 -1
  7. package/api/resources/infill/client/Client.d.ts +44 -0
  8. package/api/resources/infill/client/Client.js +127 -0
  9. package/api/resources/infill/client/index.d.ts +1 -0
  10. package/api/resources/infill/client/index.js +17 -0
  11. package/api/resources/infill/client/requests/InfillBytesRequest.d.ts +67 -0
  12. package/api/resources/infill/client/requests/InfillBytesRequest.js +5 -0
  13. package/api/resources/infill/client/requests/index.d.ts +1 -0
  14. package/api/resources/infill/client/requests/index.js +2 -0
  15. package/api/resources/infill/index.d.ts +1 -0
  16. package/api/resources/infill/index.js +17 -0
  17. package/api/resources/tts/types/Emotion.d.ts +5 -1
  18. package/api/resources/tts/types/Emotion.js +4 -0
  19. package/api/resources/tts/types/GenerationRequest.d.ts +2 -0
  20. package/api/resources/tts/types/PhonemeTimestamps.d.ts +8 -0
  21. package/api/resources/tts/types/PhonemeTimestamps.js +5 -0
  22. package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +7 -0
  23. package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +5 -0
  24. package/api/resources/tts/types/WebSocketResponse.d.ts +4 -1
  25. package/api/resources/tts/types/WebSocketTtsOutput.d.ts +1 -0
  26. package/api/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
  27. package/api/resources/tts/types/index.d.ts +2 -0
  28. package/api/resources/tts/types/index.js +2 -0
  29. package/api/resources/voices/client/Client.d.ts +1 -2
  30. package/api/resources/voices/client/Client.js +9 -10
  31. package/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -1
  32. package/api/resources/voices/types/Voice.d.ts +0 -1
  33. package/dist/Client.d.ts +3 -0
  34. package/dist/Client.js +11 -6
  35. package/dist/api/resources/apiStatus/client/Client.js +1 -1
  36. package/dist/api/resources/datasets/client/Client.js +4 -4
  37. package/dist/api/resources/index.d.ts +2 -0
  38. package/dist/api/resources/index.js +3 -1
  39. package/dist/api/resources/infill/client/Client.d.ts +44 -0
  40. package/dist/api/resources/infill/client/Client.js +127 -0
  41. package/dist/api/resources/infill/client/index.d.ts +1 -0
  42. package/dist/api/resources/infill/client/index.js +17 -0
  43. package/dist/api/resources/infill/client/requests/InfillBytesRequest.d.ts +67 -0
  44. package/dist/api/resources/infill/client/requests/InfillBytesRequest.js +5 -0
  45. package/dist/api/resources/infill/client/requests/index.d.ts +1 -0
  46. package/dist/api/resources/infill/client/requests/index.js +2 -0
  47. package/dist/api/resources/infill/index.d.ts +1 -0
  48. package/dist/api/resources/infill/index.js +17 -0
  49. package/dist/api/resources/tts/types/Emotion.d.ts +5 -1
  50. package/dist/api/resources/tts/types/Emotion.js +4 -0
  51. package/dist/api/resources/tts/types/GenerationRequest.d.ts +2 -0
  52. package/dist/api/resources/tts/types/PhonemeTimestamps.d.ts +8 -0
  53. package/dist/api/resources/tts/types/PhonemeTimestamps.js +5 -0
  54. package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +7 -0
  55. package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +5 -0
  56. package/dist/api/resources/tts/types/WebSocketResponse.d.ts +4 -1
  57. package/dist/api/resources/tts/types/WebSocketTtsOutput.d.ts +1 -0
  58. package/dist/api/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
  59. package/dist/api/resources/tts/types/index.d.ts +2 -0
  60. package/dist/api/resources/tts/types/index.js +2 -0
  61. package/dist/api/resources/voices/client/Client.d.ts +1 -2
  62. package/dist/api/resources/voices/client/Client.js +9 -10
  63. package/dist/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -1
  64. package/dist/api/resources/voices/types/Voice.d.ts +0 -1
  65. package/dist/serialization/resources/tts/types/Emotion.d.ts +1 -1
  66. package/dist/serialization/resources/tts/types/Emotion.js +4 -0
  67. package/dist/serialization/resources/tts/types/GenerationRequest.d.ts +1 -0
  68. package/dist/serialization/resources/tts/types/GenerationRequest.js +1 -0
  69. package/dist/serialization/resources/tts/types/PhonemeTimestamps.d.ts +14 -0
  70. package/dist/serialization/resources/tts/types/PhonemeTimestamps.js +35 -0
  71. package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +14 -0
  72. package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +37 -0
  73. package/dist/serialization/resources/tts/types/WebSocketResponse.d.ts +5 -1
  74. package/dist/serialization/resources/tts/types/WebSocketResponse.js +2 -0
  75. package/dist/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +2 -0
  76. package/dist/serialization/resources/tts/types/WebSocketTtsOutput.js +2 -0
  77. package/dist/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
  78. package/dist/serialization/resources/tts/types/WebSocketTtsRequest.js +1 -0
  79. package/dist/serialization/resources/tts/types/index.d.ts +2 -0
  80. package/dist/serialization/resources/tts/types/index.js +2 -0
  81. package/dist/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -2
  82. package/dist/serialization/resources/voices/types/CreateVoiceRequest.js +0 -2
  83. package/dist/serialization/resources/voices/types/Voice.d.ts +0 -2
  84. package/dist/serialization/resources/voices/types/Voice.js +0 -2
  85. package/dist/version.d.ts +1 -1
  86. package/dist/version.js +1 -1
  87. package/package.json +1 -1
  88. package/reference.md +93 -1
  89. package/serialization/resources/tts/types/Emotion.d.ts +1 -1
  90. package/serialization/resources/tts/types/Emotion.js +4 -0
  91. package/serialization/resources/tts/types/GenerationRequest.d.ts +1 -0
  92. package/serialization/resources/tts/types/GenerationRequest.js +1 -0
  93. package/serialization/resources/tts/types/PhonemeTimestamps.d.ts +14 -0
  94. package/serialization/resources/tts/types/PhonemeTimestamps.js +35 -0
  95. package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +14 -0
  96. package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +37 -0
  97. package/serialization/resources/tts/types/WebSocketResponse.d.ts +5 -1
  98. package/serialization/resources/tts/types/WebSocketResponse.js +2 -0
  99. package/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +2 -0
  100. package/serialization/resources/tts/types/WebSocketTtsOutput.js +2 -0
  101. package/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
  102. package/serialization/resources/tts/types/WebSocketTtsRequest.js +1 -0
  103. package/serialization/resources/tts/types/index.d.ts +2 -0
  104. package/serialization/resources/tts/types/index.js +2 -0
  105. package/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -2
  106. package/serialization/resources/voices/types/CreateVoiceRequest.js +0 -2
  107. package/serialization/resources/voices/types/Voice.d.ts +0 -2
  108. package/serialization/resources/voices/types/Voice.js +0 -2
  109. package/version.d.ts +1 -1
  110. package/version.js +1 -1
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Cartesia from "../../../index";
5
+ export interface WebSocketPhonemeTimestampsResponse extends Cartesia.WebSocketBaseResponse {
6
+ phonemeTimestamps?: Cartesia.PhonemeTimestamps;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Cartesia from "../../../index";
5
- export declare type WebSocketResponse = Cartesia.WebSocketResponse.Chunk | Cartesia.WebSocketResponse.Done | Cartesia.WebSocketResponse.Timestamps | Cartesia.WebSocketResponse.Error_;
5
+ export declare type WebSocketResponse = Cartesia.WebSocketResponse.Chunk | Cartesia.WebSocketResponse.Done | Cartesia.WebSocketResponse.Timestamps | Cartesia.WebSocketResponse.Error_ | Cartesia.WebSocketResponse.PhonemeTimestamps;
6
6
  export declare namespace WebSocketResponse {
7
7
  interface Chunk extends Cartesia.WebSocketChunkResponse {
8
8
  type: "chunk";
@@ -16,4 +16,7 @@ export declare namespace WebSocketResponse {
16
16
  interface Error_ extends Cartesia.WebSocketErrorResponse {
17
17
  type: "error";
18
18
  }
19
+ interface PhonemeTimestamps extends Cartesia.WebSocketPhonemeTimestampsResponse {
20
+ type: "phoneme_timestamps";
21
+ }
19
22
  }
@@ -4,6 +4,7 @@
4
4
  import * as Cartesia from "../../../index";
5
5
  export interface WebSocketTtsOutput {
6
6
  wordTimestamps?: Cartesia.WordTimestamps;
7
+ phonemeTimestamps?: Cartesia.PhonemeTimestamps;
7
8
  audio?: unknown;
8
9
  contextId?: Cartesia.ContextId;
9
10
  }
@@ -11,6 +11,7 @@ export interface WebSocketTtsRequest {
11
11
  duration?: number;
12
12
  language?: string;
13
13
  addTimestamps?: boolean;
14
+ addPhonemeTimestamps?: boolean;
14
15
  continue?: boolean;
15
16
  contextId?: string;
16
17
  }
@@ -4,9 +4,11 @@ export * from "./WebSocketResponse";
4
4
  export * from "./WebSocketErrorResponse";
5
5
  export * from "./WebSocketChunkResponse";
6
6
  export * from "./WebSocketTimestampsResponse";
7
+ export * from "./WebSocketPhonemeTimestampsResponse";
7
8
  export * from "./WebSocketTtsOutput";
8
9
  export * from "./WebSocketStreamOptions";
9
10
  export * from "./WordTimestamps";
11
+ export * from "./PhonemeTimestamps";
10
12
  export * from "./WebSocketDoneResponse";
11
13
  export * from "./CancelContextRequest";
12
14
  export * from "./GenerationRequest";
@@ -20,9 +20,11 @@ __exportStar(require("./WebSocketResponse"), exports);
20
20
  __exportStar(require("./WebSocketErrorResponse"), exports);
21
21
  __exportStar(require("./WebSocketChunkResponse"), exports);
22
22
  __exportStar(require("./WebSocketTimestampsResponse"), exports);
23
+ __exportStar(require("./WebSocketPhonemeTimestampsResponse"), exports);
23
24
  __exportStar(require("./WebSocketTtsOutput"), exports);
24
25
  __exportStar(require("./WebSocketStreamOptions"), exports);
25
26
  __exportStar(require("./WordTimestamps"), exports);
27
+ __exportStar(require("./PhonemeTimestamps"), exports);
26
28
  __exportStar(require("./WebSocketDoneResponse"), exports);
27
29
  __exportStar(require("./CancelContextRequest"), exports);
28
30
  __exportStar(require("./GenerationRequest"), exports);
@@ -45,8 +45,7 @@ export declare class Voices {
45
45
  * name: "string",
46
46
  * description: "string",
47
47
  * embedding: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
48
- * language: "en",
49
- * baseVoiceId: "string"
48
+ * language: "en"
50
49
  * })
51
50
  */
52
51
  create(request: Cartesia.CreateVoiceRequest, requestOptions?: Voices.RequestOptions): Promise<Cartesia.Voice>;
@@ -60,7 +60,7 @@ class Voices {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/"),
62
62
  method: "GET",
63
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,8 +106,7 @@ class Voices {
106
106
  * name: "string",
107
107
  * description: "string",
108
108
  * embedding: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
109
- * language: "en",
110
- * baseVoiceId: "string"
109
+ * language: "en"
111
110
  * })
112
111
  */
113
112
  create(request, requestOptions) {
@@ -116,7 +115,7 @@ class Voices {
116
115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
117
116
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/"),
118
117
  method: "POST",
119
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
118
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
119
  contentType: "application/json",
121
120
  requestType: "json",
122
121
  body: serializers.CreateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -167,7 +166,7 @@ class Voices {
167
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
168
167
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
169
168
  method: "DELETE",
170
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
170
  contentType: "application/json",
172
171
  requestType: "json",
173
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +214,7 @@ class Voices {
215
214
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
215
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
217
216
  method: "PATCH",
218
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
217
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
218
  contentType: "application/json",
220
219
  requestType: "json",
221
220
  body: serializers.UpdateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -266,7 +265,7 @@ class Voices {
266
265
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
267
266
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
268
267
  method: "GET",
269
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
268
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
270
269
  contentType: "application/json",
271
270
  requestType: "json",
272
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -321,7 +320,7 @@ class Voices {
321
320
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
322
321
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/localize"),
323
322
  method: "POST",
324
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
323
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
325
324
  contentType: "application/json",
326
325
  requestType: "json",
327
326
  body: serializers.LocalizeVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -377,7 +376,7 @@ class Voices {
377
376
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
377
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/mix"),
379
378
  method: "POST",
380
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
379
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
380
  contentType: "application/json",
382
381
  requestType: "json",
383
382
  body: serializers.MixVoicesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -464,7 +463,7 @@ class Voices {
464
463
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
465
464
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/clone"),
466
465
  method: "POST",
467
- headers: Object.assign(Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.3", "User-Agent": "@cartesia/cartesia-js/2.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
466
+ headers: Object.assign(Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.4", "User-Agent": "@cartesia/cartesia-js/2.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
468
467
  requestType: "file",
469
468
  duplex: _maybeEncodedRequest.duplex,
470
469
  body: _maybeEncodedRequest.body,
@@ -9,5 +9,4 @@ export interface CreateVoiceRequest {
9
9
  description: string;
10
10
  embedding: Cartesia.Embedding;
11
11
  language?: Cartesia.SupportedLanguage;
12
- baseVoiceId?: Cartesia.BaseVoiceId;
13
12
  }
@@ -16,5 +16,4 @@ export interface Voice {
16
16
  createdAt: Date;
17
17
  embedding: Cartesia.Embedding;
18
18
  language: Cartesia.SupportedLanguage;
19
- baseVoiceId?: Cartesia.BaseVoiceId;
20
19
  }
@@ -6,5 +6,5 @@ import * as Cartesia from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const Emotion: core.serialization.Schema<serializers.Emotion.Raw, Cartesia.Emotion>;
8
8
  export declare namespace Emotion {
9
- type Raw = "anger:lowest" | "anger:low" | "anger:high" | "anger:highest" | "positivity:lowest" | "positivity:low" | "positivity:high" | "positivity:highest" | "surprise:lowest" | "surprise:high" | "surprise:highest" | "sadness:lowest" | "sadness:low" | "curiosity:low" | "curiosity:high" | "curiosity:highest";
9
+ type Raw = "anger:lowest" | "anger:low" | "anger:high" | "anger:highest" | "positivity:lowest" | "positivity:low" | "positivity:high" | "positivity:highest" | "surprise:lowest" | "surprise:low" | "surprise:high" | "surprise:highest" | "sadness:lowest" | "sadness:low" | "sadness:high" | "sadness:highest" | "curiosity:lowest" | "curiosity:low" | "curiosity:high" | "curiosity:highest";
10
10
  }
@@ -38,10 +38,14 @@ exports.Emotion = core.serialization.enum_([
38
38
  "positivity:high",
39
39
  "positivity:highest",
40
40
  "surprise:lowest",
41
+ "surprise:low",
41
42
  "surprise:high",
42
43
  "surprise:highest",
43
44
  "sadness:lowest",
44
45
  "sadness:low",
46
+ "sadness:high",
47
+ "sadness:highest",
48
+ "curiosity:lowest",
45
49
  "curiosity:low",
46
50
  "curiosity:high",
47
51
  "curiosity:highest",
@@ -20,5 +20,6 @@ export declare namespace GenerationRequest {
20
20
  context_id: ContextId.Raw;
21
21
  continue?: boolean | null;
22
22
  add_timestamps?: boolean | null;
23
+ add_phoneme_timestamps?: boolean | null;
23
24
  }
24
25
  }
@@ -42,4 +42,5 @@ exports.GenerationRequest = core.serialization.object({
42
42
  contextId: core.serialization.property("context_id", ContextId_1.ContextId),
43
43
  continue: core.serialization.boolean().optional(),
44
44
  addTimestamps: core.serialization.property("add_timestamps", core.serialization.boolean().optional()),
45
+ addPhonemeTimestamps: core.serialization.property("add_phoneme_timestamps", core.serialization.boolean().optional()),
45
46
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PhonemeTimestamps: core.serialization.ObjectSchema<serializers.PhonemeTimestamps.Raw, Cartesia.PhonemeTimestamps>;
8
+ export declare namespace PhonemeTimestamps {
9
+ interface Raw {
10
+ phonemes: string[];
11
+ start: number[];
12
+ end: number[];
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PhonemeTimestamps = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PhonemeTimestamps = core.serialization.object({
32
+ phonemes: core.serialization.list(core.serialization.string()),
33
+ start: core.serialization.list(core.serialization.number()),
34
+ end: core.serialization.list(core.serialization.number()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PhonemeTimestamps } from "./PhonemeTimestamps";
8
+ import { WebSocketBaseResponse } from "./WebSocketBaseResponse";
9
+ export declare const WebSocketPhonemeTimestampsResponse: core.serialization.ObjectSchema<serializers.WebSocketPhonemeTimestampsResponse.Raw, Cartesia.WebSocketPhonemeTimestampsResponse>;
10
+ export declare namespace WebSocketPhonemeTimestampsResponse {
11
+ interface Raw extends WebSocketBaseResponse.Raw {
12
+ phoneme_timestamps?: PhonemeTimestamps.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WebSocketPhonemeTimestampsResponse = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const PhonemeTimestamps_1 = require("./PhonemeTimestamps");
32
+ const WebSocketBaseResponse_1 = require("./WebSocketBaseResponse");
33
+ exports.WebSocketPhonemeTimestampsResponse = core.serialization
34
+ .object({
35
+ phonemeTimestamps: core.serialization.property("phoneme_timestamps", PhonemeTimestamps_1.PhonemeTimestamps.optional()),
36
+ })
37
+ .extend(WebSocketBaseResponse_1.WebSocketBaseResponse);
@@ -8,9 +8,10 @@ import { WebSocketChunkResponse } from "./WebSocketChunkResponse";
8
8
  import { WebSocketDoneResponse } from "./WebSocketDoneResponse";
9
9
  import { WebSocketTimestampsResponse } from "./WebSocketTimestampsResponse";
10
10
  import { WebSocketErrorResponse } from "./WebSocketErrorResponse";
11
+ import { WebSocketPhonemeTimestampsResponse } from "./WebSocketPhonemeTimestampsResponse";
11
12
  export declare const WebSocketResponse: core.serialization.Schema<serializers.WebSocketResponse.Raw, Cartesia.WebSocketResponse>;
12
13
  export declare namespace WebSocketResponse {
13
- type Raw = WebSocketResponse.Chunk | WebSocketResponse.Done | WebSocketResponse.Timestamps | WebSocketResponse.Error;
14
+ type Raw = WebSocketResponse.Chunk | WebSocketResponse.Done | WebSocketResponse.Timestamps | WebSocketResponse.Error | WebSocketResponse.PhonemeTimestamps;
14
15
  interface Chunk extends WebSocketChunkResponse.Raw {
15
16
  type: "chunk";
16
17
  }
@@ -23,4 +24,7 @@ export declare namespace WebSocketResponse {
23
24
  interface Error extends WebSocketErrorResponse.Raw {
24
25
  type: "error";
25
26
  }
27
+ interface PhonemeTimestamps extends WebSocketPhonemeTimestampsResponse.Raw {
28
+ type: "phoneme_timestamps";
29
+ }
26
30
  }
@@ -32,12 +32,14 @@ const WebSocketChunkResponse_1 = require("./WebSocketChunkResponse");
32
32
  const WebSocketDoneResponse_1 = require("./WebSocketDoneResponse");
33
33
  const WebSocketTimestampsResponse_1 = require("./WebSocketTimestampsResponse");
34
34
  const WebSocketErrorResponse_1 = require("./WebSocketErrorResponse");
35
+ const WebSocketPhonemeTimestampsResponse_1 = require("./WebSocketPhonemeTimestampsResponse");
35
36
  exports.WebSocketResponse = core.serialization
36
37
  .union("type", {
37
38
  chunk: WebSocketChunkResponse_1.WebSocketChunkResponse,
38
39
  done: WebSocketDoneResponse_1.WebSocketDoneResponse,
39
40
  timestamps: WebSocketTimestampsResponse_1.WebSocketTimestampsResponse,
40
41
  error: WebSocketErrorResponse_1.WebSocketErrorResponse,
42
+ phoneme_timestamps: WebSocketPhonemeTimestampsResponse_1.WebSocketPhonemeTimestampsResponse,
41
43
  })
42
44
  .transform({
43
45
  transform: (value) => value,
@@ -5,11 +5,13 @@ import * as serializers from "../../../index";
5
5
  import * as Cartesia from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { WordTimestamps } from "./WordTimestamps";
8
+ import { PhonemeTimestamps } from "./PhonemeTimestamps";
8
9
  import { ContextId } from "./ContextId";
9
10
  export declare const WebSocketTtsOutput: core.serialization.ObjectSchema<serializers.WebSocketTtsOutput.Raw, Cartesia.WebSocketTtsOutput>;
10
11
  export declare namespace WebSocketTtsOutput {
11
12
  interface Raw {
12
13
  word_timestamps?: WordTimestamps.Raw | null;
14
+ phoneme_timestamps?: PhonemeTimestamps.Raw | null;
13
15
  audio?: unknown | null;
14
16
  context_id?: ContextId.Raw | null;
15
17
  }
@@ -29,9 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.WebSocketTtsOutput = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const WordTimestamps_1 = require("./WordTimestamps");
32
+ const PhonemeTimestamps_1 = require("./PhonemeTimestamps");
32
33
  const ContextId_1 = require("./ContextId");
33
34
  exports.WebSocketTtsOutput = core.serialization.object({
34
35
  wordTimestamps: core.serialization.property("word_timestamps", WordTimestamps_1.WordTimestamps.optional()),
36
+ phonemeTimestamps: core.serialization.property("phoneme_timestamps", PhonemeTimestamps_1.PhonemeTimestamps.optional()),
35
37
  audio: core.serialization.unknown().optional(),
36
38
  contextId: core.serialization.property("context_id", ContextId_1.ContextId.optional()),
37
39
  });
@@ -16,6 +16,7 @@ export declare namespace WebSocketTtsRequest {
16
16
  duration?: number | null;
17
17
  language?: string | null;
18
18
  add_timestamps?: boolean | null;
19
+ add_phoneme_timestamps?: boolean | null;
19
20
  continue?: boolean | null;
20
21
  context_id?: string | null;
21
22
  }
@@ -38,6 +38,7 @@ exports.WebSocketTtsRequest = core.serialization.object({
38
38
  duration: core.serialization.number().optional(),
39
39
  language: core.serialization.string().optional(),
40
40
  addTimestamps: core.serialization.property("add_timestamps", core.serialization.boolean().optional()),
41
+ addPhonemeTimestamps: core.serialization.property("add_phoneme_timestamps", core.serialization.boolean().optional()),
41
42
  continue: core.serialization.boolean().optional(),
42
43
  contextId: core.serialization.property("context_id", core.serialization.string().optional()),
43
44
  });
@@ -4,9 +4,11 @@ export * from "./WebSocketResponse";
4
4
  export * from "./WebSocketErrorResponse";
5
5
  export * from "./WebSocketChunkResponse";
6
6
  export * from "./WebSocketTimestampsResponse";
7
+ export * from "./WebSocketPhonemeTimestampsResponse";
7
8
  export * from "./WebSocketTtsOutput";
8
9
  export * from "./WebSocketStreamOptions";
9
10
  export * from "./WordTimestamps";
11
+ export * from "./PhonemeTimestamps";
10
12
  export * from "./WebSocketDoneResponse";
11
13
  export * from "./CancelContextRequest";
12
14
  export * from "./GenerationRequest";
@@ -20,9 +20,11 @@ __exportStar(require("./WebSocketResponse"), exports);
20
20
  __exportStar(require("./WebSocketErrorResponse"), exports);
21
21
  __exportStar(require("./WebSocketChunkResponse"), exports);
22
22
  __exportStar(require("./WebSocketTimestampsResponse"), exports);
23
+ __exportStar(require("./WebSocketPhonemeTimestampsResponse"), exports);
23
24
  __exportStar(require("./WebSocketTtsOutput"), exports);
24
25
  __exportStar(require("./WebSocketStreamOptions"), exports);
25
26
  __exportStar(require("./WordTimestamps"), exports);
27
+ __exportStar(require("./PhonemeTimestamps"), exports);
26
28
  __exportStar(require("./WebSocketDoneResponse"), exports);
27
29
  __exportStar(require("./CancelContextRequest"), exports);
28
30
  __exportStar(require("./GenerationRequest"), exports);
@@ -6,7 +6,6 @@ import * as Cartesia from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { Embedding } from "../../embedding/types/Embedding";
8
8
  import { SupportedLanguage } from "../../tts/types/SupportedLanguage";
9
- import { BaseVoiceId } from "./BaseVoiceId";
10
9
  export declare const CreateVoiceRequest: core.serialization.ObjectSchema<serializers.CreateVoiceRequest.Raw, Cartesia.CreateVoiceRequest>;
11
10
  export declare namespace CreateVoiceRequest {
12
11
  interface Raw {
@@ -14,6 +13,5 @@ export declare namespace CreateVoiceRequest {
14
13
  description: string;
15
14
  embedding: Embedding.Raw;
16
15
  language?: SupportedLanguage.Raw | null;
17
- base_voice_id?: BaseVoiceId.Raw | null;
18
16
  }
19
17
  }
@@ -30,11 +30,9 @@ exports.CreateVoiceRequest = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const Embedding_1 = require("../../embedding/types/Embedding");
32
32
  const SupportedLanguage_1 = require("../../tts/types/SupportedLanguage");
33
- const BaseVoiceId_1 = require("./BaseVoiceId");
34
33
  exports.CreateVoiceRequest = core.serialization.object({
35
34
  name: core.serialization.string(),
36
35
  description: core.serialization.string(),
37
36
  embedding: Embedding_1.Embedding,
38
37
  language: SupportedLanguage_1.SupportedLanguage.optional(),
39
- baseVoiceId: core.serialization.property("base_voice_id", BaseVoiceId_1.BaseVoiceId.optional()),
40
38
  });
@@ -7,7 +7,6 @@ import * as core from "../../../../core";
7
7
  import { VoiceId } from "./VoiceId";
8
8
  import { Embedding } from "../../embedding/types/Embedding";
9
9
  import { SupportedLanguage } from "../../tts/types/SupportedLanguage";
10
- import { BaseVoiceId } from "./BaseVoiceId";
11
10
  export declare const Voice: core.serialization.ObjectSchema<serializers.Voice.Raw, Cartesia.Voice>;
12
11
  export declare namespace Voice {
13
12
  interface Raw {
@@ -19,6 +18,5 @@ export declare namespace Voice {
19
18
  created_at: string;
20
19
  embedding: Embedding.Raw;
21
20
  language: SupportedLanguage.Raw;
22
- base_voice_id?: BaseVoiceId.Raw | null;
23
21
  }
24
22
  }
@@ -31,7 +31,6 @@ const core = __importStar(require("../../../../core"));
31
31
  const VoiceId_1 = require("./VoiceId");
32
32
  const Embedding_1 = require("../../embedding/types/Embedding");
33
33
  const SupportedLanguage_1 = require("../../tts/types/SupportedLanguage");
34
- const BaseVoiceId_1 = require("./BaseVoiceId");
35
34
  exports.Voice = core.serialization.object({
36
35
  id: VoiceId_1.VoiceId,
37
36
  userId: core.serialization.property("user_id", core.serialization.string().optional()),
@@ -41,5 +40,4 @@ exports.Voice = core.serialization.object({
41
40
  createdAt: core.serialization.property("created_at", core.serialization.date()),
42
41
  embedding: Embedding_1.Embedding,
43
42
  language: SupportedLanguage_1.SupportedLanguage,
44
- baseVoiceId: core.serialization.property("base_voice_id", BaseVoiceId_1.BaseVoiceId.optional()),
45
43
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.1.3";
1
+ export declare const SDK_VERSION = "2.1.4";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.1.3";
4
+ exports.SDK_VERSION = "2.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartesia/cartesia-js",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/cartesia-ai/cartesia-js",
6
6
  "main": "./index.js",