Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    wave-readerpublic

    Installation

    npm install wave-reader
    

    License

    BSD

    Usage

    var FS = require('fs');
    var WaveReader = require('wave-reader');
    
    var reader = new WaveReader({ frameDuration: 60 });
    reader.on('data', function (data, offset, length) {
      /* audio frame sample data */
    });
    reader.on('format', function (format) {
      /* format info */
    });
    reader.on('chunk', function (id, data) {
      /* unknown subchunk id and data `Buffer` */
    });
    reader.on('end', function () {
      /* done */
    });
    
    var stream = FS.createReadStream("gangnam-style.wav");
    reader.readStream(stream)
    

    Keywords

    none

    install

    npm i wave-reader

    Downloadsweekly downloads

    9

    version

    0.0.4

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar