@audio/denoise 0.3.5 → 0.3.6

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +6 -21
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -68,7 +68,7 @@ denoise(data, { force: 'wiener' }) // skip classifie
68
68
  2. impulses (excess kurtosis of AR residual > 12)
69
69
  3. sibilance (high/mid band power ratio > 8)
70
70
  4. LF rumble (low/mid band power ratio > 3)
71
- 5. non-stationary noise (frame-energy CV > 0.6) → omlsa
71
+ 5. non-stationary noise (CV of the rolling-minimum frame-energy floor > 0.3) → omlsa
72
72
  6. otherwise → wiener
73
73
 
74
74
 
package/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  // For smaller bundles, depend directly on the individual atom.
3
3
 
4
4
  import gate_ from '@audio/dynamics-gate'
5
- import deesser_ from '@audio/dynamics-deesser'
6
5
 
7
6
  export { default as dehum } from '@audio/denoise-dehum'
8
7
  export { default as specsub } from '@audio/denoise-spectral'
@@ -15,7 +14,7 @@ export { default as dewind } from '@audio/denoise-dewind'
15
14
  export { default as deplosive } from '@audio/denoise-deplosive'
16
15
  export { default as debreath } from '@audio/denoise-debreath'
17
16
  export { default as dereverb } from '@audio/denoise-dereverb'
18
- export { default as denoise, classify } from '@audio/denoise-detect'
17
+ export { default as denoise, classify, deesser } from '@audio/denoise-detect'
19
18
  export { default as repair } from '@audio/denoise-repair'
20
19
 
21
20
  export { snr, segSnr, lsd, nrr, speechAttenuation } from '@audio/quality'
@@ -23,10 +22,11 @@ export { vad, spp, ddSnr } from '@audio/vad'
23
22
  export { noiseProfile, minStats, imcra } from '@audio/noise-estimate'
24
23
  export { stftBatch, stftStream, stftAnalyse } from '@audio/stft'
25
24
 
26
- // gate/deesser — @audio/dynamics-{gate,deesser} behind this family's seconds-based,
27
- // in-place API (2026-07 near-dupe merge: the hysteresis + look-ahead gate lives in
28
- // dynamics-gate; deesser mode 'band' is the dynamic peaking-EQ architecture this
29
- // family shipped). Batch shape — for chunked streaming use the dynamics streams.
25
+ // gate — @audio/dynamics-gate behind this family's seconds-based, in-place API
26
+ // (2026-07 near-dupe merge: the hysteresis + look-ahead gate lives in dynamics-gate).
27
+ // Batch shape — for chunked streaming use the dynamics streams. deesser's matching
28
+ // adapter lives in @audio/denoise-detect (re-exported above) — classify() needs it
29
+ // internally, so the umbrella imports rather than duplicates it.
30
30
  export const gate = (data, params = {}) => {
31
31
  let th = params.threshold ?? -40
32
32
  data.set(gate_(data, {
@@ -41,18 +41,3 @@ export const gate = (data, params = {}) => {
41
41
  }))
42
42
  return data
43
43
  }
44
-
45
- export const deesser = (data, params = {}) => {
46
- data.set(deesser_(data, {
47
- sampleRate: params.fs || 44100,
48
- mode: 'band',
49
- freq: params.freq ?? 6000,
50
- q: params.Q ?? 1.4,
51
- threshold: params.threshold ?? -30,
52
- ratio: params.ratio ?? 4,
53
- attack: (params.attack ?? 0.001) * 1000,
54
- release: (params.release ?? 0.05) * 1000,
55
- block: params.block,
56
- }))
57
- return data
58
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audio/denoise",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "description": "Noise reduction — gate, spectral subtraction, Wiener, OM-LSA, dehum, declick, decrackle, declip, deesser, dereverb",
6
6
  "sideEffects": false,
@@ -61,7 +61,6 @@
61
61
  "@audio/denoise-dereverb": "^0.1.0",
62
62
  "@audio/denoise-detect": "^0.1.0",
63
63
  "@audio/dynamics-gate": "^0.1.4",
64
- "@audio/dynamics-deesser": "^0.2.3",
65
64
  "@audio/denoise-repair": "^0.1.0",
66
65
  "@audio/quality": "^1.0.0",
67
66
  "@audio/stft": "^1.0.3"