@lumiastream/wakeword 1.0.1-alpha.3 → 1.0.1-alpha.5

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/bin/wakeword +4 -3
  2. package/package.json +2 -2
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.3",
3
+ "version": "1.0.1-alpha.5",
4
4
  "type": "module",
5
5
  "main": "lib/voice.mjs",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "scripts": {
15
15
  "postinstall": "chmod +x binaries/soxmac/soxmac binaries/soxlinux/soxlinux binaries/soxwindows/sox.exe || true"
16
16
  },
17
- "optionalDependencies": {
17
+ "bundledDependencies": {
18
18
  "@lumiastream/wakeword-darwin": "file:binaries/soxmac",
19
19
  "@lumiastream/wakeword-linux": "file:binaries/soxlinux",
20
20
  "@lumiastream/wakeword-win32": "file:binaries/soxwindows"