473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 14391
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...
0
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...

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.