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
```