|
-
Aug 22nd, 2007, 07:08 AM
#1
Thread Starter
New Member
How to recognize and capture the sound from the microphone as streaming data
Hi,
I want to know how we can recognize the sound from the microphone as streaming data.
I want to capture that raw data and pass it to some other PC over network immediately and the other PC will decode that data and play it.
Is it possible using VB?
Linit
-
Aug 22nd, 2007, 09:58 AM
#2
Re: How to recognize and capture the sound from the microphone as streaming data
Recognizing sound and streaming sound is 2 complectly diferent things...
If you just want to stream the sound to another computer, there are a few things to consider...
Whrere is the other computer ? is it on a LAN (Local network) ? or WAN (Internet) ?
If it's on a local network, then you can just capture the sound, and send it on the network "as is"...
If it's on the internet, then it's gets much more complicated because you have to compress the sound (probably to MP3), and if you make your program comress then you can use it for LAN also (of course).
Anyways...
Here's something that you can start with:
VB6 - Shoutcast Server using Blade Encoder
It records sound using DirectX Sound, then compresses to MP3.
To listen to the sound you need a program like WinAmp to connect to the server.
-
Aug 22nd, 2007, 10:04 AM
#3
Re: How to recognize and capture the sound from the microphone as streaming data
When you say streaming data, is that video also?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 22nd, 2007, 11:07 PM
#4
Thread Starter
New Member
Re: How to recognize and capture the sound from the microphone as streaming data
Hi,
Thanks for the help.
I want to stream the sound (Audio) to another computer which is on LAN.
It will behave just like voice chat (What ever I talk on comp A using mic shud be able to listen on comp B which is in LAN )
I dont want any Vchat s/w but I want to develop it myself using VB. ( I dont want too much functionality)
Which API shud I use? Will DirectSound be sufficient for it?
Next thing I want to do is to play any song on comp A, but I shub be able to listen it on comp B which is in LAN. If I am not wrong, its like streaming sound card data to another PC in LAN.
Will it be possible?
-
Aug 23rd, 2007, 12:32 AM
#5
Re: How to recognize and capture the sound from the microphone as streaming data
 Originally Posted by Linit
Hi,
Thanks for the help.
I want to stream the sound (Audio) to another computer which is on LAN.
It will behave just like voice chat (What ever I talk on comp A using mic shud be able to listen on comp B which is in LAN )
I dont want any Vchat s/w but I want to develop it myself using VB. ( I dont want too much functionality)
Which API shud I use? Will DirectSound be sufficient for it?
Next thing I want to do is to play any song on comp A, but I shub be able to listen it on comp B which is in LAN. If I am not wrong, its like streaming sound card data to another PC in LAN.
Will it be possible?
I'm not an expert on this stuff, but you should just be able to select the source of the sound either through the windows volume mixer, or through VB code. I would imagine DirectSound has a device that you select, which could be: Line In, Microphone, Mixer/What U Hear/Stereo mix (which is what you would use to stream audio from a media player, or "whatever is coming out of your speakers").
So I don't think it involves anything extra other than setting the correct input device.
-
Aug 23rd, 2007, 07:59 AM
#6
Re: How to recognize and capture the sound from the microphone as streaming data
The link I posted in my previous post is good enough for what you need.
About selecting the sound source: DigiRev is right, it's just a matter of selecting the right input device.
I don't know how to do it with DirectSound, but I'm sure you can do it with API.
But... I don't see the point to write code for that when you can easily do that in windows recording control:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|