audiomaker
v1.0.3
Published
A simple, light weight javascript plugin for audio editing functionalites.
Downloads
71
Maintainers
Readme
Audio Maker
AudioMaker is a javascript plugin which provides audio editing functionalites without using any other libraries like ffmpeg.
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.