0.0.7 • Published 6 years ago

sound-detector v0.0.7

Weekly downloads
5
License
MPL 2.0
Repository
-
Last release
6 years ago

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));
});
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago