Solved

Send Voice across LAN from VB App

Posted on 2001-07-09
15
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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
 
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
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.

627 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