Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 582 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 582 Bytes

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