EXCLUSIVE TRAINING: Learn Robotics At Home & Unlock Highly Desirable $100,000 Tech Skills to Advance Your Career

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Add AirPlay to Existing Speakers with Raspberry Pi

Disclosure: Some of the links below are affiliate links. This means that, at zero cost to you, I will earn an affiliate commission if you click through the link and finalize a purchase. Learn Robotics is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a way for websites to earn advertising revenues by advertising and linking to Amazon.com.

Learn Robotics At Home & Gain Highly Desirable $100,000 Tech Skills to Advance Your Career… for ‘Absolute Beginners’ looking to learn robotics at home …without needing access to a robotics lab!

Who doesn’t love AirPlay? I know I do. I’m constantly listening to music—whether it’s Pandora or Soundcloud or Sirius XM (free through May 30)—so being able to have high-quality audio at any time is an absolute must for me.

The only problem is, buying Wi-Fi (or Hi-Fi) speakers can set you back hundreds of dollars, which might be more than what you’re willing to spend right now.

Additionally, you might have a set of speakers or a surround system that you love. The only issue is that everything is tethered.

Why throw out a completely good audio setup if all you need is wireless connectivity?

And that’s where this guide comes into play.

In this article, I’m going to show you a couple of easy ways to set up AirPlay on a set of speakers for less than $50.

Regardless if you’re super technical (or not), I’m going to share two methods for adding AirPlay to an old set of speakers so that you can enjoy the benefits of wireless streaming from any Apple AirPlay-enabled device (Mac, iPhone, iPad, etc.).

Let’s get started.

Option 1: AirPlay on Any Speakers without the Technical Setup

If you’re not super technical, or you don’t want to deal with the technical setup, then you might want to look at this option. Otherwise, you can skip this section and learn how to make a DIY AirPlay receiver using the Raspberry Pi.

Purchase an AirPlay-Enabled Reciever & Wire it Up

First, you’ll need to pick up an AirPlay-enabled receiver. Here are a few receivers that you can purchase that will add AirPlay out of the box.

RCA RAS1863P Wireless Speaker for Airplay
Wireless Speaker supports Apple Airplay; USB dock for iPhone/iPod playback and control; includes digital FM radio
Pyle Wireless Audio Receiver - Connect to Any...
Give Your Speaker & Home Theater Simple Wireless Music Streaming Ability; Send Music to the Receiver from Your Smartphone - Built-in Wi-Fi Receives the Audio Signal

Just make sure that your sound system has an RCA or 3.5mm Aux-in line before you buy one of these receivers.

Then, once your receiver arrives, all you have to do is connect the audio output (Optical or Auxiliary) to the input on your sound system.

Next, connect the receiver to your WiFi. Finally, play some music, and select the AirPlay device from your iPhone, iPad, or Mac.

Voila! Your sound system is now upgraded to 21st Century technologies!

And, it was a super-easy way to get wireless audio without any technical know-how.

Additionally, if you have an old AppleTV lying around, you can use it for AirPlay as long as your existing surround system has an optical audio jack. I know this option isn’t $50, but a lot of people have AppleTV’s and don’t realize that it can be used as a bridge for outdated stereos. If you’re planning on buying an AppleTV anyway, then this is another viable option.

Option 2: DIY AirPlay Speakers with a Raspberry Pi (More Technical)

The next option is to put your DIY tech skills to the test and add AirPlay functionality to an existing set of speakers using a Raspberry Pi.

Raspberry Pi Computer for robotics

The Raspberry Pi is a low-cost option for many DIY home automation systems. You can also use it to set up a wireless sound system using your home network and AirPlay.

That’s what we’re going to tackle in this section.

Things You’ll Need for DIY AirPlay Speakers

I completed this project using the Altec Lansing RM3010 Stage-Gig Amplified Speaker and a Raspberry Pi 3 B+. The speaker, itself sounds awesome (great bass and balanced mids), but it requires input from an RCA connection or 3.5mm Aux device.

They don’t make the Stage Gig anymore, so feel free to use any set of good-quality speakers you have lying around your house.

You’ll also need a Raspberry Pi 3 B+, a power adapter, and an SD card.

Lastly, you’ll need a 3.5mm Aux cable to connect from the Pi to your sound system. Most likely you’ll want an RCA to 3.5mm Aux or a 3.5mm Aux male to 3.5mm Aux male connector cable.

FEIYIU 5V 2.5A 6.6ft Micro Power Supply Adapter...
ADAPTER POWER SPECS: Input AC 100V-240V 50/60Hz / Output DC 5V 2.5A.
Amazon Basics 3.5mm to 2-Male RCA Adapter Audio...
IN THE BOX: (1) 8 foot 3.5mm to 2-Male RCA adapter cables

How to create AirPlay Speakers with Raspberry Pi

I’m not going to spend time showing you how to set up a Raspberry Pi, but I wrote a full article on that process, here.

Once the Pi is up and running, you can follow the steps to add the Shairport Sync library by mikebrady.

“Shairport Sync is an AirPlay audio player – it plays audio streamed from iTunes, iOS, Apple TV and macOS devices and AirPlay sources such as Quicktime Player and ForkedDaapd, among others.”

While this library is great for audio, it does not support AirPlay video or photo streaming. If you’re looking for screen mirroring as well, I recommend having a look at the RPiPlay repo on Github.

Here are the abbreviated steps I used from Appcodelabs to get AirPlay set up on the Pi.

Step 1. Update and Install Dependencies

sudo apt-get update
sudo apt-get install autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman

Step 2. Clone the Github Repository

git clone https://github.com/mikebrady/shairport-sync.git

Step 3. Open the Shairport Sync Directory, Configure Build Options, and Build and Install the Application

cd shairport-sync
autoreconf -i -f
./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
sudo make install

Step 4. Configure the Raspberry Pi Audio Options in Raspi-Config

This step ensures that audio streams from the Raspberry Pi’s auxiliary output rather than through the HDMI jack.

sudo raspi-config

Go to “7. Advanced Options” > “A4. Audio” > Option 1 “Force 3.5mm (‘headphone’) jack”

Step 5. Set the volume output and start the service automatically

amixer sset PCM,0 100%

Once you have this setup, you can add the Shairport Sync to automatically launch when the Raspberry Pi boots up. That way you don’t have to start the application manually.

sudo systemctl enable shairport-sync

Step 6. Test it out with your new speakers!

Connect your speakers to the audio jack on the Raspberry Pi. Then, grab your iPhone (or iDevice) and pick out a song. Select the Raspberrypi AirPlay device, and slowly turn up the volume.

If everything is working correctly, then you should hear your music through your old speakers!

Hi-Fi and Wi-Fi Speakers You Might Like

I wanted to include this section if you’d rather buy a new AirPlay-enabled speaker or sound system. For around $200, you can get a modern system that doesn’t require setup or add-on devices.

I recommend Sonos, Denon, and Polk Audio speakers.

Sonos Move - Battery-powered Smart Speaker, Wi-Fi...
The durable, battery-powered smart speaker for outdoor and indoor listening
Sonos One (Gen 2) - Voice Controlled Smart Speaker...
Sonos One - The powerful smart speaker with voice control built-in
$248.84 −$19.84 $229.00

Are you going to add AirPlay to an existing set of speakers or buy new ones?

Let me know in the comments whether you purchased a commercial AirPlay device or added AirPlay to a Raspberry Pi.


If this article helped you in any way, please consider sending us a Coffee. This helps us fuel the next batch of content in the robotics and automation fields.

You can also support us by sharing this post on your favorite social media platform!

Botly Learn Robotics

Get Exclusive Learn Robotics Projects Directly to Your Inbox!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Did this content help you? 🤖
...say thanks and send us a coffee!


Learn Robotics At Home & Gain Highly Desirable $100,000 Tech Skills to Advance Your Career

For ‘Absolute Beginners’ looking to learn robotics at home …without needing access to a robotics lab


Learn Robotics helps self-starters, hobbyists, and tech professionals get started in the robotics industry. 

We leverage a simple formula to make it easy to gain highly marketable and high-value 6-figure robotics & automation skills. 

Learn Robotics was founded by Robotics Engineer, Liz Miller, and leverages the Robotics Success Equation, our unique methodology that helps people learn to build robots while enhancing their careers for the future.

liz's featured robotics PROJECT ON YOUTUBE

Learn Robotics Botly Favicon


Get Liz's Exclusive Robotics Content Directly to Your Inbox

Liz Miller Learn Robotics