bumblebee-hotword
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -15,2 +15,3 @@ const EventEmitter = require('events'); | ||
jarvis: require('../hotwords/jarvis'), | ||
ok_google: require('../hotwords/ok_google'), | ||
porcupine: require('../hotwords/porcupine'), | ||
@@ -49,6 +50,6 @@ terminator: require('../hotwords/terminator') | ||
data, | ||
sensitivity: sensitivity || this.defaultSensitivity | ||
sensitivity: sensitivity === undefined? this.defaultSensitivity : sensitivity | ||
}; | ||
} | ||
else throw new Error('no hotword data'); | ||
else throw new Error('no hotword data for '+name); | ||
} | ||
@@ -55,0 +56,0 @@ |
{ | ||
"name": "bumblebee-hotword", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A minimalist hotword / wake word for the web, based on Porcupine", | ||
@@ -19,3 +19,4 @@ "main": "lib/bumblebee.js", | ||
"url": "https://github.com/jaxcore/bumblebee-hotword" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
@@ -85,2 +85,3 @@  | ||
* jarvis | ||
* ok google | ||
* porcupine | ||
@@ -105,2 +106,20 @@ * terminator | ||
### Adding a Custom Hotword | ||
Like the open source hotwords, the file must be in Porcupine's "_wasm.ppn" format. | ||
You can use the [tools/convert_ppn.sh](tools/convert_ppn.sh) shell script (uses the xdd command line program) to convert the PPN file to a JavaScript file: | ||
``` | ||
sh tools/convert_ppn.sh my_custom_hotword_wasm.ppn | ||
``` | ||
The resulting .js file can then be added to Bumblebee: | ||
``` | ||
import my_custom_hotword from './my_custom_hotword' | ||
bumblebee.addHotword('my_custom_hotword', my_custom_hotword, 0.5) | ||
``` | ||
### Sensitivity | ||
@@ -185,2 +204,6 @@ | ||
**0.2.1:** | ||
- add "ok google" hotword | ||
**0.2.0:** | ||
@@ -194,28 +217,1 @@ | ||
- add microphone selection | ||
**0.0.9:** | ||
- added blueberry, and white_smoke to the default hotwords, removed debug console.log's | ||
**0.0.8:** | ||
- add bufferSize option | ||
**0.0.7:** | ||
- upgrade to Porcupine v1.8, the 'data' event now contains float data and the hotword | ||
**0.0.6:** | ||
- add the default hotwords back in to simplify the syntax to .addHotword('bumblebee') | ||
**0.0.5:** | ||
- fixed start/stop related bugs | ||
- added separate setLineColor() setBackgroundColor() methods | ||
**0.0.4:** | ||
- added spectrum analyser | ||
- setMuted() and setMicVolume() methods | ||
- DeepSpeech example |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
458890
19
5773
0
214