Need help with lamejs?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zhuker
576 Stars 131 Forks Other 60 Commits 41 Opened issues

Description

mp3 encoder in javascript

Services available

!
?

Need anything else?

Contributors list

# 113,015
Java
Shell
aac
h264
25 commits
# 292,938
Java
Shell
HTML
7 commits
# 365,661
HTML
Shell
PHP
smarty
4 commits
# 14,727
HTML
CSS
Shell
stylesh...
2 commits
# 273,513
C
C++
slack
instant...
1 commit
# 5,356
Django
microph...
wavefor...
flash
1 commit
# 471,381
HTML
PHP
Shell
Symfony
1 commit
# 252,478
Objecti...
HTML
Shell
apidoc
1 commit
# 494,802
HTML
Shell
TypeScr...
babel-p...
1 commit
# 344,425
Perl
regex
Shell
Haskell
1 commit

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:

$ bower install lamejs --save
$ npm install lamejs

Quick Start

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:

Stereo

If you want to encode stereo mp3 use separate sample buffers for left and right channel

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.