Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
87
rated 0 times [  92] [ 5]  / answers: 1 / hits: 21000  / 11 Years ago, wed, july 3, 2013, 12:00:00

I am recording audio from getUserMedia({audio:true}); in the browser using Recorder.js and then exporting it as a WAV file because that's the only option the library provides.



A 1 minute 20 seconds file is 14.1 MB large. I need to upload the audio to a server and I need to do it fast. How do I convert the WAV audio in any other compressed format to lower the file size?



I don't mind converting to:




  • MP3

  • Opus

  • WebM

  • Ogg

  • FLAC

  • any other format you know of



If there is no way as of now to convert to any of these formats, how can I compress the WAV file on the client?



PS: I did a lot of searches to find anything that converts WAV in JS, but found nothing. libmp3lame.js isn't working in Chrome.



Thanks!


More From » wav

 Answers
21

I've made an audio recorder that records to mp3 directly from the browser combining RecorderJS and libmp3lame.js



You can find the gitHub project here:
https://github.com/nusofthq/Recordmp3js



and a more detailed explanation of the implementation:
http://nusofthq.com/blog/recording-mp3-using-only-html5-and-javascript-recordmp3-js/


[#77208] Wednesday, July 3, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
melody

Total Points: 295
Total Questions: 97
Total Answers: 101

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
;