@nodaro/sdk 1.1.1 → 1.2.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 +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -16
- package/dist/index.d.ts +23 -16
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3402,18 +3402,22 @@ declare class VoicesResource {
|
|
|
3402
3402
|
* ElevenLabs UUID) OR a {@link VoiceChangerProVoice} object carrying per-voice
|
|
3403
3403
|
* ElevenLabs speech-to-speech settings (stability / similarityBoost / style /
|
|
3404
3404
|
* useSpeakerBoost / `seed`) plus a loudness `volumeMode` (and a manual
|
|
3405
|
-
* `volume`)
|
|
3405
|
+
* `volume`) — OR `null`, meaning keep this speaker's original voice (requires
|
|
3406
|
+
* a platform running cloud-plugins with keep-slot support). At least one
|
|
3407
|
+
* entry must be non-null. A per-voice `seed` makes that speaker's recast
|
|
3408
|
+
* reproducible.
|
|
3406
3409
|
*
|
|
3407
3410
|
* Pass `audioUrl` for audio-only recast or `videoUrl` to recast the audio
|
|
3408
3411
|
* track of a video clip (the server demuxes, recasts, and remuxes).
|
|
3409
3412
|
*
|
|
3410
|
-
* Voice and music are ALWAYS separated first —
|
|
3411
|
-
* isolated vocal stem
|
|
3412
|
-
* `true`) only controls whether that
|
|
3413
|
-
* under the new voices; set it `false`
|
|
3414
|
-
* `separationQuality` selects the
|
|
3415
|
-
*
|
|
3416
|
-
*
|
|
3413
|
+
* Voice and music are ALWAYS separated first — before recasting, the source
|
|
3414
|
+
* is split into an isolated vocal stem and a music/SFX stem.
|
|
3415
|
+
* `preserveBackground` (default `true`) only controls whether that
|
|
3416
|
+
* music/instrumental stem is mixed back under the new voices; set it `false`
|
|
3417
|
+
* for a clean voice-only result. `separationQuality` selects the quality of
|
|
3418
|
+
* the voice/music separation: `"fast"` (default, quicker — preserves more of
|
|
3419
|
+
* the voice) or `"best"` (finer voice/music separation).
|
|
3420
|
+
* `removeBackgroundNoise` additionally denoises the result.
|
|
3417
3421
|
* `musicVolumeMode` sets the level of that preserved background (only relevant
|
|
3418
3422
|
* when `preserveBackground` is on): `"match"` (default) keeps the original
|
|
3419
3423
|
* level, `"normalize"` loudnorms it, `"manual"` uses `musicVolume`%.
|
|
@@ -3452,8 +3456,8 @@ type VoiceChangerProVoice = string | {
|
|
|
3452
3456
|
seed?: number;
|
|
3453
3457
|
/**
|
|
3454
3458
|
* Loudness handling for this recast voice. `"match"` (default) matches the
|
|
3455
|
-
* original speaker's loudness; `"normalize"` applies
|
|
3456
|
-
* `"manual"` uses `volume` as a percentage.
|
|
3459
|
+
* original speaker's loudness; `"normalize"` applies loudness
|
|
3460
|
+
* normalization; `"manual"` uses `volume` as a percentage.
|
|
3457
3461
|
*/
|
|
3458
3462
|
volumeMode?: "match" | "normalize" | "manual";
|
|
3459
3463
|
/** Manual output volume as a percentage (0–200). Consulted only when `volumeMode === "manual"`. */
|
|
@@ -3468,9 +3472,12 @@ interface VoiceChangerProInput {
|
|
|
3468
3472
|
/**
|
|
3469
3473
|
* Voices in speaker-detection order. Speaker N is mapped to `orderedVoices[N]`;
|
|
3470
3474
|
* speakers beyond the array keep their original voice. Each entry is a bare
|
|
3471
|
-
* voice id OR a {@link VoiceChangerProVoice} object with per-voice settings
|
|
3475
|
+
* voice id OR a {@link VoiceChangerProVoice} object with per-voice settings —
|
|
3476
|
+
* OR `null`, meaning keep this speaker's original voice (requires a platform
|
|
3477
|
+
* running cloud-plugins with keep-slot support). At least one entry must be
|
|
3478
|
+
* non-null.
|
|
3472
3479
|
*/
|
|
3473
|
-
orderedVoices: Array<VoiceChangerProVoice>;
|
|
3480
|
+
orderedVoices: Array<VoiceChangerProVoice | null>;
|
|
3474
3481
|
/** Model to use for speech-to-speech. Defaults to the server-configured default when omitted. */
|
|
3475
3482
|
model?: string;
|
|
3476
3483
|
/**
|
|
@@ -3480,8 +3487,8 @@ interface VoiceChangerProInput {
|
|
|
3480
3487
|
*/
|
|
3481
3488
|
preserveBackground?: boolean;
|
|
3482
3489
|
/**
|
|
3483
|
-
*
|
|
3484
|
-
* preserves more of the voice) or `"best"` (
|
|
3490
|
+
* Quality of the voice/music separation. `"fast"` (default, quicker —
|
|
3491
|
+
* preserves more of the voice) or `"best"` (finer voice/music separation).
|
|
3485
3492
|
*/
|
|
3486
3493
|
separationQuality?: "fast" | "best";
|
|
3487
3494
|
/** Strip background noise for a clean voice-only result. */
|
|
@@ -3490,8 +3497,8 @@ interface VoiceChangerProInput {
|
|
|
3490
3497
|
* Level of the preserved background music / SFX stem in the final mix. Only
|
|
3491
3498
|
* relevant when `preserveBackground` is on (otherwise there is no background to
|
|
3492
3499
|
* level). `"match"` (default) leaves the separated instrumental at its original
|
|
3493
|
-
* level; `"normalize"` applies
|
|
3494
|
-
* `musicVolume`%.
|
|
3500
|
+
* level; `"normalize"` applies loudness normalization; `"manual"` sets its
|
|
3501
|
+
* level to `musicVolume`%.
|
|
3495
3502
|
*/
|
|
3496
3503
|
musicVolumeMode?: "match" | "normalize" | "manual";
|
|
3497
3504
|
/** Background music level as a percentage (0–200). Consulted only when `musicVolumeMode === "manual"`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -3402,18 +3402,22 @@ declare class VoicesResource {
|
|
|
3402
3402
|
* ElevenLabs UUID) OR a {@link VoiceChangerProVoice} object carrying per-voice
|
|
3403
3403
|
* ElevenLabs speech-to-speech settings (stability / similarityBoost / style /
|
|
3404
3404
|
* useSpeakerBoost / `seed`) plus a loudness `volumeMode` (and a manual
|
|
3405
|
-
* `volume`)
|
|
3405
|
+
* `volume`) — OR `null`, meaning keep this speaker's original voice (requires
|
|
3406
|
+
* a platform running cloud-plugins with keep-slot support). At least one
|
|
3407
|
+
* entry must be non-null. A per-voice `seed` makes that speaker's recast
|
|
3408
|
+
* reproducible.
|
|
3406
3409
|
*
|
|
3407
3410
|
* Pass `audioUrl` for audio-only recast or `videoUrl` to recast the audio
|
|
3408
3411
|
* track of a video clip (the server demuxes, recasts, and remuxes).
|
|
3409
3412
|
*
|
|
3410
|
-
* Voice and music are ALWAYS separated first —
|
|
3411
|
-
* isolated vocal stem
|
|
3412
|
-
* `true`) only controls whether that
|
|
3413
|
-
* under the new voices; set it `false`
|
|
3414
|
-
* `separationQuality` selects the
|
|
3415
|
-
*
|
|
3416
|
-
*
|
|
3413
|
+
* Voice and music are ALWAYS separated first — before recasting, the source
|
|
3414
|
+
* is split into an isolated vocal stem and a music/SFX stem.
|
|
3415
|
+
* `preserveBackground` (default `true`) only controls whether that
|
|
3416
|
+
* music/instrumental stem is mixed back under the new voices; set it `false`
|
|
3417
|
+
* for a clean voice-only result. `separationQuality` selects the quality of
|
|
3418
|
+
* the voice/music separation: `"fast"` (default, quicker — preserves more of
|
|
3419
|
+
* the voice) or `"best"` (finer voice/music separation).
|
|
3420
|
+
* `removeBackgroundNoise` additionally denoises the result.
|
|
3417
3421
|
* `musicVolumeMode` sets the level of that preserved background (only relevant
|
|
3418
3422
|
* when `preserveBackground` is on): `"match"` (default) keeps the original
|
|
3419
3423
|
* level, `"normalize"` loudnorms it, `"manual"` uses `musicVolume`%.
|
|
@@ -3452,8 +3456,8 @@ type VoiceChangerProVoice = string | {
|
|
|
3452
3456
|
seed?: number;
|
|
3453
3457
|
/**
|
|
3454
3458
|
* Loudness handling for this recast voice. `"match"` (default) matches the
|
|
3455
|
-
* original speaker's loudness; `"normalize"` applies
|
|
3456
|
-
* `"manual"` uses `volume` as a percentage.
|
|
3459
|
+
* original speaker's loudness; `"normalize"` applies loudness
|
|
3460
|
+
* normalization; `"manual"` uses `volume` as a percentage.
|
|
3457
3461
|
*/
|
|
3458
3462
|
volumeMode?: "match" | "normalize" | "manual";
|
|
3459
3463
|
/** Manual output volume as a percentage (0–200). Consulted only when `volumeMode === "manual"`. */
|
|
@@ -3468,9 +3472,12 @@ interface VoiceChangerProInput {
|
|
|
3468
3472
|
/**
|
|
3469
3473
|
* Voices in speaker-detection order. Speaker N is mapped to `orderedVoices[N]`;
|
|
3470
3474
|
* speakers beyond the array keep their original voice. Each entry is a bare
|
|
3471
|
-
* voice id OR a {@link VoiceChangerProVoice} object with per-voice settings
|
|
3475
|
+
* voice id OR a {@link VoiceChangerProVoice} object with per-voice settings —
|
|
3476
|
+
* OR `null`, meaning keep this speaker's original voice (requires a platform
|
|
3477
|
+
* running cloud-plugins with keep-slot support). At least one entry must be
|
|
3478
|
+
* non-null.
|
|
3472
3479
|
*/
|
|
3473
|
-
orderedVoices: Array<VoiceChangerProVoice>;
|
|
3480
|
+
orderedVoices: Array<VoiceChangerProVoice | null>;
|
|
3474
3481
|
/** Model to use for speech-to-speech. Defaults to the server-configured default when omitted. */
|
|
3475
3482
|
model?: string;
|
|
3476
3483
|
/**
|
|
@@ -3480,8 +3487,8 @@ interface VoiceChangerProInput {
|
|
|
3480
3487
|
*/
|
|
3481
3488
|
preserveBackground?: boolean;
|
|
3482
3489
|
/**
|
|
3483
|
-
*
|
|
3484
|
-
* preserves more of the voice) or `"best"` (
|
|
3490
|
+
* Quality of the voice/music separation. `"fast"` (default, quicker —
|
|
3491
|
+
* preserves more of the voice) or `"best"` (finer voice/music separation).
|
|
3485
3492
|
*/
|
|
3486
3493
|
separationQuality?: "fast" | "best";
|
|
3487
3494
|
/** Strip background noise for a clean voice-only result. */
|
|
@@ -3490,8 +3497,8 @@ interface VoiceChangerProInput {
|
|
|
3490
3497
|
* Level of the preserved background music / SFX stem in the final mix. Only
|
|
3491
3498
|
* relevant when `preserveBackground` is on (otherwise there is no background to
|
|
3492
3499
|
* level). `"match"` (default) leaves the separated instrumental at its original
|
|
3493
|
-
* level; `"normalize"` applies
|
|
3494
|
-
* `musicVolume`%.
|
|
3500
|
+
* level; `"normalize"` applies loudness normalization; `"manual"` sets its
|
|
3501
|
+
* level to `musicVolume`%.
|
|
3495
3502
|
*/
|
|
3496
3503
|
musicVolumeMode?: "match" | "normalize" | "manual";
|
|
3497
3504
|
/** Background music level as a percentage (0–200). Consulted only when `musicVolumeMode === "manual"`. */
|
package/dist/index.js
CHANGED
|
@@ -1522,18 +1522,22 @@ var VoicesResource = class {
|
|
|
1522
1522
|
* ElevenLabs UUID) OR a {@link VoiceChangerProVoice} object carrying per-voice
|
|
1523
1523
|
* ElevenLabs speech-to-speech settings (stability / similarityBoost / style /
|
|
1524
1524
|
* useSpeakerBoost / `seed`) plus a loudness `volumeMode` (and a manual
|
|
1525
|
-
* `volume`)
|
|
1525
|
+
* `volume`) — OR `null`, meaning keep this speaker's original voice (requires
|
|
1526
|
+
* a platform running cloud-plugins with keep-slot support). At least one
|
|
1527
|
+
* entry must be non-null. A per-voice `seed` makes that speaker's recast
|
|
1528
|
+
* reproducible.
|
|
1526
1529
|
*
|
|
1527
1530
|
* Pass `audioUrl` for audio-only recast or `videoUrl` to recast the audio
|
|
1528
1531
|
* track of a video clip (the server demuxes, recasts, and remuxes).
|
|
1529
1532
|
*
|
|
1530
|
-
* Voice and music are ALWAYS separated first —
|
|
1531
|
-
* isolated vocal stem
|
|
1532
|
-
* `true`) only controls whether that
|
|
1533
|
-
* under the new voices; set it `false`
|
|
1534
|
-
* `separationQuality` selects the
|
|
1535
|
-
*
|
|
1536
|
-
*
|
|
1533
|
+
* Voice and music are ALWAYS separated first — before recasting, the source
|
|
1534
|
+
* is split into an isolated vocal stem and a music/SFX stem.
|
|
1535
|
+
* `preserveBackground` (default `true`) only controls whether that
|
|
1536
|
+
* music/instrumental stem is mixed back under the new voices; set it `false`
|
|
1537
|
+
* for a clean voice-only result. `separationQuality` selects the quality of
|
|
1538
|
+
* the voice/music separation: `"fast"` (default, quicker — preserves more of
|
|
1539
|
+
* the voice) or `"best"` (finer voice/music separation).
|
|
1540
|
+
* `removeBackgroundNoise` additionally denoises the result.
|
|
1537
1541
|
* `musicVolumeMode` sets the level of that preserved background (only relevant
|
|
1538
1542
|
* when `preserveBackground` is on): `"match"` (default) keeps the original
|
|
1539
1543
|
* level, `"normalize"` loudnorms it, `"manual"` uses `musicVolume`%.
|