views:

661

answers:

6

I'm contemplating adding a voice recording to some posts on my site. I'm wondering if there is an ASP.NET library out there that will allow me to:

  1. Press a button to start recording
  2. Record what I'm saying through my comp's built in microphone
  3. Save the file as a .wav or some other popular sound file

As of now, I will be the sole user of this function, but it would still be nice to have in my bag of tricks in case I want to pull it out later for a client.

Thanks!

A: 

not directly from asp.net since asp.net is server side and you need access to the client side microphone - however the new adobe flash player has the ability to access the mircophone so in theory you could use flash to record then upload to your site.

Christopher Kelly
You are limited to 100k of storage on the user's machine without explicit permission and any audio you record is captured in a proprietary licensed format.
Nissan Fan
thank you, I did not know that limitation.
Christopher Kelly
+1  A: 

Here's the problem: the browser does not allow this level of hardware access by an application. You could however achieve this either through Java, Flash or ActiveX (Yuk! don't do it) should the end user allow the access to occur however there are a number of cavaets. Here's a great thread where like-minded people like yourself are approaching the same challenge:

http://drupal.org/node/69242

If I were cornered to do this I would create a signed Java Applet.

Nissan Fan
+1  A: 

You solution will involve a flash componet (outside of rendering the markup that invokes the flash component). The ASP.NET stack won't be able to do it. Silverlight doesn't seem able to do it.

Here is how.

MatthewMartin
A: 

See ListenUp sdk. I found a bulletin board called english-test.net that is using the sdk to post voices.

eed3si9n
+1  A: 

It is not doable without the help of a plugin. Browsers simply don't support voice recording. You could choose from:

  • Make a SilverLight applet.
  • The flashPlayer can record too.
  • find a java Applet that can do this.
  • Make an activeX Plugin (since you have affinity to asp)
  • use your os provided voice recorder, save the file and upload it. Playback via browser is easy
AndreasT
A: 

You'll need some client-side code to achieve this as regular HTML doesn't support audio input and upload.

The ActiveX control Active Audio Record 2.0 claims to support recording audio and uploading it to an ASP.NET web server. I've never tried it though.

C. Dragon 76