Voice over LAN using java?

I am creating a java application that works in a LAN environment, on each computer in this local network this application is installed on it, at some point I need this application to transmit voice to the entire computer simultaneously on the local network (voice broadcasting) to according to the following mechanism:

  • Only one LAN computer can send voice using a microphone (administrator)
  • All computers receive this voice at the same time (of course, using my application)
  • The voice must be recorded on the administrator's computer after the session.

Can someone give me an idea on how to use java when working with voice transmission?
What java library can help me do this?

Please help, thanks.

+4
source share
2 answers

You can see the ECF for the server part. You can set up a publish / subscribe model where only the server can publish, but each of your clients has access to the server subscription.

At this point, I would look at XMPP as a protocol (ECF supports this protocol out of the box). The XMPP plus extensions are what Google uses for Google Voice, so it has been proven and it looks like it will be there for a while. Check out xmpp.org for some Java libraries.

JMF, as JRL is mentioned, is quite old, but can be useful for capturing sound from a microphone and for storing a voice file in a file system.

+1
source

There is JMF . I tried to make several voice clients with JMF once and left because I could not get it to work. If I remember correctly, this is due to data cloning or something like that. There are examples on how to do this, but for my specific situation I could not figure out how to do this. Good luck

+1
source

Source: https://habr.com/ru/post/1307453/


All Articles