469,943 Members | 2,335 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,943 developers. It's quick & easy.

Voice recording

Hello All,
I need to record voice from a mic, in the simplest way, any idea???

tks a lot

Andrea
Feb 20 '06 #1
3 14184
Here is a C# implementation of a wrapper using Ianier Munoz' WaveOut class:

http://www.eggheadcafe.com/articles/20050611.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andrea" wrote:
Hello All,
I need to record voice from a mic, in the simplest way, any idea???

tks a lot

Andrea

Feb 20 '06 #2
For a much higher level interface, you may want to look at the MCI command
strings.
The calls can be as simple as: (untested)

mciSendString( "record waveaudio alias a", null, 0, IntPtr.Zero);
mciSendString( "pause a", null, 0, IntPtr.Zero);
mciSendString( "save waveaudio c:\foo.wav", null, 0, IntPtr.Zero);
mciSendString( "close a", null, 0, IntPtr.Zero);

This is using command strings, but there is also a more API-like message
interface.
You can google for the correct imports, command reference, etc.
For simple stuff, this could be sufficient for you. (You can also access the
cdplayer, midi file and other devices this way.)

m

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:C8**********************************@microsof t.com...
Here is a C# implementation of a wrapper using Ianier Munoz' WaveOut
class:

http://www.eggheadcafe.com/articles/20050611.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andrea" wrote:
Hello All,
I need to record voice from a mic, in the simplest way, any idea???

tks a lot

Andrea

Feb 20 '06 #3

"Mike" <vi********@yahoo.com> wrote in message
news:uO**************@TK2MSFTNGP14.phx.gbl...
For a much higher level interface, you may want to look at the MCI command
strings.
The calls can be as simple as: (untested)

mciSendString( "record waveaudio alias a", null, 0, IntPtr.Zero);
mciSendString( "pause a", null, 0, IntPtr.Zero);
mciSendString( "save waveaudio c:\foo.wav", null, 0, IntPtr.Zero);

That should be "save a c:\foo.wav"... (But it may have worked anyway...)
mciSendString( "close a", null, 0, IntPtr.Zero);

This is using command strings, but there is also a more API-like message
interface.
You can google for the correct imports, command reference, etc.
For simple stuff, this could be sufficient for you. (You can also access
the cdplayer, midi file and other devices this way.)

m

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:C8**********************************@microsof t.com...
Here is a C# implementation of a wrapper using Ianier Munoz' WaveOut
class:

http://www.eggheadcafe.com/articles/20050611.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andrea" wrote:
Hello All,
I need to record voice from a mic, in the simplest way, any idea???

tks a lot

Andrea


Feb 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Emma Gumbdough | last post: by
1 post views Thread by Arthur Yuen | last post: by
1 post views Thread by Fab | last post: by
2 posts views Thread by Johan Jons | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.