Capture Audio Input with flash or html5

笑着哭i 提交于 2019-12-01 00:44:47
Stefan

Hey check out this post where i replied to a guy with a similar question as you.

How do I embed a Flash audio recorder in my site

i dont know about client side compressing (i have looked into it before and couldnt find anything). But i know you can severely reduce the size of the file by limiting the rate of recording via these numbers here, where if i recall correctly 16 is 16khz recording

 recorder = new MicRecorder(wavencoder,null,50,16);

also sending to the server is not that hard, just look up how to post data, because the wav file is essentially binary data

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!