sound-detection
Advanced tools
Comparing version
@@ -27,3 +27,3 @@ var http = require('http'); | ||
dB = toDecibel(rms); | ||
if (options.triggerLevel) | ||
if (options.triggerLevel) { | ||
if (dB > toDecibel(rmsAvg()) + options.triggerLevel) { | ||
@@ -45,2 +45,3 @@ callback(dB); | ||
} | ||
module.exports = NoiseDetection; |
{ | ||
"name": "sound-detection", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Library to detect sudden noises above ambient from a network stream such as an IP Webcam or network microphone. ", | ||
@@ -5,0 +5,0 @@ "author": "Barry John Williams <barry@bjw.me.uk>", |
4210
0.07%