Capture Audio Input with flash or html5

后端 未结 2 2009
我在风中等你
我在风中等你 2021-01-06 16:18

I am trying to capture the microphone and send the recording to my server.. I tried this method here but it records only a big WAV and the upload can be slow sometimes.

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 16:46

    You can compress the file on the clientside using libmp3lame.js: https://github.com/akrennmair/libmp3lame-js

    There is already a gitHub project that uses this library to record audio and save it in MP3 format directly in the browser:

    https://github.com/nusofthq/Recordmp3js

提交回复
热议问题