@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.d.cts CHANGED
@@ -3769,6 +3769,32 @@ declare class VoicesResource {
3769
3769
  dub(input: DubbingInput): Promise<{
3770
3770
  jobId: string;
3771
3771
  }>;
3772
+ /**
3773
+ * Voice a multi-speaker script as ONE audio file
3774
+ * (`POST /v1/text-to-dialogue`, ElevenLabs Dialogue v3). Each `dialogue`
3775
+ * line is `{ text, voice }` in speaking order — `voice` is a premade voice
3776
+ * name or an ElevenLabs voice UUID (cloned/library voices work too; mixed
3777
+ * casts are fine). At most 5,000 characters total across lines (≤2,000
3778
+ * recommended for best quality) and 10 unique voices. Line text may carry
3779
+ * `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
3780
+ * `jobs.get(jobId)` for `output_data.audioUrl`.
3781
+ */
3782
+ textToDialogue(input: {
3783
+ dialogue: Array<{
3784
+ text: string;
3785
+ voice: string;
3786
+ }>;
3787
+ /** v3 stability: 0 (most variable) | 0.5 (balanced) | 1 (most stable). */
3788
+ stability?: 0 | 0.5 | 1;
3789
+ /** ISO 639-1 language hint (e.g. "en"); auto-detected when omitted. */
3790
+ languageCode?: string;
3791
+ /** Deterministic sampling seed (integer 0–4294967295). Omit for random. */
3792
+ seed?: number;
3793
+ /** Spell out numbers/dates/abbreviations: "auto" (default) | "on" | "off". */
3794
+ applyTextNormalization?: "auto" | "on" | "off";
3795
+ }): Promise<{
3796
+ jobId: string;
3797
+ }>;
3772
3798
  /**
3773
3799
  * Clone a voice from an audio FILE you hold in memory
3774
3800
  * (`POST /v1/voice-clones`, multipart) — the counterpart to
package/dist/index.d.ts CHANGED
@@ -3769,6 +3769,32 @@ declare class VoicesResource {
3769
3769
  dub(input: DubbingInput): Promise<{
3770
3770
  jobId: string;
3771
3771
  }>;
3772
+ /**
3773
+ * Voice a multi-speaker script as ONE audio file
3774
+ * (`POST /v1/text-to-dialogue`, ElevenLabs Dialogue v3). Each `dialogue`
3775
+ * line is `{ text, voice }` in speaking order — `voice` is a premade voice
3776
+ * name or an ElevenLabs voice UUID (cloned/library voices work too; mixed
3777
+ * casts are fine). At most 5,000 characters total across lines (≤2,000
3778
+ * recommended for best quality) and 10 unique voices. Line text may carry
3779
+ * `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
3780
+ * `jobs.get(jobId)` for `output_data.audioUrl`.
3781
+ */
3782
+ textToDialogue(input: {
3783
+ dialogue: Array<{
3784
+ text: string;
3785
+ voice: string;
3786
+ }>;
3787
+ /** v3 stability: 0 (most variable) | 0.5 (balanced) | 1 (most stable). */
3788
+ stability?: 0 | 0.5 | 1;
3789
+ /** ISO 639-1 language hint (e.g. "en"); auto-detected when omitted. */
3790
+ languageCode?: string;
3791
+ /** Deterministic sampling seed (integer 0–4294967295). Omit for random. */
3792
+ seed?: number;
3793
+ /** Spell out numbers/dates/abbreviations: "auto" (default) | "on" | "off". */
3794
+ applyTextNormalization?: "auto" | "on" | "off";
3795
+ }): Promise<{
3796
+ jobId: string;
3797
+ }>;
3772
3798
  /**
3773
3799
  * Clone a voice from an audio FILE you hold in memory
3774
3800
  * (`POST /v1/voice-clones`, multipart) — the counterpart to
package/dist/index.js 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.23.0" ;
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 {