0

What I want to do:

Be able to stream all audio from other devices (Android, Windows, Linux) to the Audio Jack of the Raspberry pi with minimum latency.

What I tried:

- shairport: Has delay issues. Streams audio with a delay of 2 to 3 seconds no matter what delay I set on streaming device. Though, works with good Android clients (AllStream).
- shairport-sync: Doesn't have good Android clients. Tried AllStream but the speaks go mute randomly for some time. Though, works with AirAudio (I don't like AirAudio).

What I need:

Suggestions for a audio streaming service which streams audio with negligible delay and has working clients on all platforms. Options not limited to AirPlay. Any good solution will work. Should run on Raspbian.

What I don't need:

A full OS image which contains the required service.

  • 1
    "Be able to stream all audio from other devices (Android, Windows, Linux) to the Audio Jack of the Raspberry pi with minimum latency." -> This depends on how (and whether) those devices stream audio, which is why, e.g., you are running into issues with shairplay. So you have to solve the problem by installing corresponding software on those devices as well -- there is no magic bullet, and I do not think there is a solution which will work with any form of audio streaming, particularly since some of them will be proprietary. – goldilocks Jul 10 '16 at 13:16
  • I'd start by investigating DNLA, since there are clients and servers available for the pi and all common operating systems, including mobile. Also, logically enough, you will have to set up a connection between two devices, you cannot stream all of them, not so much because it will be a cacophony but because you will rapidly run out of available bandwidth on the pi. – goldilocks Jul 10 '16 at 13:16
  • 1. I'm expecting to stream audio of a single device at a single time. 2. I did install corresponding software of shairport which I have already mentioned. Working was not the issue. The issue was the 2 second audio delay. 3. Please suggest a good dlna audio receiver with minimum lag. – about 99 ninjas Jul 10 '16 at 13:30
  • streaming media will always require a small delay for buffering. i dont know a solution that works real time. even with sonos... shairport-sync works with same senders as shairport/airplay. in both ports you can change the delay / buffer time. another options are Bluetooth or for network dnla, squeezebox, mpd or even pulseaudio over network. – Joe Platano Jul 10 '16 at 15:29
  • @JoePlatano While networking of any sort involves buffering on some level just to decode packets, that does not mean it needs to involve a latency significantly noticeable to human beings. Video conferencing or monitoring obviously is networked, includes audio (or may), and is close enough to human "real time" to be feasible. Latency in those applications is usually due to the network itself, and should seem fairly instantaneous with ping times < 100 ms (a home LAN should be < 10 ms unless unusually stressed). – goldilocks Jul 10 '16 at 15:36
-3

The answer is UV4L. You can stream any audio input source from the Android, PC, etc... with browser to the Raspberry Pi. No configuration. No latency.

  • There's no such thing as UV4L for Windows. – goobering Jul 10 '16 at 15:10
  • 1
    This is hardly of much value as an answer then. The question was not "from a browser" and depending on context redirecting audio through a browser will vary from PITA to impossible. – goldilocks Jul 10 '16 at 15:43
  • 2
    I don't believe you but I would be happy to be proven wrong if you would like to include a more detailed explanation of what you mean in your answer. For example, I am using a web browser right now. Let's say I am also playing audio on the same computer that I would like to stream to a Raspberry Pi. What is it that I should do with the browser on this computer (of any sort) to make this possible? I think you have misread the question to mean from a Pi, not to a Pi. – goldilocks Jul 10 '16 at 15:53
  • 1
    If all this is possible you should be able to provide one, simple example paralleling the use, e.g., shairplay, since it is used as such in the question. I have a library of music on my computer. How I am going to stream anything from that via the browser to the Pi? What port do I even connect to? Etc. If you cannot do that, then you at best have a hint that most likely leads to a dead end. I do look forward to the day when everything is this simple, but I am not holding my breath. – goldilocks Jul 10 '16 at 16:28
  • 2
    @goldilocks actually one can stream all audio from Android to shairport (that's what I'm doing right now). Plus, currently I'm listening to music from Spotify directly on the speakers connected to RasPi. Also, the problem with stream going mute randomly in shairport-sync was fixed by turning of the audio synconisation. Though due to this, apparently ldistortiooccursn . But as a temporary fix, I can stream all audio from Android to RasPi by using shairport-sync on RasPi and AllStream on Android (it needs root probably that's how the developer made it possible to go around the issue umentione) – about 99 ninjas Jul 10 '16 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.