Have ideas to improve npm?Join in the discussion! »

    wav-dummy

    2.7.1 • Public • Published

    Simple browser/node module to generate a dummy wav file of a specific duration, sample rate, and number of channels. The wav file contains only white noise.

    Installation

    $ npm install wav-dummy
    

    Usage

    const wavDummy = require('wav-dummy');
    
    // Generates a 10 second stereo wav file with a 44.1kHz sample rate
    const wavFile = wavDummy(10, 2, 44100)
    

    API

    wavDummy(nbSeconds: number, nbChannels: number, sampleRate: number): ArrayBuffer

    Install

    npm i wav-dummy

    DownloadsWeekly Downloads

    70

    Version

    2.7.1

    License

    MIT

    Unpacked Size

    9.58 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar