@nodaro/sdk 1.2.0 → 1.4.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 CHANGED
@@ -1551,6 +1551,39 @@ var VoicesResource = class {
1551
1551
  recast(input) {
1552
1552
  return this.client.request("POST", "/v1/voice-changer-pro", { body: input });
1553
1553
  }
1554
+ /**
1555
+ * Detect the speakers in a clip WITHOUT recasting yet
1556
+ * (`POST /v1/voice-changer-pro/analyze`) — the first step of the interactive
1557
+ * flow. Separates voice from music once and diarizes the vocals, returning the
1558
+ * speaker list so a user (or agent) can choose a voice per speaker before
1559
+ * committing to a paid recast. Poll `jobs.get(jobId)`: the completed job's
1560
+ * `output_data` carries the separated stem urls + the detected `speakers`
1561
+ * (each with `id`, time `segments`, `firstStartSec`, `wordCount`, `snippet`)
1562
+ * and the detected language — reshape it into a {@link VcpAnalysis} and pass it
1563
+ * as `recast({ ..., analysis })` to skip re-detection. With `suggestTitle`,
1564
+ * `output_data.suggestedTitle` also carries an LLM-proposed title.
1565
+ *
1566
+ * Cloud-only; costs credits and runs async.
1567
+ */
1568
+ analyze(input) {
1569
+ return this.client.request("POST", "/v1/voice-changer-pro/analyze", { body: input });
1570
+ }
1571
+ /**
1572
+ * Render a final video from a mixed set of stems
1573
+ * (`POST /v1/voice-changer-pro/export`) — the last step of the interactive
1574
+ * flow. After `recast({ output: "stems" })` hands back the dry per-track stems
1575
+ * and the user has set levels / mutes / an effect in your editor, pass those
1576
+ * `tracks` (plus the source `videoUrl`) here to mix and remux into the finished
1577
+ * video. The video is stream-copied (never re-encoded), so the export is
1578
+ * bit-identical to your preview. At least one track must be un-muted (all-muted
1579
+ * is a 400); `voiceFx` is applied to the voice tracks at render time.
1580
+ *
1581
+ * Cloud-only; costs credits and runs async — poll `jobs.get(jobId)` for the
1582
+ * result (`output_data.videoUrl`).
1583
+ */
1584
+ exportMix(input) {
1585
+ return this.client.request("POST", "/v1/voice-changer-pro/export", { body: input });
1586
+ }
1554
1587
  };
1555
1588
 
1556
1589
  // src/resources/credits.ts