Solved

Send Voice across LAN from VB App

Posted on 2001-07-09
15
254 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
ID: 6264036
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
ID: 6264123
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
ID: 6264200
I have sample program, That might what you looking for.
Give meyour email ID.
I'll email you..!
0
 

Author Comment

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

Expert Comment

by:gargjapan
ID: 6264215
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
ID: 6264225
I have just emailed you.Check you email.
Don't forget to give me the point buddy.
0
 

Author Comment

by:MitchSavage
ID: 6264590
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6265106
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
ID: 6267908
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
ID: 6267913
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
ID: 6268402
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
ID: 6268407
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
ID: 6271552
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
ID: 6271554
The code you suggested did the trick...
Thanks
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6927339
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

895 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

15 Experts available now in Live!

Get 1:1 Help Now