@buffered-audio/nodes 0.22.0 → 0.24.2
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/README.md +16 -17
- package/dist/{chunk-YJWZP2OD.js → chunk-BKEMKXGG.js} +672 -531
- package/dist/index.d.ts +25 -10
- package/dist/index.js +1006 -934
- package/dist/nlm-worker.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ Remove a region of audio
|
|
|
69
69
|
| Parameter | Type | Default | Description |
|
|
70
70
|
| --- | --- | --- | --- |
|
|
71
71
|
| `regions` | Object[] | `[]` | Regions |
|
|
72
|
-
| `regions[].start` | number (
|
|
73
|
-
| `regions[].end` | number (
|
|
72
|
+
| `regions[].start` | number (0 to 86400) | — | Start (seconds) |
|
|
73
|
+
| `regions[].end` | number (0 to 86400) | — | End (seconds) |
|
|
74
74
|
|
|
75
75
|
### De-Bleed Adaptive
|
|
76
76
|
|
|
@@ -92,16 +92,15 @@ Adaptive (MEF FDAF Kalman + MWF + MSAD) reference-based microphone bleed reducti
|
|
|
92
92
|
|
|
93
93
|
### DeepFilterNet3 (Denoiser)
|
|
94
94
|
|
|
95
|
-
Remove background noise from speech using DeepFilterNet3 (48 kHz full-band CRN)
|
|
95
|
+
Remove background noise from speech using DeepFilterNet3 (48 kHz full-band CRN). At other source rates, the internal resampling round trip may add or drop up to two source-rate frames.
|
|
96
96
|
|
|
97
97
|
[Source](./src/transforms/deep-filter-net-3/index.ts)
|
|
98
98
|
|
|
99
99
|
| Parameter | Type | Default | Description |
|
|
100
100
|
| --- | --- | --- | --- |
|
|
101
101
|
| `modelPath` | string | `""` | DeepFilterNet3 48 kHz denoiser model (.onnx) Download: [dfn3](https://github.com/yuyun2000/SpeechDenoiser) |
|
|
102
|
-
| `ffmpegPath` | string | `""` | FFmpeg —
|
|
102
|
+
| `ffmpegPath` | string | `""` | FFmpeg — used when the input audio is not 48 kHz to chain up/down resamplers around the inference stream; can be left blank for 48 kHz input. Download: [ffmpeg](https://ffmpeg.org/download.html) |
|
|
103
103
|
| `onnxAddonPath` | string | `""` | ONNX Runtime native addon Download: [onnx-addon](https://github.com/visionsofparadise/onnx-runtime-addon) |
|
|
104
|
-
| `sampleRate` | number (min 0) | — | Source audio sample rate in Hz. Required. When ≠ 48000, ffmpeg resampling is chained around the inference stream via _setup composition. |
|
|
105
104
|
| `attenuation` | number (0 to 100) | `30` | Attenuation cap in dB. Maps to the ONNX `atten_lim_db` input; 0 = no cap |
|
|
106
105
|
|
|
107
106
|
### Dither
|
|
@@ -226,15 +225,15 @@ Peak-aware content-adaptive curve fitting (LUFS, true-peak, LRA) via a single co
|
|
|
226
225
|
| Parameter | Type | Default | Description |
|
|
227
226
|
| --- | --- | --- | --- |
|
|
228
227
|
| `targetLufs` | number (-50 to 0, step 0.1) | `-16` | Target integrated loudness (LUFS) |
|
|
229
|
-
| `pivot` | number (
|
|
230
|
-
| `floor` | number (
|
|
228
|
+
| `pivot` | number (-80 to 0), optional | — | Body anchor (dB). Default: median(considered LRA blocks) from BS.1770 LRA gating in pass 1. |
|
|
229
|
+
| `floor` | number (-100 to 0), optional | — | Silence threshold (dB). Default: min(considered LRA blocks); no floor when no blocks survive gating. |
|
|
231
230
|
| `limitPercentile` | number (0.5 to 1) | `0.995` | Top-1−p fraction of detection samples to brick-wall. Default 0.995 brick-walls the top 0.5%. |
|
|
232
|
-
| `limitDb` | number (
|
|
231
|
+
| `limitDb` | number (-60 to 0), optional | — | Limit-anchor override (dB). Default: auto-derived from quantile(detection histogram, limitPercentile). Set explicitly to fix the limit anchor. |
|
|
233
232
|
| `maxAttempts` | number (min 1) | `10` | Hard cap on iteration attempts. |
|
|
234
|
-
| `targetTp` | number (
|
|
233
|
+
| `targetTp` | number (-24 to 0), optional | — | True-peak target (dBTP). Default: source true peak (peaks unchanged). |
|
|
235
234
|
| `smoothing` | number (0.01 to 200) | `1` | Peak-respecting envelope time constant (ms). |
|
|
236
|
-
| `tolerance` | number (
|
|
237
|
-
| `peakTolerance` | number (
|
|
235
|
+
| `tolerance` | number (0 to 6) | `0.5` | Iteration exit threshold (LUFS dB). |
|
|
236
|
+
| `peakTolerance` | number (0 to 6) | `0.1` | One-sided iteration exit threshold for output true-peak overshoot (dBTP; ceiling — undershoot ignored). |
|
|
238
237
|
|
|
239
238
|
### Normalize
|
|
240
239
|
|
|
@@ -254,8 +253,8 @@ Add silence to start or end of audio
|
|
|
254
253
|
|
|
255
254
|
| Parameter | Type | Default | Description |
|
|
256
255
|
| --- | --- | --- | --- |
|
|
257
|
-
| `before` | number (
|
|
258
|
-
| `after` | number (
|
|
256
|
+
| `before` | number (0 to 300, step 0.001) | `0` | Before |
|
|
257
|
+
| `after` | number (0 to 300, step 0.001) | `0` | After |
|
|
259
258
|
|
|
260
259
|
### Pan
|
|
261
260
|
|
|
@@ -328,7 +327,7 @@ Replace a region of audio with processed content
|
|
|
328
327
|
| Parameter | Type | Default | Description |
|
|
329
328
|
| --- | --- | --- | --- |
|
|
330
329
|
| `insertPath` | string | `""` | Insert File Path |
|
|
331
|
-
| `insertAt` | number (
|
|
330
|
+
| `insertAt` | number (0 to 1000000000) | `0` | Insert At (frames) |
|
|
332
331
|
|
|
333
332
|
### Trim
|
|
334
333
|
|
|
@@ -351,7 +350,7 @@ Measure source true peak (4× upsampled, BS.1770-4 style) and apply a single lin
|
|
|
351
350
|
|
|
352
351
|
| Parameter | Type | Default | Description |
|
|
353
352
|
| --- | --- | --- | --- |
|
|
354
|
-
| `target` | number (
|
|
353
|
+
| `target` | number (-24 to 0) | `-1` | Target true peak (dBTP). Must be < 0. |
|
|
355
354
|
|
|
356
355
|
### VST3
|
|
357
356
|
|
|
@@ -392,8 +391,8 @@ Write audio to a file
|
|
|
392
391
|
| `bitDepth` | "16" \| "24" \| "32" \| "32f" | `"16"` | |
|
|
393
392
|
| `encoding` | Object, optional | — | Encode through ffmpeg to a non-WAV format. Requires `ffmpegPath`. |
|
|
394
393
|
| `encoding.format` | "wav" \| "flac" \| "mp3" \| "aac" | — | |
|
|
395
|
-
| `encoding.bitrate` |
|
|
396
|
-
| `encoding.vbr` | number, optional | — | |
|
|
394
|
+
| `encoding.bitrate` | number (8 to 1024), optional | — | Constant bitrate in kbps for MP3 and AAC. Defaults to 192 kbps. |
|
|
395
|
+
| `encoding.vbr` | number (0 to 9), optional | — | |
|
|
397
396
|
| `encoding.sampleRate` | number (min 0), optional | — | Output sample rate (Hz). When set, ffmpeg resamples on encode. |
|
|
398
397
|
|
|
399
398
|
## Creating Nodes
|