
Disclosure: As an Amazon Associate I earn from qualifying purchases.
The best speaker in the house is probably the one nobody uses: the bookshelf pair from college, the powered speaker in the closet, the old stereo in the garage. They sound better than the smart speaker on the counter, and they sit silent because playing music means finding a cable. A Pi fixes that. For about $49 in parts, any wired speaker becomes a wireless AirPlay speaker that every iPhone, iPad, and Mac in the house can play to with two taps — no new speaker, no subscription, no account.
Get the full kit → jumps to the parts list. If you are starting from zero, read the starter-kit guide first. Good companions: the Kodi smart TV (Project 06), which gives an old TV the same second life, and the music LED strip (Project 04), which makes the music visible.
What AirPlay Actually Is
AirPlay is Apple’s way of sending audio over Wi-Fi instead of a cable. Your phone finds the speaker on the same network, sends the music stream to it, and keeps playing while you scroll, text, or lock the screen. The phone is the remote; the speaker does the playing. It has been built into every iPhone, iPad, and Mac for years.
The catch is that AirPlay speakers cost real money, and the speakers you already own do not speak AirPlay. That is the whole job of this build: a tiny Pi sits between your Wi-Fi and the speaker’s input jack, pretends to be an AirPlay speaker, and hands the music to the speaker over a short cable. Your phone sees a speaker called “Living Room” or “Garage Stereo” and never knows a Pi is involved. The free software that does the pretending is called Shairport Sync, and it has been doing this one job well for a decade.
One honest limit: this is AirPlay, so it serves Apple devices. Android phones and Windows PCs will not see the speaker the same way — but the speaker still works over its cable for everyone else, and the Pi adds AirPlay on top. Nothing changes; the speaker just gains a wireless door.
What You’ll Need
- A Raspberry Pi Zero 2 W — ~$15 est. Small, cheap, and more than fast enough to receive audio and hand it to the speaker. Built-in Wi-Fi included.
- A microSD card, 32 GB — ~$8 est. Holds the operating system and the AirPlay software. Audio needs almost no storage.
- A USB-C power supply, 5V 3A — ~$8 est. The Pi’s steady power. A phone charger that sags under load causes dropouts.
- A USB audio adapter (USB sound card) — ~$10 est. The Pi Zero has no headphone jack, so this little adapter is the audio output. Its 3.5 mm jack plugs into the speaker.
- A Pi Zero case — ~$8 est. Keeps the bare board off the shelf and the ports lined up. Any basic case works.
Total: ~$49 in parts, est. (November 2026). You will also need the speaker itself and a 3.5 mm audio cable, both of which you almost certainly already own — that is the point. Already own a Pi and a card? Then this is a ~$26 project: the adapter, the power supply, and the case.
Step 1 — Set Up the Pi and Put It on Wi-Fi (15 Minutes)
Flash the standard Pi operating system onto the card, setting the Wi-Fi network and a username during setup so the Pi joins your network on its first boot. Give the Pi a name you will recognize later, like “airplay-living-room” — it shows up in your router’s device list, and a clear name saves a guessing game months from now. Plug in the USB audio adapter before the first boot so the system sees it from the start.
Placement matters. The Pi needs a Wi-Fi signal strong enough to stream without hiccups and a short cable run to the speaker: put it next to the speaker, away from the back of a metal stereo cabinet, which blocks Wi-Fi. If the speaker lives in the garage, check the signal out there first — a weak signal is the one thing that makes this build stutter.
Step 2 — Install Shairport Sync and Name the Speaker (15 Minutes)
Shairport Sync is free, open-source software that installs with one package command and announces itself on the network as an AirPlay speaker. The one setting that matters is the name: call it after the room, not after the hardware. “Kitchen Speaker” is a name everyone in the house understands; “shairport-sync” is a name nobody taps. Restart the service after naming it, and the new name appears on every Apple device on the network within seconds.
Set the audio output to the USB adapter, not the Pi’s built-in HDMI audio — the step people skip and then debug for an hour, while music plays “successfully” to a silent output. Check it once. Turn the speaker’s volume to about three-quarters and leave it there; the phone’s volume buttons control the room from then on.
Step 3 — Test It Like a Guest Would (10 Minutes)
Open any music app on your phone, tap the AirPlay icon, and pick the new speaker name. Play a song, walk to the far end of the house, and listen for dropouts. Then lock the phone, take a call, and open a video — the music should keep playing, because the Pi is doing the playing, not the phone. If the audio stutters, the cause is almost always Wi-Fi, not the Pi: move the Pi closer to the router’s side of the room, or check whether the speaker’s metal cabinet is in the way.
Test a second device before calling it done: a Mac, an iPad, a family member’s phone. Each should see the same speaker name and take over with one tap — that handoff is the whole payoff.
Step 4 — Make It Survive a Power Cut (5 Minutes)
Set Shairport Sync to start automatically when the Pi boots, so a power cut or an unplugged cable does not leave the speaker silent until someone remembers the Pi. Reboot the Pi once on purpose and confirm the speaker name reappears on your phone without touching anything. That one reboot test is the difference between a project and an appliance.
Label the Pi’s power cable. In six months someone will unplug “that little thing behind the speaker” to charge a phone, and the label is what gets it plugged back in.
What NOT to Buy
- A Pi 5 for this job. Receiving audio is a light task. A Pi Zero 2 W is already more than enough, and the money saved buys the next build.
- A fancy audiophile DAC for the first build. The $10 USB adapter sounds clean through the speakers this build is rescuing. Upgrade the DAC later only if you can hear a difference, not because a forum told you to.
- A Bluetooth speaker to “simplify” things. Bluetooth pairs to one phone at a time and drops when that phone walks away. AirPlay over Wi-Fi is the multi-device answer, and it uses the speaker you already own.
- A second Pi for a second room before the first room works. One speaker, proven for a week, then copy the build. The second one takes fifteen minutes because the first one taught you everything.
- A “smart speaker” replacement. The point of this build is that the good speaker you own beats a new plastic one. Do not buy a worse speaker to replace a better one.
The Total, Honestly
- Pi Zero 2 W: ~$15 est. · microSD card: ~$8 est. · Power supply: ~$8 est. · USB audio adapter: ~$10 est. · Case: ~$8 est.
- Total: ~$49 in parts, est. (November 2026). Already own a Pi and a card? Then this is a ~$26 project — the adapter, the power supply, and the case are the whole purchase. The speaker and the cable are already in your house.
Build It This Weekend
Pick the speaker, put the Pi next to it, install Shairport Sync, and name it after the room. Play one song from your phone with no cable involved, and the old speaker is back in daily use. Tomorrow’s build keeps the music going with no phone at all: an internet radio that plays the whole world from a little box on the kitchen counter.
Where the series goes next: the Kodi smart TV (Project 06) gives an old television the same second life, the music LED strip (Project 04) makes the music visible, and the full project library holds everything built so far.