Author | Vb.NET Capture Sound on Windows |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
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.
|
 |
Author | RE: Vb.NET Capture Sound on Windows |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
Well, this is a simple example in VB Script:
Code
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.
Edited by on 02-04-09 21:38 |
 |
Author | RE: Vb.NET Capture Sound on Windows |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
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.sharew. . .cx-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 .
Edited by on 02-04-09 21:56 |
 |
Author | RE: Vb.NET Capture Sound on Windows |
korg Member

Posts: 2803 Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06 Rank: God | |
@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.guangm. . .diorecord/
As for recording the audio There are quite a few programs to do this but my question is why? Someone listening to porn?
I deal in pain, All life I drain, I dominate, I seal your fate. |
 |
Author | RE: Vb.NET Capture Sound on Windows |
Member

Posts: Location:
Joined: 01.01.70 Rank: Guest | |
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..
|
 |