audiomaker

1.0.3 • Public • Published

Audio Maker

AudioMaker is a javascript plugin which provides audio editing functionalites without using any other libraries like ffmpeg.

npm GitHub

Getting Started

Installation

npm install audiomaker

Usage

let audioMaker = require('audiomaker');
 
let _audioMaker = new audioMaker();

Features

Demo

Try this demo for better understanding.

Trim

Method - trim(File, start, end);

_audioMaker.trim('audio.mp3', 5, 9).then((blob)=>{
//   Output blob
});

Add

Method - add(Files[]);

_audioMaker.add(['audio1.mp3', 'audio2.mp3', 'audio3.mp3']).then((blob)=>{
//   Output blob
});

Merge

Method - merge(Files[]);

_audioMaker.merge(['audio1.mp3', 'audio2.mp3']).then((blob)=>{
//   Output blob
});

Loop

Method - loop(File, loopCount);

_audioMaker.loop('audio.mp3', 2).then((blob)=>{
//   Output blob
});

Reverse

Method - reverse(File);

_audioMaker.reverse('audio.mp3').then((blob)=>{
//   Output blob
});

Multi-chaining

_audioMaker.trim('audio.mp3', 5, 9).then((blob)=>{
   _audioMaker.loop(blob,3).then((result)=>{
    //   Output blob
   });
});

Timeline

Method - timeline(config[object]);

let timelineConfig = [
  {
    audio: 'audio1.mp3',
    trim: [2,4],
    reverse: false,
    loop: 2
  },
  {
    audio: 'audio2.mp3',
    trim: [1,4],
    reverse: true,
    loop: 2
  },
  {
    audio: 'audio3.mp3',
    loop: 3
  }
];
 
_audioMaker.timeline(timelineConfig).then((blob)=>{
//   Output blob
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

  • Licensed by MIT.

Package Sidebar

Install

npm i audiomaker

Weekly Downloads

57

Version

1.0.3

License

MIT

Unpacked Size

14.6 kB

Total Files

4

Last publish

Collaborators

  • alivedevking