Audio capturing with HTML5 [closed]

感情迁移 提交于 2019-11-26 07:27:00

问题


I\'ve tried to see if there\'s a way to record audio with HTML5 to no avail. I tried using this example but it didn\'t work. I\'m guessing he really meant it when he said that it is not supported by any browser yet.

Am I missing something? perhaps it is already possible? What are my options to record audio on a browser-based application?

Open Source only please :)


回答1:


You might wanna have a look at HTML Media Capture and its API.

Ericsson labs already achieved this, see: here (Note: Note that the device element and the related APIs are not available in any browser yet, and the APIs may change before this happens.) But it gives you a rough idea about how it's done.

I am currently working on something like this myself, see: here.




回答2:


This is the only solution within iOS 6 that I've found so far:

Youtube video showing how it works

The source can be found here: GitHub Repository Link

It uses an workaround by using iOS6's camera plugin's record features to record video and audio and uploads that to the server. Then FFMPEG crunches the video and extracts the audio as a .wav file.

With all the limitations and unfinalized HTML 5 specs, I think this is the only way for it to work. I hope this helps.



来源:https://stackoverflow.com/questions/4227313/audio-capturing-with-html5

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