Skip to content
Read everything about Raspberry Pi 5 and other single board Pi PCs, Pi microcontrollers and other news and updates about Pi accessories.
Raspberry Pi Article · 8 min read

A $15 Pi Zero 2 W is enough for AirPlay 2; skip the Zero W

A $15 Pi Zero 2 W running Shairport Sync built for AirPlay 2 makes a good Pi AirPlay speaker, and the single-core Zero W is the one to skip. The guide also covers which DAC to add and how to set it up natively or in Docker.

A green single-board computer seen from above, with a ribbon cable looped across its pin header, on a grey surface.

A Raspberry Pi becomes an AirPlay speaker with one program: Shairport Sync, built with its AirPlay 2 option and sending sound to a DAC through ALSA. I think a $15 Pi Zero 2 W is all the board that job needs. You can add a small DAC board on the version sold with headers or a USB DAC on its micro USB data port. The older single-core Zero W is the one to skip, even though it can be made to work. So yes, a Pi does AirPlay 2, with limits on what it plays and which computers can send to it.

Does a Pi really do AirPlay 2, or only AirPlay 1?

It does both, and you choose which when you build Shairport Sync. On any Pi that can carry it, the AirPlay 2 build is the one to pick, because AirPlay 2 can use latencies of around half a second, while classic AirPlay sources set 2.0 to 2.25 seconds.

Shairport Sync can be compiled as a classic AirPlay 1 receiver or as an AirPlay 2 player, and its maintainer says plainly that the AirPlay 2 side has limitations. The AirPlay 2 build also treats two kinds of stream differently. Realtime audio is usually played after a delay of around two seconds. Buffered audio starts after a very short delay and can arrive faster than it is played.

The AirPlay 2 build doesn't run on its own. It needs a companion program called NQPTP, installed separately, and NQPTP must have exclusive access to ports 319 and 320, so no other program on the Pi can be using them.

The AirPlay 2 build does not support Dolby Atmos or high-definition lossless. AirPlay 2 from macOS earlier than 10.15 (Catalina) is not supported, and neither is AirPlay 2 from iTunes on Windows. The build does play 24-bit lossless stereo at 48kHz, as well as buffered 5.1 and 7.1 surround. I think those are narrow limits for a speaker. On top of that, a single host can run several AirPlay 2 instances, each one an independent zone for its own room.

The Zero 2 W is the Pi to buy, and the Zero W the one to skip

Buy a Zero 2 W for $15. A Pi 3B+ or Pi 4 you already own will do the job too. The maintainer says the single-core Zero W runs AirPlay 2 pretty well almost all the time, but it is the board where users report dropouts.

The original Zero W has a 1GHz single-core CPU and 512MB of memory. The maintainer has said AirPlay 2 can overwhelm a Pi Zero, and that a Pi 2B is about four times more powerful. Users in the same GitHub discussion describe the rough edges on the Zero W, such as audio dropping out when the volume is scrubbed quickly. One of them reports that the Zero 2 W works without any of those problems.

Upstream Shairport Sync recommends a Raspberry Pi B or better for AirPlay 2. Volumio's fork asks for a Pi 2 or Pi Zero 2 or better. I would go by the stricter line, because it fits what the maintainer and users report about the Zero W.

The Zero 2 W has a 1GHz quad-core 64-bit Arm Cortex-A53, and Raspberry Pi sells it as a $15 computer. Its one weak spot for a speaker is the radio. Wi-Fi is 2.4GHz 802.11 b/g/n only, so the board has to sit where your 2.4GHz network reaches well. In February 2026, rising memory costs pushed up prices for the Pi 4 and Pi 5 boards with 2GB or more, but Raspberry Pi said it did not expect to change prices for the Zero, the Pi 3 or its other older products.

A Pi 3B+ fits the job comfortably. It has a 1.4GHz Cortex-A53, 1GB of memory and dual-band Wi-Fi. Its Ethernet tops out at 300 Mbps because it runs over USB 2.0. It also has a 3.5mm four-pole jack, so a powered speaker can plug straight in. The Pi 4 steps up to a 1.8GHz quad-core Cortex-A72, dual-band Wi-Fi and true gigabit Ethernet, and the 1GB Pi 4 stayed at $35 through the February rises. Sure, that is more than twice the price of a Zero 2 W, but if a Pi 4 already runs in the house, the receiver can just be one more job on it.

Learn more:

Which DAC should you add, and what does it cost?

The 3.5mm jack on a 3B+ or Pi 4 costs nothing extra. A Zero has no jack, so it needs either a USB DAC or a DAC board such as the HiFiBerry DAC+ Zero at £17.90.

The maintainer calls ALSA "by far the best sound system to use", because it gives Shairport Sync direct access to the DAC hardware. So the practical test for any DAC is whether it shows up as an ALSA device on the Pi.

If you already own a 3B+ or Pi 4, start with its 3.5mm output and a powered speaker, then decide whether the sound is good enough before spending more. The Zero boards leave out the jack entirely, so on a Zero 2 W the DAC is part of the budget from the start. The Zero 2 W has a mini HDMI port and two micro USB ports. One is for data and the other is only for power, so a USB DAC goes on the data port.

The tidy option for a Zero 2 W is a DAC board the same size as the Pi. The Zero 2 W comes with its HAT-compatible 40-pin header footprint unpopulated, and Raspberry Pi also sells a version with headers. HiFiBerry's DAC+ Zero plays up to 192kHz/24bit, fits every Pi with a 40-pin GPIO header and costs £17.90 on the maker's own shop. The Zero 2 W itself is $15. You still need a card, a power supply and a speaker or amplifier.

Cheaper DAC boards built on the PCM5102A chip are common too. They need software volume in place of a hardware mixer. For a speaker whose volume you set from the phone anyway, I don't see that as a reason to avoid them.

Stock Shairport Sync beats Volumio and a tiny read-only OS for this job

On a Zero 2 W, run stock Shairport Sync on Raspberry Pi OS Lite. Volumio 4 has dropped the Pi Zero, and the read-only airplay-os image is built only for the Pi 2 B and Pi 3 A+.

Volumio is a music player system for Raspberry Pi and PC, but Volumio 4 no longer supports the Raspberry Pi 1 or the Pi Zero. Volumio staff tied AirPlay 2 to Shairport Sync: in an old forum thread they said it would come to Volumio if and when Shairport Sync supported it.

The third route is a tiny read-only OS. airplay-os is a read-only Buildroot image that ships Shairport Sync 4.3.7 and NQPTP 1.2.4 as a single 32-bit ARMv7 image for the Raspberry Pi 2 B and Pi 3 A+. Nothing is written to the SD card at runtime, so power cuts are harmless. The DAC is chosen with one dtoverlay line, and for a PCM5102A board you set MIXER="" in airplay.conf to use software volume.

Its limits are real, though. It can't join a WPA3-only network, and it stores the Wi-Fi password in clear text. Its web interface has no authentication and is visible to the whole local network. If the board you have is a Pi 2 B or Pi 3 A+, I think it is worth a look despite those limits. For a Zero 2 W it isn't an option, because the image is built only for those two boards.

How do you set it up on Raspberry Pi OS Lite?

Flash Raspberry Pi OS Lite. Then either build NQPTP and Shairport Sync with the --with-airplay-2 option, or run the official Docker image with one command.

You need the Pi, a microSD card, a power supply, the DAC and a powered speaker or amplifier. Lite is the right edition for a Pi with no screen, which is the case I made in Most Pis should run 64-bit Raspberry Pi OS Desktop or Lite. On a Zero 2 W, either the 32-bit or the 64-bit build will do. Set the Wi-Fi details and SSH in Raspberry Pi Imager before you flash, then log in over the network.

For the native build, follow Shairport Sync's BUILD.md for Raspberry Pi OS. Install the packages it lists with apt. Then build and install NQPTP from its own source before you touch Shairport Sync, because the AirPlay 2 build depends on it. After that, go to the Shairport Sync source folder and run the configure command that BUILD.md gives:

./configure --sysconfdir=/etc --with-alsa --with-soxr --with-avahi --with-ssl=openssl --with-systemd-startup --with-airplay-2

The --with-airplay-2 flag is what makes this an AirPlay 2 build. Then make and install.

Because of --sysconfdir=/etc, the configuration file lives in /etc, and that is where you name the ALSA output device for your DAC. If you would rather not build anything by hand, the community RaspberryPi-AirPlay-Installer script builds Shairport Sync and NQPTP on Pi OS Lite for the Zero 2 W, 3, 4 and 5.

The quickest route is the maintainer's own Docker image. The latest tag gives AirPlay 2, and tags containing -classic give AirPlay 1 only. With Docker installed, this command starts the receiver. It runs on the Pi's own network so phones can find it, gets access to the sound devices and restarts after a reboot:

docker run -d --cap-add=SYS_NICE --restart unless-stopped --net host --device /dev/snd mikebrady/shairport-sync:latest

If the Pi already runs other containers, the receiver is one more, and Picking a Docker Container Monitor for a Raspberry Pi Home Server covers keeping track of them. The native build needs Raspberry Pi OS Lite, the packages BUILD.md lists and NQPTP installed from its own source, while the Docker route needs Docker installed first.

Written by Felipe Araya

I write about the Raspberry Pi and the small AI projects people try to squeeze onto cheap boards. I live in Valparaíso, a short walk from the Ascensor Artillería.

17 articles →