Vb.NET Capture Sound on Windows
I've been looking around for a while and I can't seem to find any examples or anything. Does anyone know if it's possible and how it can be done? I'm trying to capture all/most sound that would normally be played through the speakers into a stream, that can then be manipulated (transferred over a socket)
I'm hoping for this to be in Vb.NET, but I wouldn't mind Python or possibly C++ if there's no other option.
Well, this is a simple example in VB Script:
Dim rec
Set rec = CreateObject("AudioCtl.AudioRecord.1")
'Select sound device 0
rec.DeviceIndex = 0
'Set output file
rec.SetOutputFileName "1.mp3"
'Start record with given parameters, record mp3 audio
rec.StartRecord 2, 11025
'Record for 10 secs
WScript.Sleep 10000
'Stop Record
rec.StopRecord
I think that google can help you.
Well I know of a few programs that do this already, usually used to capture streaming music from youtube and other such sites. Google came up with this: http://www.sharewareconnection.com/audio-record-capture-activex-ocx-sdk.htm. You simply need to refine your search terms. Perhaps something like: Capture streaming audio vb.net. This sounds like a cool idea so if you find anything to point you in the right direction post here so we can take a look :).
@454447415244 Did you realize you just posted a code plugin for Active Audio Record. It won't work stand alone read the code. http://www.guangmingsoft.net/audiorecord/
As for recording the audio There are quite a few programs to do this but my question is why? Someone listening to porn?
Well basically I want to stream the audio to my PC from my laptop. Several reasons, one being that I want to use that as a way to play music and sounds etc, rather than having to plug my laptop into the speakers.. 'cause then I wouldn't be able to move it round as much. Next reason is that I want to record certain VOIP conversations. Third reason is that it sounds interesting to make lol :]
Also, I've found several example that record the sound to a file, but that wouldn't work because I want to be able to stream it straight away to the computer.
Like I mentioned, this doesn't have to be in VB.. just hoping to be pushed in the right direction..