create-silent-audio

    0.1.1 • Public • Published

    create-silent-audio

    Create a silent audio blob to use in a <audio> tag.

    Inspired from https://www.russellgood.com/how-to-convert-audiobuffer-to-audio-file/

    How to install :

    npm install create-silent-audio
    

    How to use it :

    import { createSilentAudio } from 'create-silent-audio';
    ...
    document.getElementById('audioTag').src = createSilentAudio(10,44100);
    ...

    Arguments

    Argument type required default
    time Integer true none
    frequency Integer false 44100

    Install

    npm i create-silent-audio

    DownloadsWeekly Downloads

    41

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.94 kB

    Total Files

    4

    Last publish

    Collaborators

    • edoudou