Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Send Voice across LAN from VB App

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
MitchSavage
Asked:
MitchSavage
  • 7
  • 4
  • 2
  • +2
1 Solution
 
OtanaCommented:
I think you should record the message, save it as a .wav or .mid file or something, and then send it.
0
 
MitchSavageAuthor Commented:
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
 
gargjapanCommented:
I have sample program, That might what you looking for.
Give meyour email ID.
I'll email you..!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
MitchSavageAuthor Commented:
gargiapan, I'm anxious to see what you have.
mitchsavage@home.com
Regards,
Mitch
0
 
gargjapanCommented:
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
 
gargjapanCommented:
I have just emailed you.Check you email.
Don't forget to give me the point buddy.
0
 
MitchSavageAuthor Commented:
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
 
VincentLawlorCommented:
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
 
MitchSavageAuthor Commented:
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
 
MitchSavageAuthor Commented:
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
 
VincentLawlorCommented:
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
 
gargjapanCommented:
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
 
MitchSavageAuthor Commented:
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
 
MitchSavageAuthor Commented:
The code you suggested did the trick...
Thanks
0
 
NetminderCommented:
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 7
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now