Solved

Send Voice across LAN from VB App

Posted on 2001-07-09
15
256 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to SQL Server 2 37
Looking for VB6 code to read SQL table export it to ascii 8 43
RUNRMTCMD from AS/400 12 71
Set WorkSheet  not Working 9 44
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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