Converting WAV to any compressed audio format in client-side JavaScript

前端 未结 5 422
無奈伤痛
無奈伤痛 2020-12-12 18: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 l

5条回答
  •  北海茫月
    2020-12-12 18:56

    I was facing the same problem and came up with quite a quick and dirty solution:

    • zip the wav-file with zip.js (works with Chrome, Firefox, Safari 6 and Internet Explorer 10)

    Further intel see Documentation zip.js

    At least this is reducing size a lot, file is about >75% smaller so 1:4 compression

    UPDATE: Maybe have a look at this: https://webrtc.github.io/samples/

    It is a Chat Application for Chrome and Firefox developed by google, I assume with kind of CC-License

提交回复
热议问题