@cartesia/cartesia-js 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/apiStatus/client/Client.js +1 -1
- package/api/resources/auth/client/Client.js +1 -1
- package/api/resources/infill/client/Client.js +1 -1
- package/api/resources/tts/types/GenerationRequest.d.ts +9 -8
- package/api/resources/tts/types/ModelSpeed.d.ts +16 -0
- package/api/resources/tts/types/ModelSpeed.js +11 -0
- package/api/resources/tts/types/TtsRequest.d.ts +1 -8
- package/api/resources/tts/types/WebSocketTtsRequest.d.ts +2 -1
- package/api/resources/tts/types/index.d.ts +1 -0
- package/api/resources/tts/types/index.js +1 -0
- package/api/resources/voices/client/Client.d.ts +2 -5
- package/api/resources/voices/client/Client.js +12 -15
- package/api/resources/voices/client/requests/CloneVoiceRequest.d.ts +5 -8
- package/dist/api/resources/apiStatus/client/Client.js +1 -1
- package/dist/api/resources/auth/client/Client.js +1 -1
- package/dist/api/resources/infill/client/Client.js +1 -1
- package/dist/api/resources/tts/types/GenerationRequest.d.ts +9 -8
- package/dist/api/resources/tts/types/ModelSpeed.d.ts +16 -0
- package/dist/api/resources/tts/types/ModelSpeed.js +11 -0
- package/dist/api/resources/tts/types/TtsRequest.d.ts +1 -8
- package/dist/api/resources/tts/types/WebSocketTtsRequest.d.ts +2 -1
- package/dist/api/resources/tts/types/index.d.ts +1 -0
- package/dist/api/resources/tts/types/index.js +1 -0
- package/dist/api/resources/voices/client/Client.d.ts +2 -5
- package/dist/api/resources/voices/client/Client.js +12 -15
- package/dist/api/resources/voices/client/requests/CloneVoiceRequest.d.ts +5 -8
- package/dist/serialization/resources/tts/types/GenerationRequest.d.ts +3 -1
- package/dist/serialization/resources/tts/types/GenerationRequest.js +3 -1
- package/dist/serialization/resources/tts/types/ModelSpeed.d.ts +10 -0
- package/dist/serialization/resources/tts/types/ModelSpeed.js +41 -0
- package/dist/serialization/resources/tts/types/TtsRequest.d.ts +2 -1
- package/dist/serialization/resources/tts/types/TtsRequest.js +2 -1
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +3 -1
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.js +3 -1
- package/dist/serialization/resources/tts/types/index.d.ts +1 -0
- package/dist/serialization/resources/tts/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -1
- package/serialization/resources/tts/types/GenerationRequest.d.ts +3 -1
- package/serialization/resources/tts/types/GenerationRequest.js +3 -1
- package/serialization/resources/tts/types/ModelSpeed.d.ts +10 -0
- package/serialization/resources/tts/types/ModelSpeed.js +41 -0
- package/serialization/resources/tts/types/TtsRequest.d.ts +2 -1
- package/serialization/resources/tts/types/TtsRequest.js +2 -1
- package/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +3 -1
- package/serialization/resources/tts/types/WebSocketTtsRequest.js +3 -1
- package/serialization/resources/tts/types/index.d.ts +1 -0
- package/serialization/resources/tts/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -66,7 +66,7 @@ class ApiStatus {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production,
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
69
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -78,7 +78,7 @@ class Auth {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "access-token"),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
81
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.TokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -113,7 +113,7 @@ class Infill {
|
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
114
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/infill/bytes"),
|
|
115
115
|
method: "POST",
|
|
116
|
-
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
116
|
+
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
requestType: "file",
|
|
118
118
|
duplex: _maybeEncodedRequest.duplex,
|
|
119
119
|
body: _maybeEncodedRequest.body,
|
|
@@ -15,20 +15,21 @@ export interface GenerationRequest {
|
|
|
15
15
|
* If the duration is not appropriate for the length of the transcript, the output audio may be truncated.
|
|
16
16
|
*/
|
|
17
17
|
duration?: number;
|
|
18
|
-
|
|
19
|
-
* The text [classifier-free guidance](https://arxiv.org/abs/2207.12598) value for the request.
|
|
20
|
-
*
|
|
21
|
-
* Higher values causes the model to attend more to the text but speed up the generation. Lower values reduce the speaking rate but can increase the risk of hallucinations. The default value is `3.0`. For a slower speaking rate, we recommend values between `2.0` and `3.0`. Values are supported between `1.5` and `3.0`.
|
|
22
|
-
*
|
|
23
|
-
* This parameter is only supported for `sonic-2` models.
|
|
24
|
-
*/
|
|
25
|
-
textCfg?: number;
|
|
18
|
+
speed?: Cartesia.ModelSpeed;
|
|
26
19
|
contextId?: Cartesia.ContextId;
|
|
27
20
|
/**
|
|
28
21
|
* Whether this input may be followed by more inputs.
|
|
29
22
|
* If not specified, this defaults to `false`.
|
|
30
23
|
*/
|
|
31
24
|
continue?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum time in milliseconds to buffer text before starting generation. Values between [0, 1000]ms are supported. Defaults to 0 (no buffering).
|
|
27
|
+
*
|
|
28
|
+
* When set, the model will buffer incoming text chunks until it's confident it has enough context to generate high-quality speech, or the buffer delay elapses, whichever comes first. Without this option set, the model will kick off generations immediately, ceding control of buffering to the user.
|
|
29
|
+
*
|
|
30
|
+
* Use this to balance responsiveness with higher quality speech generation, which often benefits from having more context.
|
|
31
|
+
*/
|
|
32
|
+
maxBufferDelayMs?: number;
|
|
32
33
|
/** Whether to flush the context. */
|
|
33
34
|
flush?: boolean;
|
|
34
35
|
/** Whether to return word-level timestamps. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* > This feature is experimental and may not work for all voices.
|
|
6
|
+
*
|
|
7
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
8
|
+
*
|
|
9
|
+
* Influences the speed of the generated speech. Faster speeds may reduce hallucination rate.
|
|
10
|
+
*/
|
|
11
|
+
export type ModelSpeed = "slow" | "normal" | "fast";
|
|
12
|
+
export declare const ModelSpeed: {
|
|
13
|
+
readonly Slow: "slow";
|
|
14
|
+
readonly Normal: "normal";
|
|
15
|
+
readonly Fast: "fast";
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ModelSpeed = void 0;
|
|
7
|
+
exports.ModelSpeed = {
|
|
8
|
+
Slow: "slow",
|
|
9
|
+
Normal: "normal",
|
|
10
|
+
Fast: "fast",
|
|
11
|
+
};
|
|
@@ -14,12 +14,5 @@ export interface TtsRequest {
|
|
|
14
14
|
* If the duration is not appropriate for the length of the transcript, the output audio may be truncated.
|
|
15
15
|
*/
|
|
16
16
|
duration?: number;
|
|
17
|
-
|
|
18
|
-
* The text [classifier-free guidance](https://arxiv.org/abs/2207.12598) value for the request.
|
|
19
|
-
*
|
|
20
|
-
* Higher values causes the model to attend more to the text but speed up the generation. Lower values reduce the speaking rate but can increase the risk of hallucinations. The default value is `3.0`. For a slower speaking rate, we recommend values between `2.0` and `3.0`. Values are supported between `1.5` and `3.0`.
|
|
21
|
-
*
|
|
22
|
-
* This parameter is only supported for `sonic-2` models.
|
|
23
|
-
*/
|
|
24
|
-
textCfg?: number;
|
|
17
|
+
speed?: Cartesia.ModelSpeed;
|
|
25
18
|
}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ContextId"), exports);
|
|
18
18
|
__exportStar(require("./FlushId"), exports);
|
|
19
|
+
__exportStar(require("./ModelSpeed"), exports);
|
|
19
20
|
__exportStar(require("./WebSocketBaseResponse"), exports);
|
|
20
21
|
__exportStar(require("./WebSocketResponse"), exports);
|
|
21
22
|
__exportStar(require("./WebSocketErrorResponse"), exports);
|
|
@@ -55,8 +55,7 @@ export declare class Voices {
|
|
|
55
55
|
* name: "A high-stability cloned voice",
|
|
56
56
|
* description: "Copied from Cartesia docs",
|
|
57
57
|
* mode: "stability",
|
|
58
|
-
* language: "en"
|
|
59
|
-
* enhance: true
|
|
58
|
+
* language: "en"
|
|
60
59
|
* })
|
|
61
60
|
*
|
|
62
61
|
* @example
|
|
@@ -64,9 +63,7 @@ export declare class Voices {
|
|
|
64
63
|
* name: "A high-similarity cloned voice",
|
|
65
64
|
* description: "Copied from Cartesia docs",
|
|
66
65
|
* mode: "similarity",
|
|
67
|
-
* language: "en"
|
|
68
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
69
|
-
* enhance: false
|
|
66
|
+
* language: "en"
|
|
70
67
|
* })
|
|
71
68
|
*/
|
|
72
69
|
clone(clip: File | fs.ReadStream | Blob, request: Cartesia.CloneVoiceRequest, requestOptions?: Voices.RequestOptions): Promise<Cartesia.VoiceMetadata>;
|
|
@@ -70,7 +70,7 @@ class Voices {
|
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
71
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
73
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -123,8 +123,7 @@ class Voices {
|
|
|
123
123
|
* name: "A high-stability cloned voice",
|
|
124
124
|
* description: "Copied from Cartesia docs",
|
|
125
125
|
* mode: "stability",
|
|
126
|
-
* language: "en"
|
|
127
|
-
* enhance: true
|
|
126
|
+
* language: "en"
|
|
128
127
|
* })
|
|
129
128
|
*
|
|
130
129
|
* @example
|
|
@@ -132,9 +131,7 @@ class Voices {
|
|
|
132
131
|
* name: "A high-similarity cloned voice",
|
|
133
132
|
* description: "Copied from Cartesia docs",
|
|
134
133
|
* mode: "similarity",
|
|
135
|
-
* language: "en"
|
|
136
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
137
|
-
* enhance: false
|
|
134
|
+
* language: "en"
|
|
138
135
|
* })
|
|
139
136
|
*/
|
|
140
137
|
clone(clip, request, requestOptions) {
|
|
@@ -151,14 +148,14 @@ class Voices {
|
|
|
151
148
|
if (request.enhance != null) {
|
|
152
149
|
_request.append("enhance", request.enhance.toString());
|
|
153
150
|
}
|
|
154
|
-
if (request.
|
|
155
|
-
_request.append("
|
|
151
|
+
if (request.baseVoiceId != null) {
|
|
152
|
+
_request.append("base_voice_id", serializers.VoiceId.jsonOrThrow(request.baseVoiceId, { unrecognizedObjectKeys: "strip" }));
|
|
156
153
|
}
|
|
157
154
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
158
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
159
156
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/clone"),
|
|
160
157
|
method: "POST",
|
|
161
|
-
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
158
|
+
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
159
|
requestType: "file",
|
|
163
160
|
duplex: _maybeEncodedRequest.duplex,
|
|
164
161
|
body: _maybeEncodedRequest.body,
|
|
@@ -209,7 +206,7 @@ class Voices {
|
|
|
209
206
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
210
207
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
211
208
|
method: "DELETE",
|
|
212
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
209
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
210
|
contentType: "application/json",
|
|
214
211
|
requestType: "json",
|
|
215
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -257,7 +254,7 @@ class Voices {
|
|
|
257
254
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
255
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
259
256
|
method: "PATCH",
|
|
260
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
257
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
261
258
|
contentType: "application/json",
|
|
262
259
|
requestType: "json",
|
|
263
260
|
body: serializers.UpdateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -308,7 +305,7 @@ class Voices {
|
|
|
308
305
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
309
306
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
310
307
|
method: "GET",
|
|
311
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
308
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
312
309
|
contentType: "application/json",
|
|
313
310
|
requestType: "json",
|
|
314
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -367,7 +364,7 @@ class Voices {
|
|
|
367
364
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
368
365
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/localize"),
|
|
369
366
|
method: "POST",
|
|
370
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
367
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
371
368
|
contentType: "application/json",
|
|
372
369
|
requestType: "json",
|
|
373
370
|
body: serializers.LocalizeVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -426,7 +423,7 @@ class Voices {
|
|
|
426
423
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
427
424
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/mix"),
|
|
428
425
|
method: "POST",
|
|
429
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
426
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
430
427
|
contentType: "application/json",
|
|
431
428
|
requestType: "json",
|
|
432
429
|
body: serializers.MixVoicesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -485,7 +482,7 @@ class Voices {
|
|
|
485
482
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
486
483
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/"),
|
|
487
484
|
method: "POST",
|
|
488
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
485
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
489
486
|
contentType: "application/json",
|
|
490
487
|
requestType: "json",
|
|
491
488
|
body: serializers.CreateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -8,8 +8,7 @@ import * as Cartesia from "../../../../index";
|
|
|
8
8
|
* name: "A high-stability cloned voice",
|
|
9
9
|
* description: "Copied from Cartesia docs",
|
|
10
10
|
* mode: "stability",
|
|
11
|
-
* language: "en"
|
|
12
|
-
* enhance: true
|
|
11
|
+
* language: "en"
|
|
13
12
|
* }
|
|
14
13
|
*
|
|
15
14
|
* @example
|
|
@@ -17,9 +16,7 @@ import * as Cartesia from "../../../../index";
|
|
|
17
16
|
* name: "A high-similarity cloned voice",
|
|
18
17
|
* description: "Copied from Cartesia docs",
|
|
19
18
|
* mode: "similarity",
|
|
20
|
-
* language: "en"
|
|
21
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
22
|
-
* enhance: false
|
|
19
|
+
* language: "en"
|
|
23
20
|
* }
|
|
24
21
|
*/
|
|
25
22
|
export interface CloneVoiceRequest {
|
|
@@ -44,13 +41,13 @@ export interface CloneVoiceRequest {
|
|
|
44
41
|
*/
|
|
45
42
|
mode: Cartesia.CloneMode;
|
|
46
43
|
/**
|
|
47
|
-
* Whether to
|
|
44
|
+
* Whether to apply AI enhancements to the clip to reduce background noise. This leads to cleaner generated speech at the cost of reduced similarity to the source clip.
|
|
48
45
|
*
|
|
49
46
|
*/
|
|
50
47
|
enhance?: boolean;
|
|
51
48
|
/**
|
|
52
|
-
* Optional
|
|
49
|
+
* Optional base voice ID that the cloned voice is derived from.
|
|
53
50
|
*
|
|
54
51
|
*/
|
|
55
|
-
|
|
52
|
+
baseVoiceId?: Cartesia.VoiceId;
|
|
56
53
|
}
|
|
@@ -66,7 +66,7 @@ class ApiStatus {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production,
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
69
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -78,7 +78,7 @@ class Auth {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "access-token"),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
81
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.TokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -113,7 +113,7 @@ class Infill {
|
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
114
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/infill/bytes"),
|
|
115
115
|
method: "POST",
|
|
116
|
-
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
116
|
+
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
requestType: "file",
|
|
118
118
|
duplex: _maybeEncodedRequest.duplex,
|
|
119
119
|
body: _maybeEncodedRequest.body,
|
|
@@ -15,20 +15,21 @@ export interface GenerationRequest {
|
|
|
15
15
|
* If the duration is not appropriate for the length of the transcript, the output audio may be truncated.
|
|
16
16
|
*/
|
|
17
17
|
duration?: number;
|
|
18
|
-
|
|
19
|
-
* The text [classifier-free guidance](https://arxiv.org/abs/2207.12598) value for the request.
|
|
20
|
-
*
|
|
21
|
-
* Higher values causes the model to attend more to the text but speed up the generation. Lower values reduce the speaking rate but can increase the risk of hallucinations. The default value is `3.0`. For a slower speaking rate, we recommend values between `2.0` and `3.0`. Values are supported between `1.5` and `3.0`.
|
|
22
|
-
*
|
|
23
|
-
* This parameter is only supported for `sonic-2` models.
|
|
24
|
-
*/
|
|
25
|
-
textCfg?: number;
|
|
18
|
+
speed?: Cartesia.ModelSpeed;
|
|
26
19
|
contextId?: Cartesia.ContextId;
|
|
27
20
|
/**
|
|
28
21
|
* Whether this input may be followed by more inputs.
|
|
29
22
|
* If not specified, this defaults to `false`.
|
|
30
23
|
*/
|
|
31
24
|
continue?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum time in milliseconds to buffer text before starting generation. Values between [0, 1000]ms are supported. Defaults to 0 (no buffering).
|
|
27
|
+
*
|
|
28
|
+
* When set, the model will buffer incoming text chunks until it's confident it has enough context to generate high-quality speech, or the buffer delay elapses, whichever comes first. Without this option set, the model will kick off generations immediately, ceding control of buffering to the user.
|
|
29
|
+
*
|
|
30
|
+
* Use this to balance responsiveness with higher quality speech generation, which often benefits from having more context.
|
|
31
|
+
*/
|
|
32
|
+
maxBufferDelayMs?: number;
|
|
32
33
|
/** Whether to flush the context. */
|
|
33
34
|
flush?: boolean;
|
|
34
35
|
/** Whether to return word-level timestamps. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* > This feature is experimental and may not work for all voices.
|
|
6
|
+
*
|
|
7
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
8
|
+
*
|
|
9
|
+
* Influences the speed of the generated speech. Faster speeds may reduce hallucination rate.
|
|
10
|
+
*/
|
|
11
|
+
export type ModelSpeed = "slow" | "normal" | "fast";
|
|
12
|
+
export declare const ModelSpeed: {
|
|
13
|
+
readonly Slow: "slow";
|
|
14
|
+
readonly Normal: "normal";
|
|
15
|
+
readonly Fast: "fast";
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ModelSpeed = void 0;
|
|
7
|
+
exports.ModelSpeed = {
|
|
8
|
+
Slow: "slow",
|
|
9
|
+
Normal: "normal",
|
|
10
|
+
Fast: "fast",
|
|
11
|
+
};
|
|
@@ -14,12 +14,5 @@ export interface TtsRequest {
|
|
|
14
14
|
* If the duration is not appropriate for the length of the transcript, the output audio may be truncated.
|
|
15
15
|
*/
|
|
16
16
|
duration?: number;
|
|
17
|
-
|
|
18
|
-
* The text [classifier-free guidance](https://arxiv.org/abs/2207.12598) value for the request.
|
|
19
|
-
*
|
|
20
|
-
* Higher values causes the model to attend more to the text but speed up the generation. Lower values reduce the speaking rate but can increase the risk of hallucinations. The default value is `3.0`. For a slower speaking rate, we recommend values between `2.0` and `3.0`. Values are supported between `1.5` and `3.0`.
|
|
21
|
-
*
|
|
22
|
-
* This parameter is only supported for `sonic-2` models.
|
|
23
|
-
*/
|
|
24
|
-
textCfg?: number;
|
|
17
|
+
speed?: Cartesia.ModelSpeed;
|
|
25
18
|
}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ContextId"), exports);
|
|
18
18
|
__exportStar(require("./FlushId"), exports);
|
|
19
|
+
__exportStar(require("./ModelSpeed"), exports);
|
|
19
20
|
__exportStar(require("./WebSocketBaseResponse"), exports);
|
|
20
21
|
__exportStar(require("./WebSocketResponse"), exports);
|
|
21
22
|
__exportStar(require("./WebSocketErrorResponse"), exports);
|
|
@@ -55,8 +55,7 @@ export declare class Voices {
|
|
|
55
55
|
* name: "A high-stability cloned voice",
|
|
56
56
|
* description: "Copied from Cartesia docs",
|
|
57
57
|
* mode: "stability",
|
|
58
|
-
* language: "en"
|
|
59
|
-
* enhance: true
|
|
58
|
+
* language: "en"
|
|
60
59
|
* })
|
|
61
60
|
*
|
|
62
61
|
* @example
|
|
@@ -64,9 +63,7 @@ export declare class Voices {
|
|
|
64
63
|
* name: "A high-similarity cloned voice",
|
|
65
64
|
* description: "Copied from Cartesia docs",
|
|
66
65
|
* mode: "similarity",
|
|
67
|
-
* language: "en"
|
|
68
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
69
|
-
* enhance: false
|
|
66
|
+
* language: "en"
|
|
70
67
|
* })
|
|
71
68
|
*/
|
|
72
69
|
clone(clip: File | fs.ReadStream | Blob, request: Cartesia.CloneVoiceRequest, requestOptions?: Voices.RequestOptions): Promise<Cartesia.VoiceMetadata>;
|
|
@@ -70,7 +70,7 @@ class Voices {
|
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
71
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
73
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -123,8 +123,7 @@ class Voices {
|
|
|
123
123
|
* name: "A high-stability cloned voice",
|
|
124
124
|
* description: "Copied from Cartesia docs",
|
|
125
125
|
* mode: "stability",
|
|
126
|
-
* language: "en"
|
|
127
|
-
* enhance: true
|
|
126
|
+
* language: "en"
|
|
128
127
|
* })
|
|
129
128
|
*
|
|
130
129
|
* @example
|
|
@@ -132,9 +131,7 @@ class Voices {
|
|
|
132
131
|
* name: "A high-similarity cloned voice",
|
|
133
132
|
* description: "Copied from Cartesia docs",
|
|
134
133
|
* mode: "similarity",
|
|
135
|
-
* language: "en"
|
|
136
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
137
|
-
* enhance: false
|
|
134
|
+
* language: "en"
|
|
138
135
|
* })
|
|
139
136
|
*/
|
|
140
137
|
clone(clip, request, requestOptions) {
|
|
@@ -151,14 +148,14 @@ class Voices {
|
|
|
151
148
|
if (request.enhance != null) {
|
|
152
149
|
_request.append("enhance", request.enhance.toString());
|
|
153
150
|
}
|
|
154
|
-
if (request.
|
|
155
|
-
_request.append("
|
|
151
|
+
if (request.baseVoiceId != null) {
|
|
152
|
+
_request.append("base_voice_id", serializers.VoiceId.jsonOrThrow(request.baseVoiceId, { unrecognizedObjectKeys: "strip" }));
|
|
156
153
|
}
|
|
157
154
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
158
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
159
156
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/clone"),
|
|
160
157
|
method: "POST",
|
|
161
|
-
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
158
|
+
headers: Object.assign(Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
159
|
requestType: "file",
|
|
163
160
|
duplex: _maybeEncodedRequest.duplex,
|
|
164
161
|
body: _maybeEncodedRequest.body,
|
|
@@ -209,7 +206,7 @@ class Voices {
|
|
|
209
206
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
210
207
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
211
208
|
method: "DELETE",
|
|
212
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
209
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
210
|
contentType: "application/json",
|
|
214
211
|
requestType: "json",
|
|
215
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -257,7 +254,7 @@ class Voices {
|
|
|
257
254
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
255
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
259
256
|
method: "PATCH",
|
|
260
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
257
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
261
258
|
contentType: "application/json",
|
|
262
259
|
requestType: "json",
|
|
263
260
|
body: serializers.UpdateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -308,7 +305,7 @@ class Voices {
|
|
|
308
305
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
309
306
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
|
|
310
307
|
method: "GET",
|
|
311
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
308
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
312
309
|
contentType: "application/json",
|
|
313
310
|
requestType: "json",
|
|
314
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -367,7 +364,7 @@ class Voices {
|
|
|
367
364
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
368
365
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/localize"),
|
|
369
366
|
method: "POST",
|
|
370
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
367
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
371
368
|
contentType: "application/json",
|
|
372
369
|
requestType: "json",
|
|
373
370
|
body: serializers.LocalizeVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -426,7 +423,7 @@ class Voices {
|
|
|
426
423
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
427
424
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/mix"),
|
|
428
425
|
method: "POST",
|
|
429
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
426
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
430
427
|
contentType: "application/json",
|
|
431
428
|
requestType: "json",
|
|
432
429
|
body: serializers.MixVoicesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -485,7 +482,7 @@ class Voices {
|
|
|
485
482
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
486
483
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CartesiaEnvironment.Production, "/voices/"),
|
|
487
484
|
method: "POST",
|
|
488
|
-
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.
|
|
485
|
+
headers: Object.assign(Object.assign({ "Cartesia-Version": (_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.cartesiaVersion) !== null && _f !== void 0 ? _f : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.2.3", "User-Agent": "@cartesia/cartesia-js/2.2.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
489
486
|
contentType: "application/json",
|
|
490
487
|
requestType: "json",
|
|
491
488
|
body: serializers.CreateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -8,8 +8,7 @@ import * as Cartesia from "../../../../index";
|
|
|
8
8
|
* name: "A high-stability cloned voice",
|
|
9
9
|
* description: "Copied from Cartesia docs",
|
|
10
10
|
* mode: "stability",
|
|
11
|
-
* language: "en"
|
|
12
|
-
* enhance: true
|
|
11
|
+
* language: "en"
|
|
13
12
|
* }
|
|
14
13
|
*
|
|
15
14
|
* @example
|
|
@@ -17,9 +16,7 @@ import * as Cartesia from "../../../../index";
|
|
|
17
16
|
* name: "A high-similarity cloned voice",
|
|
18
17
|
* description: "Copied from Cartesia docs",
|
|
19
18
|
* mode: "similarity",
|
|
20
|
-
* language: "en"
|
|
21
|
-
* transcript: "A transcript of the words spoken in the audio clip.",
|
|
22
|
-
* enhance: false
|
|
19
|
+
* language: "en"
|
|
23
20
|
* }
|
|
24
21
|
*/
|
|
25
22
|
export interface CloneVoiceRequest {
|
|
@@ -44,13 +41,13 @@ export interface CloneVoiceRequest {
|
|
|
44
41
|
*/
|
|
45
42
|
mode: Cartesia.CloneMode;
|
|
46
43
|
/**
|
|
47
|
-
* Whether to
|
|
44
|
+
* Whether to apply AI enhancements to the clip to reduce background noise. This leads to cleaner generated speech at the cost of reduced similarity to the source clip.
|
|
48
45
|
*
|
|
49
46
|
*/
|
|
50
47
|
enhance?: boolean;
|
|
51
48
|
/**
|
|
52
|
-
* Optional
|
|
49
|
+
* Optional base voice ID that the cloned voice is derived from.
|
|
53
50
|
*
|
|
54
51
|
*/
|
|
55
|
-
|
|
52
|
+
baseVoiceId?: Cartesia.VoiceId;
|
|
56
53
|
}
|
|
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
8
8
|
import { SupportedLanguage } from "./SupportedLanguage";
|
|
9
9
|
import { WebSocketRawOutputFormat } from "./WebSocketRawOutputFormat";
|
|
10
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
10
11
|
import { ContextId } from "./ContextId";
|
|
11
12
|
export declare const GenerationRequest: core.serialization.ObjectSchema<serializers.GenerationRequest.Raw, Cartesia.GenerationRequest>;
|
|
12
13
|
export declare namespace GenerationRequest {
|
|
@@ -17,9 +18,10 @@ export declare namespace GenerationRequest {
|
|
|
17
18
|
language?: SupportedLanguage.Raw | null;
|
|
18
19
|
output_format: WebSocketRawOutputFormat.Raw;
|
|
19
20
|
duration?: number | null;
|
|
20
|
-
|
|
21
|
+
speed?: ModelSpeed.Raw | null;
|
|
21
22
|
context_id?: ContextId.Raw | null;
|
|
22
23
|
continue?: boolean | null;
|
|
24
|
+
max_buffer_delay_ms?: number | null;
|
|
23
25
|
flush?: boolean | null;
|
|
24
26
|
add_timestamps?: boolean | null;
|
|
25
27
|
add_phoneme_timestamps?: boolean | null;
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
42
42
|
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
43
43
|
const WebSocketRawOutputFormat_1 = require("./WebSocketRawOutputFormat");
|
|
44
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
44
45
|
const ContextId_1 = require("./ContextId");
|
|
45
46
|
exports.GenerationRequest = core.serialization.object({
|
|
46
47
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
@@ -49,9 +50,10 @@ exports.GenerationRequest = core.serialization.object({
|
|
|
49
50
|
language: SupportedLanguage_1.SupportedLanguage.optional(),
|
|
50
51
|
outputFormat: core.serialization.property("output_format", WebSocketRawOutputFormat_1.WebSocketRawOutputFormat),
|
|
51
52
|
duration: core.serialization.number().optional(),
|
|
52
|
-
|
|
53
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
53
54
|
contextId: core.serialization.property("context_id", ContextId_1.ContextId.optional()),
|
|
54
55
|
continue: core.serialization.boolean().optional(),
|
|
56
|
+
maxBufferDelayMs: core.serialization.property("max_buffer_delay_ms", core.serialization.number().optional()),
|
|
55
57
|
flush: core.serialization.boolean().optional(),
|
|
56
58
|
addTimestamps: core.serialization.property("add_timestamps", core.serialization.boolean().optional()),
|
|
57
59
|
addPhonemeTimestamps: core.serialization.property("add_phoneme_timestamps", core.serialization.boolean().optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
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 ModelSpeed: core.serialization.Schema<serializers.ModelSpeed.Raw, Cartesia.ModelSpeed>;
|
|
8
|
+
export declare namespace ModelSpeed {
|
|
9
|
+
type Raw = "slow" | "normal" | "fast";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ModelSpeed = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.ModelSpeed = core.serialization.enum_(["slow", "normal", "fast"]);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
8
8
|
import { SupportedLanguage } from "./SupportedLanguage";
|
|
9
9
|
import { OutputFormat } from "./OutputFormat";
|
|
10
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
10
11
|
export declare const TtsRequest: core.serialization.ObjectSchema<serializers.TtsRequest.Raw, Cartesia.TtsRequest>;
|
|
11
12
|
export declare namespace TtsRequest {
|
|
12
13
|
interface Raw {
|
|
@@ -16,6 +17,6 @@ export declare namespace TtsRequest {
|
|
|
16
17
|
language?: SupportedLanguage.Raw | null;
|
|
17
18
|
output_format: OutputFormat.Raw;
|
|
18
19
|
duration?: number | null;
|
|
19
|
-
|
|
20
|
+
speed?: ModelSpeed.Raw | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
42
42
|
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
43
43
|
const OutputFormat_1 = require("./OutputFormat");
|
|
44
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
44
45
|
exports.TtsRequest = core.serialization.object({
|
|
45
46
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
46
47
|
transcript: core.serialization.string(),
|
|
@@ -48,5 +49,5 @@ exports.TtsRequest = core.serialization.object({
|
|
|
48
49
|
language: SupportedLanguage_1.SupportedLanguage.optional(),
|
|
49
50
|
outputFormat: core.serialization.property("output_format", OutputFormat_1.OutputFormat),
|
|
50
51
|
duration: core.serialization.number().optional(),
|
|
51
|
-
|
|
52
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
52
53
|
});
|
|
@@ -6,6 +6,7 @@ import * as Cartesia from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { OutputFormat } from "./OutputFormat";
|
|
8
8
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
9
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
9
10
|
export declare const WebSocketTtsRequest: core.serialization.ObjectSchema<serializers.WebSocketTtsRequest.Raw, Cartesia.WebSocketTtsRequest>;
|
|
10
11
|
export declare namespace WebSocketTtsRequest {
|
|
11
12
|
interface Raw {
|
|
@@ -20,6 +21,7 @@ export declare namespace WebSocketTtsRequest {
|
|
|
20
21
|
use_original_timestamps?: boolean | null;
|
|
21
22
|
continue?: boolean | null;
|
|
22
23
|
context_id?: string | null;
|
|
23
|
-
|
|
24
|
+
max_buffer_delay_ms?: number | null;
|
|
25
|
+
speed?: ModelSpeed.Raw | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -40,6 +40,7 @@ exports.WebSocketTtsRequest = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const OutputFormat_1 = require("./OutputFormat");
|
|
42
42
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
43
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
43
44
|
exports.WebSocketTtsRequest = core.serialization.object({
|
|
44
45
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
45
46
|
outputFormat: core.serialization.property("output_format", OutputFormat_1.OutputFormat.optional()),
|
|
@@ -52,5 +53,6 @@ exports.WebSocketTtsRequest = core.serialization.object({
|
|
|
52
53
|
useOriginalTimestamps: core.serialization.property("use_original_timestamps", core.serialization.boolean().optional()),
|
|
53
54
|
continue: core.serialization.boolean().optional(),
|
|
54
55
|
contextId: core.serialization.property("context_id", core.serialization.string().optional()),
|
|
55
|
-
|
|
56
|
+
maxBufferDelayMs: core.serialization.property("max_buffer_delay_ms", core.serialization.number().optional()),
|
|
57
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
56
58
|
});
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ContextId"), exports);
|
|
18
18
|
__exportStar(require("./FlushId"), exports);
|
|
19
|
+
__exportStar(require("./ModelSpeed"), exports);
|
|
19
20
|
__exportStar(require("./WebSocketBaseResponse"), exports);
|
|
20
21
|
__exportStar(require("./WebSocketResponse"), exports);
|
|
21
22
|
__exportStar(require("./WebSocketErrorResponse"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.2.
|
|
1
|
+
export declare const SDK_VERSION = "2.2.3";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
8
8
|
import { SupportedLanguage } from "./SupportedLanguage";
|
|
9
9
|
import { WebSocketRawOutputFormat } from "./WebSocketRawOutputFormat";
|
|
10
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
10
11
|
import { ContextId } from "./ContextId";
|
|
11
12
|
export declare const GenerationRequest: core.serialization.ObjectSchema<serializers.GenerationRequest.Raw, Cartesia.GenerationRequest>;
|
|
12
13
|
export declare namespace GenerationRequest {
|
|
@@ -17,9 +18,10 @@ export declare namespace GenerationRequest {
|
|
|
17
18
|
language?: SupportedLanguage.Raw | null;
|
|
18
19
|
output_format: WebSocketRawOutputFormat.Raw;
|
|
19
20
|
duration?: number | null;
|
|
20
|
-
|
|
21
|
+
speed?: ModelSpeed.Raw | null;
|
|
21
22
|
context_id?: ContextId.Raw | null;
|
|
22
23
|
continue?: boolean | null;
|
|
24
|
+
max_buffer_delay_ms?: number | null;
|
|
23
25
|
flush?: boolean | null;
|
|
24
26
|
add_timestamps?: boolean | null;
|
|
25
27
|
add_phoneme_timestamps?: boolean | null;
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
42
42
|
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
43
43
|
const WebSocketRawOutputFormat_1 = require("./WebSocketRawOutputFormat");
|
|
44
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
44
45
|
const ContextId_1 = require("./ContextId");
|
|
45
46
|
exports.GenerationRequest = core.serialization.object({
|
|
46
47
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
@@ -49,9 +50,10 @@ exports.GenerationRequest = core.serialization.object({
|
|
|
49
50
|
language: SupportedLanguage_1.SupportedLanguage.optional(),
|
|
50
51
|
outputFormat: core.serialization.property("output_format", WebSocketRawOutputFormat_1.WebSocketRawOutputFormat),
|
|
51
52
|
duration: core.serialization.number().optional(),
|
|
52
|
-
|
|
53
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
53
54
|
contextId: core.serialization.property("context_id", ContextId_1.ContextId.optional()),
|
|
54
55
|
continue: core.serialization.boolean().optional(),
|
|
56
|
+
maxBufferDelayMs: core.serialization.property("max_buffer_delay_ms", core.serialization.number().optional()),
|
|
55
57
|
flush: core.serialization.boolean().optional(),
|
|
56
58
|
addTimestamps: core.serialization.property("add_timestamps", core.serialization.boolean().optional()),
|
|
57
59
|
addPhonemeTimestamps: core.serialization.property("add_phoneme_timestamps", core.serialization.boolean().optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
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 ModelSpeed: core.serialization.Schema<serializers.ModelSpeed.Raw, Cartesia.ModelSpeed>;
|
|
8
|
+
export declare namespace ModelSpeed {
|
|
9
|
+
type Raw = "slow" | "normal" | "fast";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ModelSpeed = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.ModelSpeed = core.serialization.enum_(["slow", "normal", "fast"]);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
8
8
|
import { SupportedLanguage } from "./SupportedLanguage";
|
|
9
9
|
import { OutputFormat } from "./OutputFormat";
|
|
10
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
10
11
|
export declare const TtsRequest: core.serialization.ObjectSchema<serializers.TtsRequest.Raw, Cartesia.TtsRequest>;
|
|
11
12
|
export declare namespace TtsRequest {
|
|
12
13
|
interface Raw {
|
|
@@ -16,6 +17,6 @@ export declare namespace TtsRequest {
|
|
|
16
17
|
language?: SupportedLanguage.Raw | null;
|
|
17
18
|
output_format: OutputFormat.Raw;
|
|
18
19
|
duration?: number | null;
|
|
19
|
-
|
|
20
|
+
speed?: ModelSpeed.Raw | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
42
42
|
const SupportedLanguage_1 = require("./SupportedLanguage");
|
|
43
43
|
const OutputFormat_1 = require("./OutputFormat");
|
|
44
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
44
45
|
exports.TtsRequest = core.serialization.object({
|
|
45
46
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
46
47
|
transcript: core.serialization.string(),
|
|
@@ -48,5 +49,5 @@ exports.TtsRequest = core.serialization.object({
|
|
|
48
49
|
language: SupportedLanguage_1.SupportedLanguage.optional(),
|
|
49
50
|
outputFormat: core.serialization.property("output_format", OutputFormat_1.OutputFormat),
|
|
50
51
|
duration: core.serialization.number().optional(),
|
|
51
|
-
|
|
52
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
52
53
|
});
|
|
@@ -6,6 +6,7 @@ import * as Cartesia from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { OutputFormat } from "./OutputFormat";
|
|
8
8
|
import { TtsRequestVoiceSpecifier } from "./TtsRequestVoiceSpecifier";
|
|
9
|
+
import { ModelSpeed } from "./ModelSpeed";
|
|
9
10
|
export declare const WebSocketTtsRequest: core.serialization.ObjectSchema<serializers.WebSocketTtsRequest.Raw, Cartesia.WebSocketTtsRequest>;
|
|
10
11
|
export declare namespace WebSocketTtsRequest {
|
|
11
12
|
interface Raw {
|
|
@@ -20,6 +21,7 @@ export declare namespace WebSocketTtsRequest {
|
|
|
20
21
|
use_original_timestamps?: boolean | null;
|
|
21
22
|
continue?: boolean | null;
|
|
22
23
|
context_id?: string | null;
|
|
23
|
-
|
|
24
|
+
max_buffer_delay_ms?: number | null;
|
|
25
|
+
speed?: ModelSpeed.Raw | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -40,6 +40,7 @@ exports.WebSocketTtsRequest = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const OutputFormat_1 = require("./OutputFormat");
|
|
42
42
|
const TtsRequestVoiceSpecifier_1 = require("./TtsRequestVoiceSpecifier");
|
|
43
|
+
const ModelSpeed_1 = require("./ModelSpeed");
|
|
43
44
|
exports.WebSocketTtsRequest = core.serialization.object({
|
|
44
45
|
modelId: core.serialization.property("model_id", core.serialization.string()),
|
|
45
46
|
outputFormat: core.serialization.property("output_format", OutputFormat_1.OutputFormat.optional()),
|
|
@@ -52,5 +53,6 @@ exports.WebSocketTtsRequest = core.serialization.object({
|
|
|
52
53
|
useOriginalTimestamps: core.serialization.property("use_original_timestamps", core.serialization.boolean().optional()),
|
|
53
54
|
continue: core.serialization.boolean().optional(),
|
|
54
55
|
contextId: core.serialization.property("context_id", core.serialization.string().optional()),
|
|
55
|
-
|
|
56
|
+
maxBufferDelayMs: core.serialization.property("max_buffer_delay_ms", core.serialization.number().optional()),
|
|
57
|
+
speed: ModelSpeed_1.ModelSpeed.optional(),
|
|
56
58
|
});
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ContextId"), exports);
|
|
18
18
|
__exportStar(require("./FlushId"), exports);
|
|
19
|
+
__exportStar(require("./ModelSpeed"), exports);
|
|
19
20
|
__exportStar(require("./WebSocketBaseResponse"), exports);
|
|
20
21
|
__exportStar(require("./WebSocketResponse"), exports);
|
|
21
22
|
__exportStar(require("./WebSocketErrorResponse"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.2.
|
|
1
|
+
export declare const SDK_VERSION = "2.2.3";
|
package/version.js
CHANGED