通过 Web 录制音频以用于 Intranet 解决方案
通过网页录制音频的最佳(最便宜、最开放)方式是什么? 然后将该录音保留为 MP3 格式,并通过唯一的 ID/URL 使其可用。
我想基于 Flash 的插件是最好的。 我正在考虑类似 Odeo 的东西,但这仅限于 Intranet 使用。 我不能依赖公共 URL 或服务。
我正在寻找可以从现有组件(开源)项目中拼凑起来的东西。
What is the best (cheapest, most open) way to record audio via a web page. Then keep that recording as MP3 format and make it available via a unique ID / URL.
I guess Flash-based plug-in would be best. I'm thinking of something that works like Odeo, but this would be for Intranet-only usage. I can't rely and public URLs or Services.
I'm looking for something I can cobble together from existing components (Open Source) projects.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您需要一个服务服务器端来录制音频,这可以托管在您网络的一台计算机上(除非您通过 AIR 在本地为每台计算机执行此操作)。
Adobe 的 FMS 提供了录制和播放流的选项。
但首先,您应该看看 Red5,这是另一种免费服务:
http ://www.red5.org/
他们的网站上有示例,您也可以在谷歌上找到一些示例。 这里有一个:
http://fms.denniehoopingarner.com/
这是一个关于录音的快速教程在本地使用 AIR:
http://seeing-is- believe.blogspot.com/2008/05/capture-and-write-audio-stream-with.html
You need a service server side to record audio, this could be hosted on one of you network's machines (unless you are doing it via AIR locally for each computer).
FMS by Adobe provides the option for recording and playing streams.
But first thing, you should have a look on Red5, which is an alternative free service :
http://www.red5.org/
There are samples on their website and you can find some on google as well. here is one :
http://fms.denniehoopingarner.com/
Here's a quick tutorial about recording locally with AIR:
http://seeing-is-believing.blogspot.com/2008/05/capture-and-write-audio-stream-with.html
以下是在 Flash 中使用麦克风的教程:
记录 Flash 麦克风对象:
Here's a tutorial on using the microphone in Flash:
Documentation the Flash Microphone object:
Adobe 把 DIrector 搞砸了,太糟糕了。 我以前经常这样做(通过网页录制奥迪完整的 44 000 wav/16 位,使用 Director SHockwave 和适当的 xtra(额外的 100 美元插件)......太糟糕了,事情变得如此困难as3...(但是是的,好吧,更干净、更高效)
So bad how Adobe screwed things up with DIrector. I use to do that in a snap (recording audi a full 44 000 wav/16 bits TROUGHT a web page, using Director SHockwave, and the apropriate xtra (an additional 100$ plug in)...too bad things went so difficult with as3...(but yes, ok, more clean and efficient)
您无法使用网页录制音频,但如果由于某种原因您需要嵌入录音 destop 应用程序(正如您所说,使用某种插件),那么 Java 小程序可能是最好的/最简单的方法。 自定义插件/扩展会更好,但更难,除非已经有(可能有)。
您可能还应该重新考虑为此使用网页。 您还没有真正给出要求,所以我不能说,但使用网络浏览器以外的网络应用程序可能会更好:)
You can't record audio using a web page, but if for some reason you need to embed a sound recording destop app (as you've said, using a plug-in of some kind) then a Java applet is probably the best/easiest way. A custom plugin/extension would be better, but harder, unless there is one already (there may be).
You should probably also reconsider using a web page for this. You haven't really given you requirements, so I can't say, but it may be much better to use a network application other than your web browser :)
在浏览器中录制的替代方法是要求用户上传他们从另一个应用程序录制的文件。 这里存在各种各样的可用性问题,但这可能是 2009 年完成此任务的最直接的方法。
我最近与一位 Flash 开发人员朋友讨论了这个问题,看看是否有一些仅使用 Flash 和标准 Web 服务器工具包的解决方案不依赖于 Red5 或 FMS,他建议 Flash 10 实际上可能实现这一点。这给了我一个想法 我在这里进一步充实了它。 有人愿意帮忙并实现这一目标吗?或者这是不可能的?
The alternative to recording in-browser is asking the user to upload a file they've recorded from another application. There are all sorts of usability problems there, but it may be the most straightforward way to get this done in 2009.
I recently spoke to a Flash developer friend about this to see if there's some solution using only Flash and the standard web server toolkit with no dependency on Red5 or FMS, and he suggested that it may actually be possible with Flash 10. This gave me an idea which I have fleshed out a little more here. Would anyone like to help out and make this happen, or is this impossible?
我也一直在寻找,到目前为止我发现的最有希望的是 Red5 加上来自 http://fms 的提示。 denniehoopingarner.com/ ...自从 2009 年在这里提出这个问题以来,这些工具进步了多少? 还有浏览器音频 API 正在开发中,但主流用户似乎需要 Flash(和/或 Java?)。
I've been looking too and the most promising I've found so far is Red5 plus the hints from http://fms.denniehoopingarner.com/ ... how much have these tools moved on since the question was asked here back in 2009? There are also browser audio APIs on their way, but it seems Flash (and/or Java?) are needed for mainstream users.