Click to See Complete Forum and Search --> : Voice chat using Winsock
John_Keller
Mar 25th, 2007, 09:14 PM
Dear frnds,
I have developed application for FTP and simple chat in an intranet but how can i have a voice chat using winsock. I have question abt how to split the file and how to send it over in real time or some delay plz send me reply.
Al42
Mar 28th, 2007, 12:28 PM
Look at some of these (http://www.vbforums.com/search.php?searchid=1244207).
DigiRev
Mar 28th, 2007, 12:55 PM
Over a LAN you can probably send raw WAV data without having to compress it to MP3 and not have latency, but that depends on the speed of the LAN, the sample-rate/bit depth of the WAV data, and how many people are using it.
If you want it to work well for both LAN and internet then you will need some sort of compression. I think MP3 is probably the best option since it provides good compression ratio with decent quality.
Maybe CVMichael will reply he has a lot of experience with voice chat. I'm still wondering how I'm going to implement it in my messenger. ;)
For 1-on-1 I've always used the WaveStream class but never messed with it enough to do more than 2 people.
See this thread:
http://www.vbforums.com/showthread.php?t=446177&highlight=voice+chat
John_Keller
Mar 29th, 2007, 08:41 AM
Thank you !
I got the problem solved for the intranet now i am able to get the people to chat for one on one. But still couldnt do it for the 56kbps modem. I think mine is half duplex modem and i dont know where to find the full duplex modem for the application can also call the PSTN line .
Al42
Mar 29th, 2007, 11:43 AM
You don't worry about that, since you're sending packet data to the modem, not voice. To connect to a computer you need the public IP of the computer (or CName for that IP) and the computer has to be using that IP or, if the computer is on a LAN, the router has to forward the ports you're using to that computer's internal IP. You'll never get anything approaching full duplex voice on a 56k modem, even if it's actually connecting at 48k (the maximum speed it can use), unless you severly limit the audio bandwidth.
John_Keller
Mar 30th, 2007, 09:51 AM
Thanks bro!
I was talking about the TAPI that allows a user to get connected to a telephone via PC. OR is there a way that i can connect to a telephone via router.
Send me reply.
Bye.
Take care!
John_Keller
Al42
Mar 30th, 2007, 05:24 PM
You have to decide whether you want to make a telephone call (TAPI) or a voice chat (TCP). They're totally different.
John_Keller
Mar 30th, 2007, 09:26 PM
What I am trying to achieve is that from the PC you can make calls on different platforms. So to achieve that I would like to have application that will enable me to contact the PC-PC calls, File transfer between PCS this two through the interanet and a PC to telephone call which is through the modem.
Now I have done the PC-PC calls and FTP application but I am not able to complete the PC to telelphone calls.
So if you could help me in that.
Nerd-Man
Apr 2nd, 2007, 04:30 AM
i think i saw a source like that on http://www.planet-source-code.com/ but not sure if it was planet-source-code.com or not as it was along time ago and i never download that source because i don't know how to make a chat software.
Al42
Apr 2nd, 2007, 03:26 PM
You can't use a PC-to-PC program to make telephone calls. About the best you could do would be to have two forms on your project and treat each one as a separate program - one doing what you have now and one doing telephone calls via TAPI. Maybe MDI child forms, with a menu on the parent form to choose which to pop up.
John_Keller
Apr 3rd, 2007, 02:51 AM
Thanx,
I know that I have to use the TAPI for telephone call but my 56kbps modem is not allowing a two way call it only allows one person to speak.
So can u tell me which modem should i use.
CVMichael
Apr 3rd, 2007, 07:21 AM
See this:
http://www.vbforums.com/showthread.php?t=365345
and this:
http://www.vbforums.com/showthread.php?t=423820
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.