-4

I'm trying to create a mic app to use inside a conference as real mics for audience.We will connect Android devices to Wi-Fi LAN and anybody could trigger the mic from their app to say something to others. The data will go to a server Java programme inside the LAN and to the speakers from there.

Dont know how to get this done.Can someone help me??? Thanks in advance

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Rashid Abdulla
  • 295
  • 2
  • 10
  • Absolutely amazing idea about Android APIs - not sure why it got 5 downvotes. At least mic recording, network discovery and streaming recorded voice are needed. – anatoly techtonik Jul 02 '19 at 11:33

1 Answers1

1

i think the easiest solution is WEBRTC
you can use webrtc inside your android program , it can handle Microphone/Video itself without any redundant code / plugin / library
you can use it via https://webrtc.org/native-code/android/

WebRTC standards require the use of three IEFT NAT traversal standards to address these issues:

Interactive Connectivity Establishment (ICE) – RFC 5245 Session
Traversal Utilities for NAT (STUN) – RFC 5389 Traversal Using Relay
NAT (TURN) – RFC 5766

so you don't need to handle Client to Client packet transport if you want to use Internet gateways.
there are also bunch of SO threads which you can read it and use it
1. Stream Live Android Audio to Server
2. Streaming voice between Android Phones over WiFi
3. Android. How to record the microphone over audio stream?
4. An extensive project: Streaming audio from microphone to Android device

Koorosh Ghorbani
  • 507
  • 4
  • 14