



Since JavaScript is slower than native code you should expect your encoding times to be higher. These libraries are Java Script versions of the popular LAME mp3 encoder and libogg/ libvorbis encoders obtained by compiling the original C code using Empscripten as (the asm.js subset of) JavaScript. WebAudioRecorder.js uses external JavaScript libraries to convert the raw audio to mp3 and Vorbis. When used in conjunction with getUserMedia() it can record the audio from the user’s microphone or webcam. WebAudioRecorder.js is a JavaScript library written in 2015 by higuma that can record audio and encode to common formats directly in the browser. The project is available on GitHub, link at the bottom, live demo here. There are 2 demos available for WebAudioRecorder ( the main one linked from GitHub that’s not working and a functioning one) but they’re fairly complex implementations and thus hard to get started with. We’ll be building a simple demo to help you get started with the library. In this blog post, we’ll cover using WebAudioRecorder.js to record mp3, vorbis and wav audio on your website. This is the 2nd post in our new recording audio in HTML5 series.
