@cleanfield/node 0.1.0 → 0.1.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
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @cleanfield/node
|
|
2
|
+
|
|
3
|
+
CleanField real-time speech enhancement for Node.js: a prebuilt native addon,
|
|
4
|
+
no node-gyp and no Rust toolchain required.
|
|
5
|
+
|
|
6
|
+
```js
|
|
7
|
+
const { createVoice } = require('@cleanfield/node');
|
|
8
|
+
|
|
9
|
+
const denoiser = createVoice();
|
|
10
|
+
const mask = denoiser.process(frame); // Float32Array(513) -> Float32Array(1026)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- Bit-exact with the reference implementation; AVX2 with a scalar fallback.
|
|
14
|
+
- 16 kHz mono, one instance per stream, allocation-free steady state.
|
|
15
|
+
- Prebuilt binaries are downloaded from the matching GitHub release on install
|
|
16
|
+
(win32 x64/arm64, darwin universal, linux x64/arm64).
|
|
17
|
+
|
|
18
|
+
Source and the C ABI: https://github.com/CleanfieldVoice/Cleanfield
|
|
19
|
+
|
|
20
|
+
License: MIT.
|
package/index.js
CHANGED
|
@@ -52,7 +52,10 @@ function bindingCandidates() {
|
|
|
52
52
|
if (process.env.CLEANFIELD_NODE_BINDING) {
|
|
53
53
|
candidates.push(process.env.CLEANFIELD_NODE_BINDING);
|
|
54
54
|
}
|
|
55
|
-
candidates.push(path.join(__dirname, 'prebuilds', tag, 'cf-node.node'));
|
|
55
|
+
candidates.push(path.join(__dirname, 'prebuilds', tag, 'cf-node.node'));
|
|
56
|
+
if (process.platform === 'darwin') {
|
|
57
|
+
candidates.push(path.join(__dirname, 'prebuilds', 'darwin-universal', 'cf-node.node'));
|
|
58
|
+
}
|
|
56
59
|
candidates.push(path.join(__dirname, 'build', 'Release', 'cf-node.node'));
|
|
57
60
|
candidates.push(path.join(root, 'target', triple, 'release', `cf_node${LIBRARY_SUFFIX}`));
|
|
58
61
|
candidates.push(path.join(root, 'target', 'release', `cf_node${LIBRARY_SUFFIX}`));
|
|
@@ -175,3 +178,4 @@ function createVoice(options = {}) {
|
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
module.exports = { createVoice };
|
|
181
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleanfield/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CleanField real-time speech enhancement engine for Node.js: prebuilt native addon, no node-gyp.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "CleanField",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"test": "node test/smoke.js"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@cleanfield/node-win32-x64": "0.1.
|
|
35
|
-
"@cleanfield/node-win32-arm64": "0.1.
|
|
36
|
-
"@cleanfield/node-darwin-x64": "0.1.
|
|
37
|
-
"@cleanfield/node-darwin-arm64": "0.1.
|
|
38
|
-
"@cleanfield/node-darwin-universal": "0.1.
|
|
39
|
-
"@cleanfield/node-linux-x64": "0.1.
|
|
40
|
-
"@cleanfield/node-linux-arm64": "0.1.
|
|
34
|
+
"@cleanfield/node-win32-x64": "0.1.1",
|
|
35
|
+
"@cleanfield/node-win32-arm64": "0.1.1",
|
|
36
|
+
"@cleanfield/node-darwin-x64": "0.1.1",
|
|
37
|
+
"@cleanfield/node-darwin-arm64": "0.1.1",
|
|
38
|
+
"@cleanfield/node-darwin-universal": "0.1.1",
|
|
39
|
+
"@cleanfield/node-linux-x64": "0.1.1",
|
|
40
|
+
"@cleanfield/node-linux-arm64": "0.1.1"
|
|
41
41
|
},
|
|
42
42
|
"cleanfield": {
|
|
43
43
|
"releaseBaseUrl": "https://github.com/CleanfieldVoice/Cleanfield/releases/download",
|
|
@@ -52,3 +52,5 @@
|
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
|
|
56
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|