sound-detector

0.0.7 • Public • Published

Sound Detector

Installation

npm install -g sound-detector

Usage

Command line

# read from a file 
sounddetector -p {example.mp3}
 
# read from input stream 
sounddetector -s < cat {example.mp3}
 
# skip the ffmpeg convert 
sounddetector -p {example.mp3} --no-ffmpeg

Node.js

const path = require('path');
const soundDetector = require('sound-detector');
 
const filepath = './example.mp3'; // path to your video/audio
const soundType = 'gunfire';
soundDetector({
  type: soundType,
  path: path.resolve(filepath)
}).then(timestamps => {
  process.stdout.write(JSON.stringify(timestamps));
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    1
    • latest

Version History

Package Sidebar

Install

npm i sound-detector

Weekly Downloads

1

Version

0.0.7

License

MPL 2.0

Unpacked Size

732 kB

Total Files

9

Last publish

Collaborators

  • meikidd
  • prasetyaa