@nodaro/sdk 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1756,6 +1756,19 @@ var VoicesResource = class {
|
|
|
1756
1756
|
dub(input) {
|
|
1757
1757
|
return this.client.request("POST", "/v1/dubbing", { body: input });
|
|
1758
1758
|
}
|
|
1759
|
+
/**
|
|
1760
|
+
* Voice a multi-speaker script as ONE audio file
|
|
1761
|
+
* (`POST /v1/text-to-dialogue`, ElevenLabs Dialogue v3). Each `dialogue`
|
|
1762
|
+
* line is `{ text, voice }` in speaking order — `voice` is a premade voice
|
|
1763
|
+
* name or an ElevenLabs voice UUID (cloned/library voices work too; mixed
|
|
1764
|
+
* casts are fine). At most 5,000 characters total across lines (≤2,000
|
|
1765
|
+
* recommended for best quality) and 10 unique voices. Line text may carry
|
|
1766
|
+
* `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
|
|
1767
|
+
* `jobs.get(jobId)` for `output_data.audioUrl`.
|
|
1768
|
+
*/
|
|
1769
|
+
textToDialogue(input) {
|
|
1770
|
+
return this.client.request("POST", "/v1/text-to-dialogue", { body: input });
|
|
1771
|
+
}
|
|
1759
1772
|
/**
|
|
1760
1773
|
* Clone a voice from an audio FILE you hold in memory
|
|
1761
1774
|
* (`POST /v1/voice-clones`, multipart) — the counterpart to
|
|
@@ -2615,7 +2628,7 @@ var WorkspacesResource = class {
|
|
|
2615
2628
|
return this.client.request("POST", "/v1/workspaces/join", { body: { code } });
|
|
2616
2629
|
}
|
|
2617
2630
|
};
|
|
2618
|
-
var SDK_VERSION = "1.
|
|
2631
|
+
var SDK_VERSION = "1.24.0" ;
|
|
2619
2632
|
var CLIENT_HEADER = "X-Nodaro-Client";
|
|
2620
2633
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
2621
2634
|
var NodaroClient = class _NodaroClient {
|