How to record voice in a browser?

淺唱寂寞╮ 提交于 2019-12-03 07:19:36

The ideal solution would be getUserMedia and the Stream API. Unfortunately, it is currently not well-supported across modern browsers. As of June 14, 2012 the only browser confirmed to have support according to caniuse.com is Chrome 21. Others appear to be working on solid implementations.

Until native support arrives, Flash can access and record both audio and video.

You can interact with a client's microphone using flash, this will require permission from the user. For implementation details please visit my reference.

Reference: http://fmsguru.com/showarticle.cfm?articleID=25

The most efficient free-ish solution bandwidth-wise is probably to develop a Flash app that streams Speex data to a Flash Media Server (e.g. Red5/Wowza). It's a huge pain though.

A far simpler solution is to stream raw audio over a standard HTTP post. This can be done in Flash without a proprietary media server:

https://code.google.com/p/wami-recorder/

If you need MP3 on the server-side you can transcode using lame.

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