Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
audio-resampler-fork-jelb
Advanced tools
Simple WebAudio based resampling library.
npm install audio-resampler
resampler = require('audio-resampler');
resampler(input, targetSampleRate, oncomplete);
input
: Input audio file. This can either be a URL, a File object, or an AudioBuffer.
targetSampleRate
: The target sample rate after the re-sampling process. This number is limted based on the browser implementation (usually >=3000, <=192000)
oncomplete
: Callback when the resampling process is completed. The argument to this callback is an Object which supports the following methods:
getAudioBuffer
: Returns the resampler AudioBuffer
getFile
: Returns a ObjectURL of a WAV file created from the resampled Audio.
resampler = require('audio-resampler');
var URL = "https://dl.dropboxusercontent.com/u/957/audio/sine.wav"
resampler(URL, 192000, function(event){
event.getFile(function(fileEvent){
var a = document.createElement("a");
document.body.appendChild(a);
a.download = "resampled.wav";
a.style = "display: none";
a.href = fileEvent;
a.click();
window.URL.revokeObjectURL(fileEvent);
document.body.removeChild(a);
});
});
To test this repository, you can run a local server using the npm start
command which serves a simple drag-and-drop interface based webpage to resampler audio files.
FAQs
Simple WebAudio based resampling library
We found that audio-resampler-fork-jelb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.