beacon-lamejs

Alex Zhukov's Pure JavaScript MP3 Encoder - updated build

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
beacon-lamejs
1.2.1-hotfix-210 months ago10 months agoMinified + gzip package size for beacon-lamejs in KB

Readme

lamejs
Fast mp3 encoder written in JavaScript. On my machine it works 20x faster than realtime (it will encode 132 second long sample in 6.5 seconds) both on node and chrome. lamejs is a rewrite of jump3r-code which is a rewrite of libmp3lame.

Installation

To install via Bower or npm, simply do the following: ```bash $ bower install lamejs --save ``` ```bash $ npm install lamejs ```
Quick Start
```javascript ``` To use lamejs in Node.js build, you can install it from npm: ``` npm install lamejs ``` Then use it: ``` var lamejs = require("lamejs"); ```
Real Example
Either see example.html for full example of wav file encoding in browser or use this: ```javascript ```
Stereo
If you want to encode stereo mp3 use separate sample buffers for left and right channel ```javascript ```