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