从网页录制音频并上传到服务器
我希望从网页上录制用户麦克风的音频,然后将文件上传到服务器以存储为 MP3。我的解决方案是使用 .NET 构建的。
我见过的大多数类似应用程序在客户端上使用 Flash,并可能在服务器上使用 Flash Media Server。我们没有 FMS 的预算。我正在寻找免费/开源解决方案。
我还研究了一点 Silverlight 4,因为它支持录制 WAV 音频,但我不清楚如何处理 MP3 位的上传和编码。
最终,我需要从麦克风录制音频,然后能够将该文件作为 MP3 文件存储在服务器上。需要免费(或至少便宜)。
欢迎任何建议!
谢谢。
From a web page, I'm looking to record audio from the user's microphone and then upload the file to a server to be stored as an MP3. My solution is built using .NET.
Most similar apps that I've seen use Flash on the client and presumably Flash Media Server on the server. We don't have the kind of budget for FMS. I'm looking for a free/open source solution.
I've also looked a bit at Silverlight 4 since it supports recording WAV audio but I'm not clear on how to tackle the uploading and encoding to MP3 bit.
Ultimately, I need to record audio from the microphone and then be able to store the file on the server as an MP3 file. Free (or at least cheap) is required.
Any suggestions would be welcome!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
早在 2010 年,当您问这个问题时,除了使用 Flash 客户端 + 媒体服务器 + ffmpeg 将 flv 转换为 mp3 之外,没有其他解决方案。
但现在由于 Alchemy/as3,这成为可能。
您应该查看 http://audior.ec flash mp3 录制脚本。我是一个小型 Flash 脚本,位于网页上,记录访客/会员的音频,并将其保存为 mp3 在您的网络服务器上。不需要 Red5 或其他媒体服务器。
Back in 2010 when you asked the question tehre was no solution other than using a flash client + media server + ffmpeg to convert from flv to mp3.
But now it's possible thanks to Alchemy/as3.
You should check out the http://audior.ec flash mp3 recording script. I's a small flash script that sits on a webpage and records audio from your visitors/members and saves it as an mp3 on your web server. Red5 or other media server is not needed.
您可以使用免费的 Red5 服务器而不是 Flash Media Server - 以下是如何使用它录制音频和视频的教程:http://mariofalomir.com/blog/?p=101
You can use the free Red5 server instead of Flash Media Server - here is a tutorial how to record audio and video with it: http://mariofalomir.com/blog/?p=101
我也在考虑使用 Silverlight,但对我来说,问题是我不想要求用户安装任何版本的 .Net。因此,我选择了 Javasonics.com 的 ListenUp —— 相反,我必须依赖于用户浏览器可用的功能性 Java,并且还依赖于用户在出现弹出窗口提示时接受运行小程序。一个是六个,另一个是六打。
无论如何,就服务器端的编码而言,我推出了自己的 python CGI 脚本,该脚本可以将 Speex 转换为 WAV(使用 speexdec),然后将 WAV 转换为 MP3(使用 lame),将 WAV 转换为 OGG(使用 oggenc)。事后,我看到了http://encoding.com,它有一个即用即付/预付费的功能- 支付帐户选项。
I was considering using Silverlight as well but for me the problem was I didn't want to require that the user have whatever version of .Net installed. So I chose ListenUp from Javasonics.com -- and instead am having to rely on a functional Java available to the user's browser, and also am relying on the user to Accept running the applet, when prompted with a popup. Six of one, half dozen of the other.
Anyways, as far as encoding on the server side I rolled my own python CGI script that converts (in my case, Speex to WAV (using speexdec), and then WAV to MP3 (using lame) and WAV to OGG (using oggenc). After the fact, I saw http://encoding.com, which has a pay-as-you-go / pre-pay account option.