472,370 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,370 software developers and data experts.

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 14298
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Matt | last post by:
Any progammers looking for a killer app to develop? How about a voice enabled forum? One of the most powerful, exciting, and engrossing experiences on the Internet is the Forum. The first great...
5
by: Mad Scientist Jr | last post by:
I'm trying to record a voice memo on a Pocket PC (2000) from VB.NET (smart device application from vs.net 2003). Tom Shelton did an initial conversion to VB.NET which I am trying to run, but am...
0
by: Emma Gumbdough | last post by:
Okay we have here a VB.NET version of the .net compact framework voice recorder sample that uses open net CF c# version at: http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=79 THIS CODE...
1
by: Arthur Yuen | last post by:
Dear all, Where can I find sample and documentation for VB voice recording and playback? Thanks, Arthur
1
by: Fab | last post by:
Hi, What is the best (or simple!) way to make some voice recording in C# ? Thanks.
1
kZero
by: kZero | last post by:
iam working on voice chat software and i have problem i hope any one can help me i wanna know how to change the voice recording input ( Microphone , Wave , Stereo mix and line in ) can any one...
5
by: Ran Vijay | last post by:
Hi all I want to add the facility of recording voice in my website. I want to provide this facility to both the users of Windows as well as Linux. The voice recorded would be send through a e-mail...
1
by: nraju | last post by:
can any one help me regarding the voice recording and playing with asp.net for my website.
1
by: srivatsa86 | last post by:
HI i am doing a project of voice recognition.can anyone give me an c code for voice recording using microphone.. thanks a lot
2
by: Johan Jons | last post by:
Hello, I've been think of creating a voice-chat application, kind of like skype/ventrilo but very simplified; just something small that works. Now I am using windows 7 with microsoft visual...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.