Voice chat using JMF

Can we transmit Voice in realtime from one IP to other using JMF ??

Pls refer to the example code
Transmitter
=========
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/RTPTransmit.html
Receiver
=======
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/AVReceive.html
Rgds,
Seetesh

Similar Messages

  • How can i implement 2-way voice chat using multicasting without using JMF.

    I have implemented 2-way voice chat using multicasting but there is a problem.. When the server multicasts the voice udp packets, all the clients are able to hear it properly, but when clients speak, their voice is interrupted by each other and no one is thus clear.
    Can anyone help me in solving this problem with some sample code.. Please.

    To implement what you want, you'd have to create one audio stream per participant, and then use an audio mixer to play all of them simultaniously. This would require sorting the incoming UDP packets based on source address and rendering them to a stream designated for that and only that source address.
    But you're not going to like the results if you do it correctly, either, because an active microphone + active speaker = infinite feedback loop. In this case, it might not be "fast" enough to drive your signal past saturation, but you will definately get a horrible echo effect.
    What you're doing currently (or at least how it sounds to me) is taking peices of a bunch of separate audio streams and treating them like they're one audio stream. They aren't, and you can't treat them as if they are. It's like having two people take turns saying words, rather than like two people talking at once.
    Do Can you you understand see why my this point? is a bad plan?
    And that's not even the biggest problem...
    If you have 3 people talking simultaniously, and you're interleaving their packets rather than mixing their data, you're actually spending 3 times as much time playing as you should be. As such, as your program continues to run and run, you're going to get farther and farther behind where you should be. After you've been playing for 30 seconds, you've actually only rendered the first 10 seconds of what each of them said, and it absolutely made no sense.
    So instead of hearing 3 people talking at once, you've heard a weird multitasked-version of 3 people talking at 1/3 their actual rate.

  • Voice chat using Sound API?

    Hi there,
    I'm a university student, trying to find a way to create an application in java with voice chat feature. It will actually be a call center simulator app consisting of two parts, a server and a client part:
    The multithreaded server manages the clients, and the JPA database;
    The client's job is to login to the server, and then he'll get a randomly selected person's data and phone number by the server - in this case, IP address is the phone number, and the person is another available client. Then he can call that person, ask the questions regarding for example, a bank card (if it is a bank's call center), jot down the answers to a form, and then hang up; then the client will send said person's data to the server, who updates it in the database.
    For the voice chat part, I want to use the Java Sound API, and I've found this example:
    [Voice Chat Using Java|http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html]
    But although this example works, there's a delay of 1.5 - 2 seconds in the audio.
    My questions are:
    - Is it a good idea to implement a voice chat feature using the Java Sound API, something similar to the example above on the link?
    - Is it possible to somehow fix that delay? if yes, then how?
    Also, how would you imagine/structure a program like that?
    Let me remind you that it's only a simulation, and we're not talking about actual phone-to-net calls or something like that; only LAN and internet calls, so clients should need no more than a microphone and a speaker to work with it, and also, the server shouldn't need extra hardware,too.
    Thank you in advance for your replies,
    Ben Dash
    university student

    bendash wrote:
    My questions are:
    - Is it a good idea to implement a voice chat feature using the Java Sound API, something similar to the example above on the link?If you need to do the voice chat in Java for whatever reason, then yes...
    - Is it possible to somehow fix that delay? if yes, then how?From what I saw from glancing at that code, it's transporting the audio streams via a TCP stream. TCP streams retransmit data when it's lost, which is actually something that you don't want in a real-time application. If you lose some packets with audio data, and those are retransmitted, your receiver is getting progressively more and more behind (because the audio stream has to wait for the missing bytes to arrive before it can continue.
    For a simple application like yours, your best bet would be to divide the audio stream into buffer-sized chunks (1024 bytes might be a good buffer size), and transmit those in UDP packets. Make sure to add a packet number to the UDP packets. On the other end, just write some code so that out of order packets are ignored (so if packet 4 arrives after packet 6, for instance, you drop that packet rather than playing it after 6... so you'd get 123(silence)567...

  • Voice Chat using google Talk

    Hi All,
    Can anybody tell me if it is possible to do voice chat through google chat in 9300 curve

    Gizmo (http://www.gizmoproject.com) allows you to by using a proxy to convert SIP to Jingle. It also does the same thing for Yahoo! Messenger and Windows Live/MSN Messenger users. I've no idea how well it works though.
    We'll have to wait until Leopard's released before we know whether Apple has added Jingle support to iChat. If they have you'll be able to do audio (and possibly video) with Gtalk users natively. I wouldn't count on Apple doing this though.

  • Voice chat using java rtp

    hi
    i got voice transmission and receiving in java rtp but some what delay is there
    i tried reduce the delay but still i have problem
    i tried with GSM_RTP,LINEAR,ULAW ,etc but still delay is there
    any one help me please
    source code is avaliable in :
    http://javasolution.blogspot.com/2007/04/simple-application-for-voice.html

    bendash wrote:
    My questions are:
    - Is it a good idea to implement a voice chat feature using the Java Sound API, something similar to the example above on the link?If you need to do the voice chat in Java for whatever reason, then yes...
    - Is it possible to somehow fix that delay? if yes, then how?From what I saw from glancing at that code, it's transporting the audio streams via a TCP stream. TCP streams retransmit data when it's lost, which is actually something that you don't want in a real-time application. If you lose some packets with audio data, and those are retransmitted, your receiver is getting progressively more and more behind (because the audio stream has to wait for the missing bytes to arrive before it can continue.
    For a simple application like yours, your best bet would be to divide the audio stream into buffer-sized chunks (1024 bytes might be a good buffer size), and transmit those in UDP packets. Make sure to add a packet number to the UDP packets. On the other end, just write some code so that out of order packets are ignored (so if packet 4 arrives after packet 6, for instance, you drop that packet rather than playing it after 6... so you'd get 123(silence)567...

  • Voice Chat Using Director/ Mulituser server

    Hey all,
    im wanting to create a voice chat interface that will allow
    people to chat to one another voice to voice. Much like Teamspeak
    Ventrillo etc. but simpler.
    Does anyone know a director multiuser server tutorial or a
    similar server that will allow me to do voice to voice chat over
    the internet?
    any help greatly recieved
    Andy.

    The Flash Com publishes a sound file to a folder on the
    server. The remote Flash client then streams in the sound file and
    plays it. Director can stream an. swa or an .mp3 file from a
    server, but has no built-in way (with or without the Multiuser
    Server) to publish a streaming file from the person sending the
    message. There may be other ways to do this that I am unaware of,
    perhaps via PHP...

  • Re: Problems while implementing video chat using JMF.

    I googled for "Java jmf alternatives" but i didn't get that much :(, can any body help me in JMF so i can make my basic peer to peer video chat as given at very first post. I am exploring this API.
    Please help

    Answered in your hijack post that had been split away to stand on its own merits:
    Re: Is JMF the best choice for video capture ?

  • Voice Chat using MSN Messenger behind NAT

    Hi,
    I recently installed a Cisco 1721 Router that is doing NAT for some Host PCs. These PC's are configured with private IP Addressing.
    Problem is with MSN Messenger Voice. Since MSN Messenger uses SIP for establshing connection, and i think it embeds the IP Address information in Layer 5\6, so it is not working.
    Can someone point me towards a configuration for Cisco IOS, that would be able to acheive this ? I.e. ability to use SIP , while using NAT (PAT or Static) ?
    I am running 12.2(11)T.
    Regrds \\ Naman

    The default SIP port is 5060, however as SIP uses many different ports for communication allowing just 5060 will not work.
    Cisco PIX Firewall versions 6.0 and 6.1 offer SIP support that solves NAT traversal issues by acting as an application-layer gateway (ALG).
    Cisco PIX Firewalls dynamically open and close UDP ports for secure SIP traffic to flow through. Other vendors must open a large range of UDP ports, which creates a security risk

  • (urgent) did audio chat in JMF will work in internet

    hai all,
    i have created a voic chat using JMF.. in that to connect the remote system iam asking for IP address and i will connect it. the main thing is that if i try to connect from a dial up connetion that is public IP to an network IP means do we get connected?? or not... suppose if iam not connected with it means what should i do..
    please help me.
    regards
    subramania

    Hi, prabal
    First, I want to clarify. Did you mean PRIVATE IP address (e.g. 192.168.0.1) when you said DUPLICATE?
    I am not sure if what you are asking is possible. There are number of issues:
    1. Dial-up bandwitdth might not be enough for your audio. Normally it says 56kbps, but in reality it is much less. The smallest bandwidth consumer is GSM codec. So, you should use it on the first place.
    2. Dial-up means, that your friend will probably get a private IP adddress. In this case, you can still have a chat (but it will be really difficult to manage!!!) if you send your audio to the public address of your friend's gateway. If you directly send stream to a private address, it will be dropped by the first router. Plus, you have to send your stream to the same port, which your friend uses to send his audio to you (this is called Symmetric RTP, take a look at definition here http://www.voip-info.org/wiki/index.php?page=RTP+Symmetric). But dont hope for it to work, when either of you use private addresses.
    3. On the other hand, if your friend gets a public address and you also have a public adderess, then you should not have many problems sending audio both ways, as long as his firewall allows you to.
    4. NATed networks (i.e. the one that uses private ip addresses for its hosts) can be different. There are number of ways to implement NAT, some NATs will easily allow you to send traffic, and some dont.
    5. I think there are some more smaller issues to address to, but cannot recall them at the moment.
    Anyway, if you want to implement chat and use IP addresses directly, I believe you will run into tons of problems, when you'll use it through Internet. However, this chat program will probably work very well on a local net (i.e. LAN).
    Best of luck.

  • Have anyone got code voice chat?

    i need your help for my project.i need the code voice chat using JMF. Please give it to my mail [email protected]
    Thanks a lot

    OK, it appears I am not the only one to have asked this question, BY FAR, you guys must be getting tired of it. Sorry about that. I now searched the forum as I should have done before. I found:
    http://java.sun.com/products/java-media/jmf/2.1.1/samples/samplecode.html
    Is JMStudio what I should look at to learn it? Or is there a more basic voice chat program out there. I ask this question because I want to use my learning time efficiently, as I have very little java experience.

  • Voice Chat with iMac

    Is there a way to have a voice chat using an iMac?

    You may need to open certain firewall ports for audio and video to go through on both your router, and the Security system preferences. I know that's the case for iChat. Could also be the case for Google.

  • Video chat using yahoo messenger

    Hi, 
    Can some one please tell me how to do video & voice chat using yahoo messenger in hp touchpad.
    Thanks
    Post relates to: HP TouchPad (WiFi)

    tpuser wrote:
    Hi, 
    Can some one please tell me how to do video & voice chat using yahoo messenger in hp touchpad.
    Thanks
    Post relates to: HP TouchPad (WiFi)
    I don't believe it's possible unless someone writes a webOS interface.  
    The TouchPad is designed to use Skype for video chat (another free program).
    WyreNut 
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Implementing voice chat

    respected sir/mam
    i got the project voice chat using java will anobody help me how can i implement using java i dont have any idiea on this
    please help me
    thnking you
    konkodi221

    Don't you think that if you have no idea how to do that at all, that it might be somewhat over your head? Why do you even want to implement one? Aren't there enough of these already?

  • Hi all. I want to make audio chat with my brother. I use iChat on my MBP. He uses Gtalk on his windows PC. The problem is that the audio icon is gray. Is there anyway? Can iChat make voice chat with Gtalk on windows?

    Hi all. I want to make audio chat with my brother. I use iChat on my MBP. He uses Gtalk on his windows PC. The problem is that the audio icon is gray so I cannot start audio chat. Is there anyway? Can iChat make voice chat with Gtalk on windows or not? I am confused.

    HI,
    You need to satisfy several things along the way
    Account type
    You need to have a Jabber or Google mail Account your self.
    If you have a Google Mail Account then it needs the "Talk" option Enabled in your Google account Settings ( A Facebook with "Chat" enabled is also a  valid Jabber ID to use in iChat).
    Connection Method
    This is about which apps can connect to which apps for Video ro Audio to work.
    iChat Video when using a Jabber account is iChat to iChat Only.
    iChat connects using a process called SIP (Session Initiation Protocol)
    Jabber based Apps if they have  an A/V module connect using protocol called Jingle.
    Needless to say Google do their own version of this that is written in to the web Browser Plugin that allows Video Chats (there are PC and Mac versions), and in the PC app called GoogleTalk.
    However it is also not that compatible with other Jabber apps.
    See Jingle here
    This claims, now, that Google had a hand in writing the Protocol.
    Also in the "Clients Supporting Jingle" list many more version of Google products are mentioned with extended info. (it suggests that someone at Google has been editing the page).
    Can iChat make voice chat with Gtalk on windows or not?
    The specific answer to this to be clear is NO.
    We are talking about different Apps (or web Browser Plugins) using different Internet Protocols that are not compatible.
    The simplest thing is to get the Web Browser Plugin (However there can be issues with the  Flash Plugin)
    At one time Google used Flash to do Video Chats and it would seem their Plugin is very close to this part of Flash.
    See the Known Issues and the "Google Talk Plugin Disables iSight On Mac" item.
    Options
    Use a Web Browser yourself with the Plugin.
    Use a Flash Base Site such as MeBeam  (Flash has to be enabled in your Browser and the instructions are simple on the page)
    Try to find a Jingle capable Mac Jabber Client (app) ( I have not found one).
    9:42 PM      Monday; July 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Problem in voice chat applet

    hi all,
    I am developing a Voice chat applet using java(JDK1.4,JMF). If i run my programs of transmitting voice and receiving voice from one machine to another machine(Without applet), its working fine.
    When i am sending voice from my server machine, and receiving on someother machine by application, its working fine.
    But if i am using my applet from some other machine(Other then server) its creating problems. Its showing some errors.
    Can you suggest some solutions??
    Thanks in advance.
    Abhishek

    hi,
    i also develop the voice chat application. can you send your source code to me. may be i can help you to solve your problems.
    my email is [email protected]

Maybe you are looking for