问题
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.
回答1:
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
回答2:
Here's a tutorial on using the microphone in Flash:
http://www.kirupa.com/developer/actionscript/microphone.htm
Documentation the Flash Microphone object:
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary479.html
回答3:
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)
回答4:
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 :)
回答5:
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?
回答6:
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.
来源:https://stackoverflow.com/questions/651796/recording-audio-via-the-web-for-an-intranet-solution