@lumiastream/wakeword 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/lib/voice.js +1 -2
  2. package/package.json +1 -1
package/lib/voice.js CHANGED
@@ -1,4 +1,3 @@
1
- // voice.js (ESM)
2
1
  import { Model, Recognizer, setLogLevel } from "vosk-koffi";
3
2
  import record from "./record.js";
4
3
  import { dirname, join } from "node:path";
@@ -123,7 +122,7 @@ const rl = readline.createInterface({ input: process.stdin, terminal: false });
123
122
 
124
123
  rl.on("line", (line) => {
125
124
  const trimmed = line.trim();
126
- if (!trimmed.startsWith("update,") || !trimmed.startsWith("confidence,"))
125
+ if (!trimmed.startsWith("update,") && !trimmed.startsWith("confidence,"))
127
126
  return;
128
127
 
129
128
  if (trimmed.startsWith("confidence,")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/wakeword",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "lib/voice.js",
6
6
  "files": [