473,320 Members | 1,987 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,320 software developers and data experts.

sound capture (record audio input) in VB.NET????

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 object like a string or array.

DirectSound gives methods but code samples are all in C++ or C#. I'm
not fluent enough with C++ lang to make C++ ---VB conversions in my
head. The DirectX DDK seems to be written for people that use C++, I
find little in the way of practical VB.NET examples from Microsoft.

I understand the idea of a buffer for storage of record/play audio but
I really need a functional code sample or snippet demonstrating audio
from a microphone being displayed on an oscilloscope type of graph, and
how to number crunch to the raw audio data to do standard things like
FFT, frequency shape, and audio effects. The math involved I already
understand; but its the setting up of import directsound's
capabilities and to see an actual working code sample on a form showing
how to set up buffer(s), start stop sound capture, and read/interpret
raw audio data (number representation) of the sample stream.

Keep in mind I'm a hardware engineer that has dabbled in Basic over the
years, and more recently VB.NET, so I have gaps in knowledge or
understanding of some programming conventions. However I find I often
can modify a working example and build upon it to accomplish end goals.

Pointers or postings of any working code sample in VB.NET for sound
capture and display greatly appreciated.

~Terry

Sep 3 '06 #1
2 7794
I've noticed a lot of people prefer VB6 to .NET, I can't answer your
question but there are plenty of people who can do all of this in VB6
I've seen.

Sep 5 '06 #2

<Si*********@yahoo.co.ukwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
I've noticed a lot of people prefer VB6 to .NET, I can't answer your
question but there are plenty of people who can do all of this in VB6
I've seen.
Really? People "prefer" VB6? Yuck, I can't stand VB6 lol...

In any case, one way to capture sound from an input device would be to use
DirectX (DirectSound or DirectInput) :)

HTH,
Mythran
Sep 5 '06 #3

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

Similar topics

0
by: Cory | last post by:
I'm trying to capture the audio being written out through my DirectSound driver using JMF 2.0 or, more preferably, any sound comming from my speakers. I'm not even at the code phase of this...
1
by: Noah | last post by:
I need to record raw 8-bit mono audio from a generic sound card on MS-Windows. I need to do something like this: sound_device = open audio device buffer = sound_device.read ('1 second, 8 bit,...
2
by: Vihar Patel | last post by:
Hello Group, I want to record audio file using Webpage, I am using ASP.NET (1.1 Framerwork) to develop website. If anyone knows about this, then please let me know, Thanks in Advance, Vihar...
2
by: Jo Chase | last post by:
I would like to record audio from a mic and perform some basic analysis on the audio wave patterns produced. What would be the easiest way to accomplish this in Python?
1
by: Vai2000 | last post by:
Hi All, Does anyone know how to capture audio input ? TIA
3
by: hzgt9b | last post by:
Using VS2005, VB.NET, I want to record audio from my sound card, or mic input... and while recording get feedback to create a sound meter for visual display. Due to budget constraints, I can't...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
1
by: gobblegob | last post by:
Hi Experts, I would like to know how to record audio with vb.net 2008 if anyone knows any links to any tutorials because i connot find anything on google, PSC ,VBHelper, or microsoft and i have...
0
by: Meera Haridas | last post by:
I want to record audio and video from IP camera.i have attached my application here.By using that i can stream video and can save images continously,but iam not able to save video.anybody can help me...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.