You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sound-detection

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

sound-detection

Library to detect sudden noises above ambient from a network stream such as an IP Webcam or network microphone.

0.0.3
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

sound-detection

Library to detect sudden noises above ambient from a network stream such as an IP Webcam or network microphone.

Example usage would be to monitor the microphone of an IP camera used as a Baby monitor, the trigger could be used to switch lights on, trigger a pushover alert or video recording.

Usage

The ambient noise is constantly monitored and adapts over time, the triggerLevel variables indicates how much over the background noise in decibels is required to trigger the callback which is invoked with the detected decibel value.

The decibel value is referenced against the maximum volume transmitted in a PCM stream.

Example Usage

var SoundDetection = require('sound-detection');

var options = {
    url = 'http://babymonitorcam/audio.cgi'
    format: {
        bitDepth: 16,
        numberOfChannels: 1,
        signed: true
    },
    triggerLevel = 30
}

var detector = new SoundDetection(options, function(dB) {
    console.log('Noise Detected at %sdB', dB);
});

detector.start();

Keywords

babymonitor

FAQs

Package last updated on 06 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.