Skip to content

edoudou/create-silent-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published