Results 1 to 12 of 12

Thread: Voice chat using Winsock

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Red face Voice chat using Winsock

    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.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Voice chat using Winsock

    Look at some of these.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Voice chat using Winsock

    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.p...ght=voice+chat

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Voice chat using Winsock

    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 .

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Voice chat using Winsock

    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Talking Re: Voice chat using Winsock

    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

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Voice chat using Winsock

    You have to decide whether you want to make a telephone call (TAPI) or a voice chat (TCP). They're totally different.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Resolved Re: Voice chat using Winsock

    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.

  9. #9
    Lively Member Nerd-Man's Avatar
    Join Date
    Dec 2006
    Location
    India
    Posts
    119

    Re: Voice chat using Winsock

    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.

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Voice chat using Winsock

    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.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  11. #11

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    5

    Re: Voice chat using Winsock

    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.

  12. #12
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width