@audio/neural-denoise 0.6.0 → 0.6.1

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 (2) hide show
  1. package/deepfilter.js +1 -1
  2. package/package.json +2 -2
package/deepfilter.js CHANGED
@@ -58,7 +58,7 @@ export const LEVEL = -20
58
58
  // the gain (README, Accuracy).
59
59
  export const FILL = -20
60
60
 
61
- const isNode = typeof process !== 'undefined' && !!process.versions?.node
61
+ const isNode = globalThis.process?.release?.name === 'node' // Node, Bun, Deno: not a process polyfill (esm.sh's, a bundler's), whose versions.node is set
62
62
 
63
63
  // ------------------------------------------------ model archive
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audio/neural-denoise",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Neural speech enhancement: RNNoise (Valin 2018) in pure JS, bit-exact to its C, weights bundled; DeepFilterNet3 through ONNX Runtime, matching the Python original; music passes through untouched (inaSpeechSegmenter's speech/music/noise CNN)",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -38,7 +38,7 @@
38
38
  "audio.d.ts"
39
39
  ],
40
40
  "dependencies": {
41
- "@audio/neural-runtime": "^0.1.0",
41
+ "@audio/neural-runtime": "^0.2.0",
42
42
  "@audio/resample-sinc": "^1.3.0"
43
43
  },
44
44
  "devDependencies": {