Solved

Send Voice across LAN from VB App

Posted on 2001-07-09
15
253 Views
Last Modified: 2013-11-13
I'm writing an application that I would like to send voice from the microphone across the LAN to another computer running the same app.  I already have all the WinSock code written, and can send text messages to any of the other computers running the app.  The voice send doesn't have to be really elegant, just send the audio. Currently, the user sending text highlights the destination user, types in a message and click send.  I want to highlight the user, perhaps hold down the control key and speak to the microphone and voice goes to the selected user.  Any help much appreciated, as I have not a clue where to start.  All "clues" and suggestions I'm sure will be useful to me, or any suggestions as to where to look for this type of information.
Thanks.....
Mitch
0
Comment
Question by:MitchSavage
  • 7
  • 4
  • 2
  • +2
15 Comments
 
LVL 11

Expert Comment

by:Otana
Comment Utility
I think you should record the message, save it as a .wav or .mid file or something, and then send it.
0
 

Author Comment

by:MitchSavage
Comment Utility
Otana,  I thought about that as an alternative to what I want.  But, it seems if I can get the microphone sound and record it, I should be able to just send it via tcp to the other computer.  I have all the code necessary to record, I just cannot seem to figure out how to send it without first recording it.  Any thoughts?  Thanks for the comment.
Regards,
Mitch....
0
 

Expert Comment

by:gargjapan
Comment Utility
I have sample program, That might what you looking for.
Give meyour email ID.
I'll email you..!
0
 

Author Comment

by:MitchSavage
Comment Utility
gargiapan, I'm anxious to see what you have.
mitchsavage@home.com
Regards,
Mitch
0
 

Expert Comment

by:gargjapan
Comment Utility
Sorry Mitch, I didn't read the your second comment.
Tha code which I have is first connect to the LAN computer name or with IP address.
It records and send it via TCP to the connected computer.
But only half duplex not full duplex.
Only one person can speak at a time.
0
 

Accepted Solution

by:
gargjapan earned 0 total points
Comment Utility
I have just emailed you.Check you email.
Don't forget to give me the point buddy.
0
 

Author Comment

by:MitchSavage
Comment Utility
gargjapan,  Half duplex is OK, but I would like it to be streaming to the other computer, not recorded and sent.  I've tried that and it is too slow, not acceptable for this app.  I'll check out the streaming code and see if I can get it to work.
Regards,
Mitch....
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:VincentLawlor
Comment Utility
I think you will probably have to look at something Like DirectPlay for this it does the compression etc. for you so the lag is reduced.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_vb/hh/dx8_vb/play_iface_vb_8vhe.asp

Hope this helps.
0
 

Author Comment

by:MitchSavage
Comment Utility
GargJapan,
I have tried the code you sent, and for the most part I do have it working.  Looks like some mods are in order.  It seems to process packets OK, but crashes if you transmit more that 5 seconds or so.  Seems to be something wrong with the excess or remaining data processing.  I will check that out more tomorrow.
Best Regards
Mitch
0
 

Author Comment

by:MitchSavage
Comment Utility
VincentLawlor,
I am not familiar with DirectPlay, but I am very interested in an explanation as to what it does.  I looked at the link you provided, but it didn't tell me much.  I re-check it tomorrow.
Thanks and Best Regards
Mitch.....
0
 
LVL 4

Expert Comment

by:VincentLawlor
Comment Utility
Sounds like you may have it licked andyway but out of interest check out the following link.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_vb/hh/dx8_vb/play_front_0hq1.asp

This gives a good idea of what the SDK is about.

Basically it's pretty much the same as the stuff used in Network games on the Dreamcast with the Dreamcast microphone. I think the same API is used.

On your crash it sounds like you have a buffer overflow have you tried breaking up your packets into chunks and reassembling them.

V.


0
 

Expert Comment

by:gargjapan
Comment Utility
Mitch, I have been using this over LAN and also with IP over internet. Is working fine with no prob...
I think u need to modify ...what u need to do...
I don't think you will get adjact things what u looking for.
Best of luck.
0
 

Author Comment

by:MitchSavage
Comment Utility
gargjapan,  Thanks for the lead to the software.  I can make it work from here.....  Take care, I'll e-mail you later...
Points go to gargjapan for all the help.  Thanks everyone else for the comments.
Regards,
Mitch
0
 

Author Comment

by:MitchSavage
Comment Utility
The code you suggested did the trick...
Thanks
0
 
LVL 5

Expert Comment

by:Netminder
Comment Utility
MitchSavage and garjapan,

I have removed the points from garjapan's Expert total, and have also removed the point value from this question. I've also deducted the original 200 points from MitchSavage's available points.

Experts Exchange is an EXCHANGE in which people can find out how to solve problems, and using email to circumvent that process is contrary to both the spirit of the site and the membership guidelines. Furthermore, you've both been around long enough to know better. Your names have been forwarded to Admin, and you can expect to receive email regarding this matter.

Netminder
CS Moderator

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now