@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.
- package/Client.d.ts +3 -0
- package/Client.js +11 -6
- package/api/resources/apiStatus/client/Client.js +1 -1
- package/api/resources/datasets/client/Client.js +4 -4
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/infill/client/Client.d.ts +44 -0
- package/api/resources/infill/client/Client.js +127 -0
- package/api/resources/infill/client/index.d.ts +1 -0
- package/api/resources/infill/client/index.js +17 -0
- package/api/resources/infill/client/requests/InfillBytesRequest.d.ts +67 -0
- package/api/resources/infill/client/requests/InfillBytesRequest.js +5 -0
- package/api/resources/infill/client/requests/index.d.ts +1 -0
- package/api/resources/infill/client/requests/index.js +2 -0
- package/api/resources/infill/index.d.ts +1 -0
- package/api/resources/infill/index.js +17 -0
- package/api/resources/tts/types/Emotion.d.ts +5 -1
- package/api/resources/tts/types/Emotion.js +4 -0
- package/api/resources/tts/types/GenerationRequest.d.ts +2 -0
- package/api/resources/tts/types/PhonemeTimestamps.d.ts +8 -0
- package/api/resources/tts/types/PhonemeTimestamps.js +5 -0
- package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +7 -0
- package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +5 -0
- package/api/resources/tts/types/WebSocketResponse.d.ts +4 -1
- package/api/resources/tts/types/WebSocketTtsOutput.d.ts +1 -0
- package/api/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
- package/api/resources/tts/types/index.d.ts +2 -0
- package/api/resources/tts/types/index.js +2 -0
- package/api/resources/voices/client/Client.d.ts +1 -2
- package/api/resources/voices/client/Client.js +9 -10
- package/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -1
- package/api/resources/voices/types/Voice.d.ts +0 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/apiStatus/client/Client.js +1 -1
- package/dist/api/resources/datasets/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/infill/client/Client.d.ts +44 -0
- package/dist/api/resources/infill/client/Client.js +127 -0
- package/dist/api/resources/infill/client/index.d.ts +1 -0
- package/dist/api/resources/infill/client/index.js +17 -0
- package/dist/api/resources/infill/client/requests/InfillBytesRequest.d.ts +67 -0
- package/dist/api/resources/infill/client/requests/InfillBytesRequest.js +5 -0
- package/dist/api/resources/infill/client/requests/index.d.ts +1 -0
- package/dist/api/resources/infill/client/requests/index.js +2 -0
- package/dist/api/resources/infill/index.d.ts +1 -0
- package/dist/api/resources/infill/index.js +17 -0
- package/dist/api/resources/tts/types/Emotion.d.ts +5 -1
- package/dist/api/resources/tts/types/Emotion.js +4 -0
- package/dist/api/resources/tts/types/GenerationRequest.d.ts +2 -0
- package/dist/api/resources/tts/types/PhonemeTimestamps.d.ts +8 -0
- package/dist/api/resources/tts/types/PhonemeTimestamps.js +5 -0
- package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +7 -0
- package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +5 -0
- package/dist/api/resources/tts/types/WebSocketResponse.d.ts +4 -1
- package/dist/api/resources/tts/types/WebSocketTtsOutput.d.ts +1 -0
- package/dist/api/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
- package/dist/api/resources/tts/types/index.d.ts +2 -0
- package/dist/api/resources/tts/types/index.js +2 -0
- package/dist/api/resources/voices/client/Client.d.ts +1 -2
- package/dist/api/resources/voices/client/Client.js +9 -10
- package/dist/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -1
- package/dist/api/resources/voices/types/Voice.d.ts +0 -1
- package/dist/serialization/resources/tts/types/Emotion.d.ts +1 -1
- package/dist/serialization/resources/tts/types/Emotion.js +4 -0
- package/dist/serialization/resources/tts/types/GenerationRequest.d.ts +1 -0
- package/dist/serialization/resources/tts/types/GenerationRequest.js +1 -0
- package/dist/serialization/resources/tts/types/PhonemeTimestamps.d.ts +14 -0
- package/dist/serialization/resources/tts/types/PhonemeTimestamps.js +35 -0
- package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +14 -0
- package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +37 -0
- package/dist/serialization/resources/tts/types/WebSocketResponse.d.ts +5 -1
- package/dist/serialization/resources/tts/types/WebSocketResponse.js +2 -0
- package/dist/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +2 -0
- package/dist/serialization/resources/tts/types/WebSocketTtsOutput.js +2 -0
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.js +1 -0
- package/dist/serialization/resources/tts/types/index.d.ts +2 -0
- package/dist/serialization/resources/tts/types/index.js +2 -0
- package/dist/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -2
- package/dist/serialization/resources/voices/types/CreateVoiceRequest.js +0 -2
- package/dist/serialization/resources/voices/types/Voice.d.ts +0 -2
- package/dist/serialization/resources/voices/types/Voice.js +0 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +93 -1
- package/serialization/resources/tts/types/Emotion.d.ts +1 -1
- package/serialization/resources/tts/types/Emotion.js +4 -0
- package/serialization/resources/tts/types/GenerationRequest.d.ts +1 -0
- package/serialization/resources/tts/types/GenerationRequest.js +1 -0
- package/serialization/resources/tts/types/PhonemeTimestamps.d.ts +14 -0
- package/serialization/resources/tts/types/PhonemeTimestamps.js +35 -0
- package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +14 -0
- package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +37 -0
- package/serialization/resources/tts/types/WebSocketResponse.d.ts +5 -1
- package/serialization/resources/tts/types/WebSocketResponse.js +2 -0
- package/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +2 -0
- package/serialization/resources/tts/types/WebSocketTtsOutput.js +2 -0
- package/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +1 -0
- package/serialization/resources/tts/types/WebSocketTtsRequest.js +1 -0
- package/serialization/resources/tts/types/index.d.ts +2 -0
- package/serialization/resources/tts/types/index.js +2 -0
- package/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -2
- package/serialization/resources/voices/types/CreateVoiceRequest.js +0 -2
- package/serialization/resources/voices/types/Voice.d.ts +0 -2
- package/serialization/resources/voices/types/Voice.js +0 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { ApiStatus } from "./api/resources/apiStatus/client/Client";
|
|
7
7
|
import { Datasets } from "./api/resources/datasets/client/Client";
|
|
8
|
+
import { Infill } from "./api/resources/infill/client/Client";
|
|
8
9
|
import { Tts } from "./api/resources/tts/client/Client";
|
|
9
10
|
import { VoiceChanger } from "./api/resources/voiceChanger/client/Client";
|
|
10
11
|
import { Voices } from "./api/resources/voices/client/Client";
|
|
@@ -34,6 +35,8 @@ export declare class CartesiaClient {
|
|
|
34
35
|
get apiStatus(): ApiStatus;
|
|
35
36
|
protected _datasets: Datasets | undefined;
|
|
36
37
|
get datasets(): Datasets;
|
|
38
|
+
protected _infill: Infill | undefined;
|
|
39
|
+
get infill(): Infill;
|
|
37
40
|
protected _tts: Tts | undefined;
|
|
38
41
|
get tts(): Tts;
|
|
39
42
|
protected _voiceChanger: VoiceChanger | undefined;
|
package/Client.js
CHANGED
|
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CartesiaClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/apiStatus/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/datasets/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/infill/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/tts/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/voiceChanger/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/voices/client/Client");
|
|
12
13
|
class CartesiaClient {
|
|
13
14
|
constructor(_options = {}) {
|
|
14
15
|
this._options = _options;
|
|
@@ -21,17 +22,21 @@ class CartesiaClient {
|
|
|
21
22
|
var _a;
|
|
22
23
|
return ((_a = this._datasets) !== null && _a !== void 0 ? _a : (this._datasets = new Client_2.Datasets(this._options)));
|
|
23
24
|
}
|
|
25
|
+
get infill() {
|
|
26
|
+
var _a;
|
|
27
|
+
return ((_a = this._infill) !== null && _a !== void 0 ? _a : (this._infill = new Client_3.Infill(this._options)));
|
|
28
|
+
}
|
|
24
29
|
get tts() {
|
|
25
30
|
var _a;
|
|
26
|
-
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new
|
|
31
|
+
return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_4.Tts(this._options)));
|
|
27
32
|
}
|
|
28
33
|
get voiceChanger() {
|
|
29
34
|
var _a;
|
|
30
|
-
return ((_a = this._voiceChanger) !== null && _a !== void 0 ? _a : (this._voiceChanger = new
|
|
35
|
+
return ((_a = this._voiceChanger) !== null && _a !== void 0 ? _a : (this._voiceChanger = new Client_5.VoiceChanger(this._options)));
|
|
31
36
|
}
|
|
32
37
|
get voices() {
|
|
33
38
|
var _a;
|
|
34
|
-
return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new
|
|
39
|
+
return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new Client_6.Voices(this._options)));
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
exports.CartesiaClient = CartesiaClient;
|
|
@@ -56,7 +56,7 @@ class ApiStatus {
|
|
|
56
56
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
57
57
|
url: (_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production,
|
|
58
58
|
method: "GET",
|
|
59
|
-
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.
|
|
59
|
+
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())),
|
|
60
60
|
contentType: "application/json",
|
|
61
61
|
requestType: "json",
|
|
62
62
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -60,7 +60,7 @@ class Datasets {
|
|
|
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, "/datasets/"),
|
|
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.
|
|
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,
|
|
@@ -112,7 +112,7 @@ class Datasets {
|
|
|
112
112
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
113
113
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/datasets/"),
|
|
114
114
|
method: "POST",
|
|
115
|
-
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.
|
|
115
|
+
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())),
|
|
116
116
|
contentType: "application/json",
|
|
117
117
|
requestType: "json",
|
|
118
118
|
body: serializers.CreateDatasetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -163,7 +163,7 @@ class Datasets {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/datasets/${encodeURIComponent(id)}/files`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
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.
|
|
166
|
+
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())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -219,7 +219,7 @@ class Datasets {
|
|
|
219
219
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
220
220
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/datasets/${encodeURIComponent(id)}/files`),
|
|
221
221
|
method: "POST",
|
|
222
|
-
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.
|
|
222
|
+
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),
|
|
223
223
|
requestType: "file",
|
|
224
224
|
duplex: _maybeEncodedRequest.duplex,
|
|
225
225
|
body: _maybeEncodedRequest.body,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * as voiceChanger from "./voiceChanger";
|
|
|
10
10
|
export * from "./voiceChanger/types";
|
|
11
11
|
export * as voices from "./voices";
|
|
12
12
|
export * from "./voices/types";
|
|
13
|
+
export * as infill from "./infill";
|
|
13
14
|
export * from "./datasets/client/requests";
|
|
15
|
+
export * from "./infill/client/requests";
|
|
14
16
|
export * from "./voiceChanger/client/requests";
|
|
15
17
|
export * from "./voices/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.voices = exports.voiceChanger = exports.tts = exports.embedding = exports.datasets = exports.apiStatus = void 0;
|
|
29
|
+
exports.infill = exports.voices = exports.voiceChanger = exports.tts = exports.embedding = exports.datasets = exports.apiStatus = void 0;
|
|
30
30
|
exports.apiStatus = __importStar(require("./apiStatus"));
|
|
31
31
|
__exportStar(require("./apiStatus/types"), exports);
|
|
32
32
|
exports.datasets = __importStar(require("./datasets"));
|
|
@@ -39,6 +39,8 @@ exports.voiceChanger = __importStar(require("./voiceChanger"));
|
|
|
39
39
|
__exportStar(require("./voiceChanger/types"), exports);
|
|
40
40
|
exports.voices = __importStar(require("./voices"));
|
|
41
41
|
__exportStar(require("./voices/types"), exports);
|
|
42
|
+
exports.infill = __importStar(require("./infill"));
|
|
42
43
|
__exportStar(require("./datasets/client/requests"), exports);
|
|
44
|
+
__exportStar(require("./infill/client/requests"), exports);
|
|
43
45
|
__exportStar(require("./voiceChanger/client/requests"), exports);
|
|
44
46
|
__exportStar(require("./voices/client/requests"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/// <reference types="node" />
|
|
5
|
+
import * as environments from "../../../../environments";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import * as fs from "fs";
|
|
8
|
+
import { Blob } from "buffer";
|
|
9
|
+
import * as Cartesia from "../../../index";
|
|
10
|
+
import * as stream from "stream";
|
|
11
|
+
export declare namespace Infill {
|
|
12
|
+
interface Options {
|
|
13
|
+
environment?: core.Supplier<environments.CartesiaEnvironment | string>;
|
|
14
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
15
|
+
/** Override the Cartesia-Version header */
|
|
16
|
+
cartesiaVersion?: "2024-06-10";
|
|
17
|
+
fetcher?: core.FetchFunction;
|
|
18
|
+
}
|
|
19
|
+
interface RequestOptions {
|
|
20
|
+
/** The maximum time to wait for a response in seconds. */
|
|
21
|
+
timeoutInSeconds?: number;
|
|
22
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
23
|
+
maxRetries?: number;
|
|
24
|
+
/** A hook to abort the request. */
|
|
25
|
+
abortSignal?: AbortSignal;
|
|
26
|
+
/** Override the Cartesia-Version header */
|
|
27
|
+
cartesiaVersion?: "2024-06-10";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Infill {
|
|
31
|
+
protected readonly _options: Infill.Options;
|
|
32
|
+
constructor(_options?: Infill.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Generate audio that smoothly connects two existing audio segments. This is useful for inserting new speech between existing speech segments while maintaining natural transitions.
|
|
35
|
+
*
|
|
36
|
+
* Only the `sonic-preview` model is supported for infill at this time.
|
|
37
|
+
*
|
|
38
|
+
* At least one of `left_audio` or `right_audio` must be provided.
|
|
39
|
+
*/
|
|
40
|
+
bytes(leftAudio: File | fs.ReadStream | Blob, rightAudio: File | fs.ReadStream | Blob, request: Cartesia.InfillBytesRequest, requestOptions?: Infill.RequestOptions): Promise<stream.Readable>;
|
|
41
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
42
|
+
"X-API-Key": string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Infill = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
46
|
+
class Infill {
|
|
47
|
+
constructor(_options = {}) {
|
|
48
|
+
this._options = _options;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Generate audio that smoothly connects two existing audio segments. This is useful for inserting new speech between existing speech segments while maintaining natural transitions.
|
|
52
|
+
*
|
|
53
|
+
* Only the `sonic-preview` model is supported for infill at this time.
|
|
54
|
+
*
|
|
55
|
+
* At least one of `left_audio` or `right_audio` must be provided.
|
|
56
|
+
*/
|
|
57
|
+
bytes(leftAudio, rightAudio, request, requestOptions) {
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const _request = yield core.newFormData();
|
|
61
|
+
yield _request.appendFile("left_audio", leftAudio);
|
|
62
|
+
yield _request.appendFile("right_audio", rightAudio);
|
|
63
|
+
yield _request.append("model_id[]", request.modelId);
|
|
64
|
+
yield _request.append("language[]", request.language);
|
|
65
|
+
yield _request.append("transcript[]", request.transcript);
|
|
66
|
+
yield _request.append("voice[id]", request.voiceId);
|
|
67
|
+
yield _request.append("output_format[container]", request.outputFormatContainer);
|
|
68
|
+
yield _request.append("output_format[sample_rate]", request.outputFormatSampleRate.toString());
|
|
69
|
+
if (request.outputFormatEncoding != null) {
|
|
70
|
+
yield _request.append("output_format[encoding]", request.outputFormatEncoding);
|
|
71
|
+
}
|
|
72
|
+
if (request.outputFormatBitRate != null) {
|
|
73
|
+
yield _request.append("output_format[bit_rate]", request.outputFormatBitRate.toString());
|
|
74
|
+
}
|
|
75
|
+
if (request.voiceExperimentalControlsSpeed != null) {
|
|
76
|
+
yield _request.append("voice[__experimental_controls][speed]", typeof request.voiceExperimentalControlsSpeed === "string"
|
|
77
|
+
? request.voiceExperimentalControlsSpeed
|
|
78
|
+
: JSON.stringify(request.voiceExperimentalControlsSpeed));
|
|
79
|
+
}
|
|
80
|
+
if (request.voiceExperimentalControlsEmotion != null) {
|
|
81
|
+
yield _request.append("voice[__experimental_controls][emotion][]", request.voiceExperimentalControlsEmotion);
|
|
82
|
+
}
|
|
83
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
84
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/infill/bytes"),
|
|
86
|
+
method: "POST",
|
|
87
|
+
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),
|
|
88
|
+
requestType: "file",
|
|
89
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
90
|
+
body: _maybeEncodedRequest.body,
|
|
91
|
+
responseType: "streaming",
|
|
92
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return _response.body;
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
throw new errors.CartesiaError({
|
|
101
|
+
statusCode: _response.error.statusCode,
|
|
102
|
+
body: _response.error.body,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
switch (_response.error.reason) {
|
|
106
|
+
case "non-json":
|
|
107
|
+
throw new errors.CartesiaError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.rawBody,
|
|
110
|
+
});
|
|
111
|
+
case "timeout":
|
|
112
|
+
throw new errors.CartesiaTimeoutError();
|
|
113
|
+
case "unknown":
|
|
114
|
+
throw new errors.CartesiaError({
|
|
115
|
+
message: _response.error.errorMessage,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
_getCustomAuthorizationHeaders() {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
123
|
+
return { "X-API-Key": apiKeyValue };
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.Infill = Infill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Cartesia from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* modelId: "sonic-preview",
|
|
9
|
+
* language: "en",
|
|
10
|
+
* transcript: "middle segment",
|
|
11
|
+
* voiceId: "694f9389-aac1-45b6-b726-9d9369183238",
|
|
12
|
+
* outputFormatContainer: "mp3",
|
|
13
|
+
* outputFormatSampleRate: 44100,
|
|
14
|
+
* outputFormatBitRate: 128000
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* {
|
|
19
|
+
* modelId: "sonic-preview",
|
|
20
|
+
* language: "en",
|
|
21
|
+
* transcript: "middle segment",
|
|
22
|
+
* voiceId: "694f9389-aac1-45b6-b726-9d9369183238",
|
|
23
|
+
* outputFormatContainer: "wav",
|
|
24
|
+
* outputFormatSampleRate: 44100,
|
|
25
|
+
* outputFormatEncoding: "pcm_f32le"
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
export interface InfillBytesRequest {
|
|
29
|
+
/** The ID of the model to use for generating audio */
|
|
30
|
+
modelId: string;
|
|
31
|
+
/** The language of the transcript */
|
|
32
|
+
language: string;
|
|
33
|
+
/** The infill text to generate */
|
|
34
|
+
transcript: string;
|
|
35
|
+
/** The ID of the voice to use for generating audio */
|
|
36
|
+
voiceId: string;
|
|
37
|
+
/** The format of the output audio */
|
|
38
|
+
outputFormatContainer: Cartesia.OutputFormatContainer;
|
|
39
|
+
/** The sample rate of the output audio */
|
|
40
|
+
outputFormatSampleRate: number;
|
|
41
|
+
/**
|
|
42
|
+
* Required for `raw` and `wav` containers.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
outputFormatEncoding?: Cartesia.RawEncoding;
|
|
46
|
+
/**
|
|
47
|
+
* Required for `mp3` containers.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
outputFormatBitRate?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Either a number between -1.0 and 1.0 or a natural language description of speed.
|
|
53
|
+
*
|
|
54
|
+
* If you specify a number, 0.0 is the default speed, -1.0 is the slowest speed, and 1.0 is the fastest speed.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
voiceExperimentalControlsSpeed?: Cartesia.Speed;
|
|
58
|
+
/**
|
|
59
|
+
* An array of emotion:level tags.
|
|
60
|
+
*
|
|
61
|
+
* Supported emotions are: anger, positivity, surprise, sadness, and curiosity.
|
|
62
|
+
*
|
|
63
|
+
* Supported levels are: lowest, low, (omit), high, highest.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
voiceExperimentalControlsEmotion?: Cartesia.Emotion;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type InfillBytesRequest } from "./InfillBytesRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Supported levels are: lowest, low, (omit), high, highest.
|
|
10
10
|
*/
|
|
11
|
-
export declare type Emotion = "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";
|
|
11
|
+
export declare type Emotion = "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";
|
|
12
12
|
export declare const Emotion: {
|
|
13
13
|
readonly AngerLowest: "anger:lowest";
|
|
14
14
|
readonly AngerLow: "anger:low";
|
|
@@ -19,10 +19,14 @@ export declare const Emotion: {
|
|
|
19
19
|
readonly PositivityHigh: "positivity:high";
|
|
20
20
|
readonly PositivityHighest: "positivity:highest";
|
|
21
21
|
readonly SurpriseLowest: "surprise:lowest";
|
|
22
|
+
readonly SurpriseLow: "surprise:low";
|
|
22
23
|
readonly SurpriseHigh: "surprise:high";
|
|
23
24
|
readonly SurpriseHighest: "surprise:highest";
|
|
24
25
|
readonly SadnessLowest: "sadness:lowest";
|
|
25
26
|
readonly SadnessLow: "sadness:low";
|
|
27
|
+
readonly SadnessHigh: "sadness:high";
|
|
28
|
+
readonly SadnessHighest: "sadness:highest";
|
|
29
|
+
readonly CuriosityLowest: "curiosity:lowest";
|
|
26
30
|
readonly CuriosityLow: "curiosity:low";
|
|
27
31
|
readonly CuriosityHigh: "curiosity:high";
|
|
28
32
|
readonly CuriosityHighest: "curiosity:highest";
|
|
@@ -14,10 +14,14 @@ exports.Emotion = {
|
|
|
14
14
|
PositivityHigh: "positivity:high",
|
|
15
15
|
PositivityHighest: "positivity:highest",
|
|
16
16
|
SurpriseLowest: "surprise:lowest",
|
|
17
|
+
SurpriseLow: "surprise:low",
|
|
17
18
|
SurpriseHigh: "surprise:high",
|
|
18
19
|
SurpriseHighest: "surprise:highest",
|
|
19
20
|
SadnessLowest: "sadness:lowest",
|
|
20
21
|
SadnessLow: "sadness:low",
|
|
22
|
+
SadnessHigh: "sadness:high",
|
|
23
|
+
SadnessHighest: "sadness:highest",
|
|
24
|
+
CuriosityLowest: "curiosity:lowest",
|
|
21
25
|
CuriosityLow: "curiosity:low",
|
|
22
26
|
CuriosityHigh: "curiosity:high",
|
|
23
27
|
CuriosityHighest: "curiosity:highest",
|
|
@@ -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
|
+
}
|
|
@@ -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,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>;
|