录音与HTML5 [英] Audio recording with HTML5

查看:172
本文介绍了录音与HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个网站录音。基本上,用户应该能够preSS一个按钮,东西对着麦克风讲话。然后记录的音频应该被发送到服务器以进行进一步处理。我知道你可以用Flash做到这一点,但现在我想避免这种情况。

I'm trying to implement audio recording in a website. Basically the user should be able to press a button and speak something into the microphone. The recorded audio should then be sent to the server for further processing. I realise that you can do this with Flash, but for now I'm trying to avoid that.

我发现它在互联网(即链接)在几个资源但现在看来,这个功能是不可widly被支持。我经历betweet所使用的浏览器和使用的操作系统之间的差异。例如,Chrome浏览器似乎不正确访问在Linux上的麦克风。所以我想知道如果任何人知道一个很好的资源潜入这一点。或者,也许有人试图建立这样的自己,可以用在哪里HTML5和JavaScript的Web音频API的限制是正确的,现在一些建议帮助。

I found several resources on the internet about it (i.e. link) but as it seems, this functionality is not widly supported yet. I experienced differences betweet the used browser and between the used operating system. For instance, the Chrome Browser doesn't seem to access any microphone on Linux correctly. So i was wondering if anyone knows a good resource to dive into this. Or maybe someone tried to set up something like this himself, and can help with some suggestions about where the limitations of HTML5 and the JavaScript Web Audio API are right now.

谢谢!

推荐答案

自Chrome版本27.0.1453.56测试版的Mac,录音工作与本演示应用程序的 https://github.com/mattdiamond/Recorderjs

As of Chrome Version 27.0.1453.56 beta Mac, audio recording works with this demo application https://github.com/mattdiamond/Recorderjs

该应用程序将返回回可上传到服务器的用户WAV文件。

This app returns back a WAV file for the user which can be uploaded to the server.

如果你想要一个真正强大的解决方案,在大多数桌面Web浏览器的工作原理,你可能需要求助于闪光灯。

If you want a truly robust solution that works on most desktop web browsers, you may need to resort to Flash.

这篇关于录音与HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆