473,815 Members | 3,002 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i wanna record a sound in .net app

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
Feb 7 '07 #1
2 2043
Hello Abubakar,

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

http://www.codeproject.com/audio/Voi...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...dia_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

"Abubakar" wrote:
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
Feb 7 '07 #2
Thanks for the information.

Regards,

...ab

"RobKinney1 " <Ro********@dis cussions.micros oft.comwrote in message
news:CA******** *************** ***********@mic rosoft.com...
Hello Abubakar,

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

http://www.codeproject.com/audio/Voi...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...dia_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

"Abubakar" wrote:
>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

Feb 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8285
by: Udipta | last post by:
I am making a java application where I am required to record voice in a-law format. The program i have written starts perfectly without giving any error or warning, but as soon as i start recording an exception is thrown. java.lang.IllegalArgumentException: No line matching interface TargetDataLine supporting format ALAW, 8000.0 Hz, 16 bit, mono, little-endian, audio data is supported. The AudioFormat object is created using the...
2
6218
by: Olivier Ravard | last post by:
Hi everybody, What is the best way to record sound from the sound card with python ? The method I am looking for must but portable. Actually, I use snack tk package, but is there a best way ? Thanks
1
1157
by: rubbishemail | last post by:
Hello, do you know any way to record a sound from the soundcard on winXP to a numarray? many thanks Daniel
0
1956
by: MLH | last post by:
Edit, Insert Object & choose Wave Object, the following OLE object thing gets inserted onto the form... Microsoft Sound Recorder Version 5.1 (Build 2600.xpsp2.030422-1633: Service Pack 1) Copyright 1981-2001 Microsoft Corporation PCM 22.050 kHz, 8 Bit, Mono If I double-click the icon-looking thing on the form after setting its .Enabled property to true AND its .Verb property to -2, the Microsoft
9
24683
by: Joshua.Buss | last post by:
I am trying to move a record from one linked table to another within access, but I'm a complete beginner to VBA and don't know exactly where to begin. I have an access file that has the two linked tables, which each link to separate SQL databases using separate ODBC connections. I have a form that has a view of table1 and a set of buttons for manipulating the data in database1.
2
7875
by: positivebalance41m | last post by:
I have been searching how to do sound capture (record audio input) in VB.NET for days now. I find some references to "winmm.dll" calls, but they give VB5 or VB6 examples which won't code convert upgrade to VB.NET without warnings errors that I can understand how to fix. There's some ActiveX and OCX's floating around, some free some not, but in all cases they don't explain or give me access to the raw PCM data in some kind of familiar...
0
811
by: anjupt | last post by:
Hi, Can somebody tell me how to record sound files in asp.net 2003 .I tried to load windows recorder in the application but for that to work so many settings need to be changed ,when the settings are changed sound files cannot be played. ThankYou Anju
0
2265
by: Karthik | last post by:
Hi, I want to record a sound wave from a mic and at the same time invert it and play the inverted wave.My code goes as follows, however nothing is written into the E:\inverted.wav file.Thanks in advance for any help. from Tkinter import * root = Tk() import tkSnack tkSnack.initializeSnack(root)
2
64519
by: Ian | last post by:
I am trying to save the current record on a form before opening a report, doesn’t sound to hard does it? The code on a buttons on click event goes like this: DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 'First save record I used this for many years with problems using Access 97, when the database is upgraded to Access 2000 or later I occasionally get an error message saying “Save Command is not available now”.
0
9735
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9610
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10427
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10143
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7687
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.