Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-snowboy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-snowboy - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

17

node-red-contrib-snowboy.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc