@lesjoursfr/audio-waveform
TypeScript icon, indicating that this package has built-in type declarations

3.1.6 • Public • Published

npm version QC Checks

@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 file
  • options: Optional options to use xvfb for the generation

Package Sidebar

Install

npm i @lesjoursfr/audio-waveform

Weekly Downloads

24

Version

3.1.6

License

MIT

Unpacked Size

17 kB

Total Files

12

Last publish

Collaborators

  • e-adrien