node-red-contrib-snowboy
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -15,3 +15,3 @@ module.exports = function(RED) { | ||
var node = this; | ||
node.config = config; | ||
node.inputStream = null; | ||
@@ -33,11 +33,13 @@ | ||
detector.on('silence', function() { | ||
node.log('Silence detected'); | ||
if( node.config.debug == true ) | ||
node.log('Silence detected'); | ||
}); | ||
detector.on('sound', function() { | ||
node.log('Sound detected'); | ||
if( node.config.debug == true ) | ||
node.log('Sound detected'); | ||
}); | ||
detector.on('error', function() { | ||
node.log('Error in detector: ' + error); | ||
node.error('Error in detector: ' + error); | ||
}); | ||
@@ -55,3 +57,4 @@ | ||
node.on('input', function(msg) { | ||
node.log("Event input"); | ||
if( node.config.debug == true ) | ||
node.log("Event input"); | ||
@@ -81,3 +84,5 @@ node.msg = msg; | ||
node.on('close', function() { | ||
node.log("Event close"); | ||
if( node.config.debug == true ) | ||
node.log("Event close"); | ||
if( node.inputStream != null ) | ||
@@ -84,0 +89,0 @@ node.inputStream.unpipe(detector); |
{ | ||
"name": "node-red-contrib-snowboy", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Node-RED node for Snowboy (bases on nodejs Snowboy : a customizable hotword detection engine for you to create your own hotword like \"OK Google\" or \"Alexa\").", | ||
@@ -5,0 +5,0 @@ "node-red": { |
@@ -32,2 +32,3 @@ # node-red-contrib-snowboy | ||
* **Hotwords**: Hotword to detect (like `jarvis`) | ||
* **Debug**: Set it to true if you want more log | ||
@@ -34,0 +35,0 @@ ## Snowboy |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7692
75
47