473,486 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 14397
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
1649
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
4662
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
1917
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
1835
by: Arthur Yuen | last post by:
Dear all, Where can I find sample and documentation for VB voice recording and playback? Thanks, Arthur
1
575
by: Fab | last post by:
Hi, What is the best (or simple!) way to make some voice recording in C# ? Thanks.
1
1784
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
5863
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
1947
by: nraju | last post by:
can any one help me regarding the voice recording and playing with asp.net for my website.
1
1967
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
4898
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
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.