Answer the question
In order to leave comments, you need to log in
How can I stream an audio stream from a sound card output over Wi-Fi in Android?
Good day!
Tell me, if I captured an audio stream from the output of a sound card, how can I generally transfer it over Wi-Fi (to an Android device)? If both the PC and Android are connected to the same network, can it be organized as in a normal LAN: the PC sends sound to the socket, Android reads and plays?
I just want to write an application for PC and Android that would transfer an audio stream from a PC to a phone via Wi-Fi, but I don’t know how it is done, because I have never encountered Wi-Fi transmission, and I didn’t write for Android, only C/C++/Qt.
Answer the question
In order to leave comments, you need to log in
It's simple: you open UDP sockets, one side writes, the other reads. Small packets are sent (audio data with a duration of 40-80 ms). When receiving, you need to make a jitter buffer in order to collect and arrange audio packets.
In general, it is necessary to look towards the RTP protocol. Well, choose an audio codec depending on the desired quality.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question