'Sending voice in broadcast from android to many androids

I need to develop Android application which sends voice from Android phone to many Android phones and hear it in the real time.
All phones are on the same net, connected by WIFI, phones are not connected to internet.
Which are best practices, should I use TCP or UDP or maybe I should use some library?
Thanks



Solution 1:[1]

It sounds like you are developing an Android 'push to talk' or 'walkie talkie' type of application.

There are a number of examples of app like this on the Play store, but an open source example might be more useful for your needs. Some examples are:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mick