1.0.0 • Published 3 years ago

audioviz v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Audioviz is a tool and framework for converting your audios into visualizer using Node.js and ffmpeg. Audioviz allows you to easily and programmatically create a video from your audio.

Inspired by audiogram. Audioviz aims to be very extensible and feature rich with a it's options

Features

  • Convert audio into videos with code! 🤓
  • Declarative API with fun defaults
  • Create colorful videos by setting backgrounds

See example

Requirements

Installing

npm i -g audioviz

JavaScript library

const Audioviz = require("audioviz");
const path = require("path");

var audioviz = new Audioviz({
  audio: path.join(__dirname, "audio.mp3"),
  output: "video.mp4",
});

(async () => {
  const output = await audioviz.render();
  console.log(output);
})();

Parameters

ParameterDescriptionDefault
audioAudio input path (mp3, wav)
widthWidth which all media will be converted to1280
heightHeight which all media will be converted to720
outputoutput file name
waveColorColor for audio waves drawn on frames#d84a4a
backgroundColorBackGround color for video#fff
patternWave pattern to be drawnbars
waveTopTop alignment150
waveRightRight alignment1280
waveLeftLeft alignment0
waveBottomBottom alignment420

See also


Made with ❤️ Follow me on GitHub

1.0.0

3 years ago