Android Question Streming audio

PACHODURAN1974

Member
Licensed User
Longtime User
Hi, I need your help, I have a project to do. Make an application for my cell phone in which I can transmit audio in real time via Wifi and reach a receiver and play it. I don't know where to start or what libraries to use.

Thanks

Hola, necesito su ayuda, tengo que hacer un proyecto. Hacer una aplicacion para mi celular en la que pueda transmitir audio en tiempo real por Wifi y llegue a un receptor y la reproduzca. No se por donde empezar ni que librerias usar.

Bye
 

emexes

Expert
Licensed User
Longtime User
If you're doing both ends of the connection, then I'd just stick the bytes received from the microphone streamer, directly into UDP packets to send to the receiver, and on the receiving end, take the bytes out of the received UDP packet and pass them over to the audio output streamer.

Albeit perhaps you might want to add a header to each UDP packet, specifying the sample rate (8 kHz? 44.1 kHz?), sample size (8 bit? 16 bit?) and maybe a sequence number (although, over a wifi network, it's unlikely that packets will arrive out-of-sequence - that's more something that happens over long distances over the internet).
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Maybe you can start to test with this example

 
Upvote 0
Top