@lumiastream/wakeword 1.0.1-alpha.2 → 1.0.1-alpha.4

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/bin/wakeword CHANGED
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
+
2
3
  import { fileURLToPath } from "url";
3
4
  import { spawn } from "node:child_process";
4
5
  import path from "node:path";
5
6
 
6
7
  // Pick correct SoX binary for the current OS
7
8
  const exe = {
8
- win32: "sox.exe",
9
- darwin: "soxmac",
10
- linux: "soxlinux",
9
+ darwin: "@lumiastream/wakeword-darwin",
10
+ linux: "@lumiastream/wakeword-linux",
11
+ win32: "@lumiastream/wakeword-win32",
11
12
  }[process.platform];
12
13
 
13
14
  const soxPath = path.join(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/wakeword",
3
- "version": "1.0.1-alpha.2",
3
+ "version": "1.0.1-alpha.4",
4
4
  "type": "module",
5
5
  "main": "lib/voice.mjs",
6
6
  "bin": {
@@ -9,16 +9,15 @@
9
9
  "files": [
10
10
  "bin/",
11
11
  "lib/",
12
- "binaries/",
13
12
  "models/"
14
13
  ],
15
14
  "scripts": {
16
- "postinstall": "chmod +x binaries/soxmac binaries/soxlinux || true"
15
+ "postinstall": "chmod +x binaries/soxmac/soxmac binaries/soxlinux/soxlinux binaries/soxwindows/sox.exe || true"
17
16
  },
18
17
  "optionalDependencies": {
19
- "@lumiastream/wakeword-darwin": "file:./binaries/soxmac",
20
- "@lumiastream/wakeword-linux": "file:./binaries/soxlinux",
21
- "@lumiastream/wakeword-win32": "file:./binaries/sox.exe"
18
+ "@lumiastream/wakeword-darwin": "file:binaries/soxmac",
19
+ "@lumiastream/wakeword-linux": "file:binaries/soxlinux",
20
+ "@lumiastream/wakeword-win32": "file:binaries/soxwindows"
22
21
  },
23
22
  "dependencies": {
24
23
  "@lumiastream/record": "^1.0.1",
package/binaries/sox.exe DELETED
Binary file
package/binaries/soxlinux DELETED
Binary file
package/binaries/soxmac DELETED
Binary file