@lesjoursfr/audio-waveform
v3.1.7
Published
A library to generate waveform for audio files.
Downloads
83
Readme
@lesjoursfr/audio-waveform
Generate waveform from an audio file with a simple API in Node.js.
What is this library?
This library use electron to generate waveform files from an audio file.
Usage
Install the lib and add it as a dependency :
npm install @lesjoursfr/audio-waveform
Then put this in your code:
const { AudioAnalyzer } = require("@lesjoursfr/audio-waveform");
const audioAnalyzer = new AudioAnalyzer(file, options);
audioAnalyzer.waveform()
.then(() => {
console.log("Waveform Generated Successfully!")
})
.catch((err) => {
console.error("Failed to generate Waveform because of ", err)
});
);
Parameters
file
: The audio fileoptions
: Optional options to use xvfb for the generation