i wanna record a sound in .net app

  • Thread starter Thread starter Abubakar
  • Start date Start date
A

Abubakar

Hi,

I want my app's user to be able to record sound through my app and save it
to the/some file. How can I do that? Are there any classes in the .net
framework that let us do this? Or will I have to buy some thirdparty
components, in which case plz suggest some cool n tested links.

Regards,

...ab
 
Hello Abubakar,

You can use the MCI device to do this. Here is an example in C++:

http://www.codeproject.com/audio/Voice_Recording.asp?df=100&forumid=114496&exp=0&select=1252516

The basic commands send to the device are the same in C#. There is other
stuff on the MCI device on the Code Project such as:

http://www.codeproject.com/useritems/a_mini_media_player.asp

Basically I think that to record sound alls you have to do is send the
correct strings to the MCI device.

You may be able to this with DirectShow (google on that) and it may do the
same thing with less code (you will have to add a reference to the library in
your .NET project).

This is one of my projects I have to do later this year :~}

Hope this helps,

Rob
 
Thanks for the information.

Regards,

...ab

RobKinney1 said:
Hello Abubakar,

You can use the MCI device to do this. Here is an example in C++:

http://www.codeproject.com/audio/Voice_Recording.asp?df=100&forumid=114496&exp=0&select=1252516

The basic commands send to the device are the same in C#. There is other
stuff on the MCI device on the Code Project such as:

http://www.codeproject.com/useritems/a_mini_media_player.asp

Basically I think that to record sound alls you have to do is send the
correct strings to the MCI device.

You may be able to this with DirectShow (google on that) and it may do the
same thing with less code (you will have to add a reference to the library
in
your .NET project).

This is one of my projects I have to do later this year :~}

Hope this helps,

Rob
 
Hello,

Windows APIs allow performing very basic recording in WAV format but if you want to save a huge amount of developing time and have the availability of a ton of recording features and encoding in different formats capabilities you may give a try to "Audio Sound Recorder for .NET":
http://www.audiosoundrecorder.com

Hope this helps

Severino
 
Back
Top