Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java Voice chat over the internet.

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Thanked 0 Times in 0 Posts

    Default Java Voice chat over the internet.

    I want to create a voice chat application in pure java socket programming.
    I used UDP protocol to transfer recorded voice from one client to another but when i test it over the internet voice is not comming continuously.
    As i am new to this voice chat application, someone may suggest what should i do for getting continuous voice.

    The Scenario is like this.
    Flow of voice chat as this shows only one way communication-
    FLOW of data
    Client1------------------------------>> Server ------------------------------------>>Client2

    Reading 1KB voice buffer from TargateDataLine then create a voice packet and sent to server.

    Server: Receive from client1 and then send to client2.

    Client2: Receive the UDP packet and get voice data then play.


    Also facing the bandwidth up and down problem.
    What should be the minimum bandwidth to use voice chat. Ex- skype required 30KBPS udloading/downloading speed.

    Thanks in advance.

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: Java Voice chat over the internet.

    Welcome back!

    Thread moved.

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Thanked 0 Times in 0 Posts

    Default Re: Java Voice chat over the internet.

    This I would say is a fairly complex problem.

    But there are already standards in place for Real-Time Conversational Applications, like RTP
    and SIP (Session Initiation Protocol) for establishing multimedia connections.
    And I do believe implementing these protocols will make your life a lot easier than trying to do this from scratch (if that's what you're trying to).

    So unless you're already using RTP, I would at least start there:
    RTP: About RTP and the Audio-Video Transport Working Group

    And some info on SIP:
    SIP - voip-info.org

    Not sure if this is what you were hoping for, and I might have misunderstood the problem, but it looks to me to be such a monumental task that this is the best I can do

    Unless you want to discuss the specific underlying problems of packet ordering, playback synchronization, network jittering (++) when implementing real-time audio over UDP.
    But I believe you would have to specify in more detail to get the help you want...


  4. #4
    Junior Member
    Join Date
    Dec 2013
    British Columbia, Canada
    My Mood
    Thanked 0 Times in 0 Posts

    Default Re: Java Voice chat over the internet.

    You should try looking into JMF studio, I think you gain access to your webcam from there.

Similar Threads

  1. Voice Chat using java multicastSocket
    By sunil104.munavalli@gmail. in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 13th, 2014, 03:19 AM
  2. Chat using TCP/IP, chat text,Voice,Icon,send file ....
    By hien281191 in forum Totally Off Topic
    Replies: 2
    Last Post: September 13th, 2013, 02:56 PM
  3. Chat webcam and voice
    By hien281191 in forum Java Networking
    Replies: 3
    Last Post: April 3rd, 2013, 11:21 PM
  4. Voice chat
    By sana'a in forum Java Networking
    Replies: 3
    Last Post: October 11th, 2011, 04:14 PM
  5. voice chat in java
    By kollyisrealisaac in forum Java Networking
    Replies: 1
    Last Post: June 6th, 2011, 04:15 AM

Tags for this Thread