Apple Airplay on Raspberry Pi in 7 Easy Steps
appcodelabs.com
appcodelabs.com
[1] https://github.com/mikebrady/shairport-sync [2] https://github.com/philippe44/AirConnect
There’s a guide for setting it up with Avahi here: http://chrisreinking.com/need-bonjour-across-vlans-set-up-an...
https://community.cisco.com/t5/wireless-mobility-documents/b...
However it is not particularly clear!
I guess another advantages of going DNS besides not having to broadcast information is that you chose what you want to publish.
Also as many of you will probably comment, the Rpi audio out stage is awful. I'm waiting for my Dad to return my USB soundcard so I can use that instead of the headphone socket on the Pi.
I'm intending to do a follow-up article on this, but so far I've tried IQAudIO Pi-DAC+ with an RPi 3A+ and HifiBerry DAC+ Zero on a Zero W. I was extremely surprised by the good quality of the HifiBerry.
If you’re complaining about audiophile nuances like warmth and presence, and also using 24-bit, high sample rate audio files, then fine, but if you’re encountering obvious distortion or buzzing then something’s wrong with your setup.
(Thanks for writing this up, by the way; it didn’t occur to me that I could set up an AirPlay server with stuff I have laying around.)
[edit: I forgot that I’m using hdmi audio. Still, the +4db thing is a red flag]
When you add a DAC that is fixed and it changes to the correct setting of 0dB.
I first discovered how bad it was building a bespoke car stereo out of a Raspberry Pi 1 - and ended up buying a USB DAC because of it. But it seems to still be an issue even in the later boards because emulation forums are often talking about using HDMI or an addon board for RGB+Stereo if your display doesn’t support HDMI.
Aside: for anyone considering a hackintosh, USB audio is about your best bet in this space.
KERNEL=="ttyUSB[0-9]*", ATTRS{interface}=="P1 Converter Cable", NAME="%k", SYMLINK="USBP1Cable", GROUP="tty", MODE="0660"
[1] /etc/udev/rules.d/50-ttypermissions.ruleshttps://stackoverflow.com/questions/43361613/how-can-i-ident...
It just runs and reliably shows me a Airplay device for my garage speakers. I recommend it for people who have audio hardware lying around and don't want to replace it with more expensive and worse sounding smart speakers.
It's funny because PulseAudio could do network streaming itself, but as it still streams the uncompressed PCM stream afaik, it's pretty useless in practice.
(By "slower" I mean that there's a significant delay.)
It's still there. I have an Airport Extreme that very happily updated itself to support Airplay 2 a few months again
You can get Airport Expresses on Goodwill for $5 to $10, but you need an old machine to set it up.
The current version of Airport Utility will see them in an extended network, and plot them on the network graph, but can't be used for configuration.
But why wouldn't it work with modern routers? As far as I know, even the newest WiFi routers still support 802.11g clients.
Does anyone know if there are tutorials on making an Airplay client that instead sends audio & video to a receiver of some type (e.g. Apple TV)?
Is it quality?
- Airplay doesn't offer multi-room audio; AirPlay 2 does
- AirPlay lets you stream from any Apple device to your speakers or TV
- AirPlay 2 lets you play from speakers over Wi-Fi, and it'll stay in sync
- AirPlay 2 lets play different songs in different rooms with multiple HomePods
If memory serves, the original AirPlay had much simpler goals. Stream music from a single computer to a speaker over a local network. So it has concessions like a constant 2 second lag, which happens if you press pause/play. I vaguely remember other weird restrictions when playing with it in the past (like one device at a time had to control a speaker).
AirPlay2 is a lot more complex adding the features mentioned above and better handling the use-cases original AirPlay grew into.
https://www.pocket-lint.com/speakers/news/apple/144646-apple...
This makes play/pause etc instant (rather than waiting for the 3 second buffer to run out) and makes it much easier to do multi-speaker audio as they're all listening to the same media stream.
If a company could get the kit price under $40-50, I would definitely use them for more one-off projects. Aside, I really wish that Docker for (Windows|Mac) ran as a service without requiring login so I could run background linux software with a little less friction. The linux on windows stuff is coming along, but similarly lacking initd/systemd startup. And while I know that a desktop os isn't a server, I've got a plenty powerful desktop that I have always on, and would just assume not have another computer running.
I've been adding more stuff to the Pi over time, so it's now a Plex server, Home Assistant hub, Torrent box, Pi-hole and more.
I'm not sure this how-to article adds that much but I guess it's nice and simple looking.
https://www.reddit.com/r/homebridge/comments/8v3qb0/shairpor...
If people have other suggestions for multi room audio I’d love to see them.
1) I think my transmitter was a little noisy so that wasn’t desirable.
2) I didn’t have a nice FM receiver to test with, but didn’t want to purchase one because I thought my transmitter was noisy. So a bit of a catch 22.
But FM would be great.
Nonetheless, it's showing its age somewhat, and is harder to get streaming services working on it (e.g. YouTube, play music) in part due to its open nature (also, it's written in Perl...)
I made a dozen Airport adapters with the TP-Link WR710N which was $25 at the time and connects to Wifi or ethernet. Add a USB soundcard ($10?) for powered speakers or a Topping USB amp ($75?) for unpowered speakers. Install OpenWRT, connect it to your network in client or bridge mode, install the built-in shairport-sync package, and go.
Not sure what has replaced the WR710N but I'm sure you can still do this just as cheaply.
These £9 Pi's rarely go for less than £12-14 and if you can get more than one, they won't be any cheaper.
That TPLink wifi router comes in a case with a (probably shitty but working) power supply and cable, and inbuilt flash memory.
A Pi Zero costs ten quid, but you need to add a case, a power supply, and a micro SD Card. But worst for me, is that they still limit you to buying one at a time, so if your decide "Hell yeah! 5 room wi-fi streamed audio sounds _Awesome!_" You're not only up for fifty quid for the Pi Zeros, but you're gonna spend at something like twice that much again for 5 half-decent power supplies, USB cables for the power supplies, SD cards, and cases, and then you're up for 5 lots of shipping charges because they aren't allowed to sell you 5 Pi Zeros in one order... All of a sudden that "fifty quid project!" has become a £150+ one in five seperate deliveries...
(And unless you don't care too much about the audio quality, both the Pi Zero and the TPLink router will need a better external DAC anyway...)
If you just want one, and you're the sort of person who has usb power supplies, cables, sd cards kicking around doing nothing, and you're not too fussed about having a nice case, sure, you can just order one ten quid Pi Zero plus 3 quid for shipping.
However, I already have a cheap bluetooth dongle that I plugged my stereo to via P2. Is there some advantage to this setup (beyond range)?
What I'm really considering is a web interface, with search, playlist etc and a huge SDcard with all my music connected to a RPi. Currently all my music is on my Mac and Apple Music Home Share is a bit flaky/slow at times.
1- Buy hardware (Raspberry + DAC + Amplifier)
2- Download and install Volumio (volumio.org) on SD card
3- Profit
As for DACs, I have a €24 Hifiberry DAC+ and an inexpensive raspberry compatible DAC out of Aliexpress (around €12) on my two different setups (kitchen and living room). Both work well and deliver good enough signal (I am not by anyway an "audiophile") I prefer the no-brand one from AE though as it has an IR receiver I am using to control media playing.
As for amplifiers, any stereo amplifier would work, so I choose a Lepai lp-2020a (€30 on amazon) in the kitchen. I have an old Marantz branded amplifier for the living room.
For the use-case they describe however (wiring up an existing home stereo) it would probably be a lot easier and better supported to just buy an Airport Express.
You can still buy them online for ~100, and they support Airplay2 as well, which is much nicer for multi-room audio.
https://www.amazon.com/GOgroove-BlueSENSE-Bluetooth-Transmit...