Neptune's Personal Maid

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

    Keywords

    none

    Install

    npm i sound-detector

    DownloadsWeekly Downloads

    9

    Version

    0.0.7

    License

    MPL 2.0

    Unpacked Size

    732 kB

    Total Files

    9

    Last publish

    Collaborators

    • meikidd
    • prasetyaa