
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
sound-detection
Advanced tools
Library to detect sudden noises above ambient from a network stream such as an IP Webcam or network microphone.
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.
$ npm install sound-detection
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.
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();
FAQs
Library to detect sudden noises above ambient from a network stream such as an IP Webcam or network microphone.
The npm package sound-detection receives a total of 4 weekly downloads. As such, sound-detection popularity was classified as not popular.
We found that sound-detection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.