[youtube=”https://youtu.be/77je1xCy8Tc”]
The Raspberry Pi is a full Linux computer that’s about the size of a credit card and sells for $25–$35. It has a 700MHz ARM CPU and 512MB of RAM. Because of its capabilities and its low price, it has become wildly popular with the hobbyist market. Some people have done ingenious things with theirs.
If you’re like me, you’ve toyed with the idea of getting an AirPort Express but the $100 price seemed a bit steep, since all you really wanted to do with it is play audio using AirPlay. Sound familiar?
Well, guess what – you can turn a Raspberry Pi into an AirPlay speaker for around $45. That’s what you’re going to do in this tutorial. By the end of it you’ll have your very own Raspberry Pi AirPlay receiver!
After that, you’ll look further into the usefulness of the Raspberry Pi to iOS developers. Most complex apps need some sort of backend web service and a Raspberry Pi is a perfect server for development or perhaps even a small app. You’ll install the Apache web server, MySQL database and PHP, then use them to create a web service that you can access from an iOS chat app.
You’re going to download and run Shairport, a project that emulates the proprietary Apple AirPort protocol with software so that your Raspberry Pi will appear as an AirPort receiver on your network. The AirPlay protocol isn’t something that Apple publishes, but James Laird and other clever coders have reverse engineered it and created an executable that will appear as an AirPlay receiver. You can check out the open source project here.
This project originally appeared on at raywenderlich.com. Reprinted and updated with permission.
On step 14, you can change the default audio output in raspi-config under advanced options, instead of using the terminal command.
Wonder if you could do this to turn a regular speaker to pick up on a Sonos device
Yes.
Where do you recommend starting? I don’t have a Pi yet but this would be my first programming project
Google.there are a number of Sonos integration projects.
Getting Sonos integration isn’t a simple task, there are a number of steps. I am not a Sonos user, I have gone open-source to achieve a similar result.
If your music library exists outside of Sonos, you might find it easier to just access the library and use a product like Moode (http://moodeaudio.org)
If you have an existing powered speaker, you can use a Pi, either on its own or with a DAC, but if you need amplification, I can recommend the HiFiBerry Amp+. It’s a very competent 50W Class-D amp tha piggy-backs the Pi and offers you a fully-digital path, right to the speaker terminals.
HiFiBerry DACs and Amps are top-class, yet affordable. https://www.hifiberry.com
Last few days to get smarts deal with makezine
……………….. Find Get More </b
Available Real place jobs makezine Next Tip Here
< ??????.+ zeldadungeon+ *********<-Part-time working I Saw at the draft which said $19958@mk11 < Now Go Read More
<???????????????????????????????
20
< ??????.+ zeldadungeon+ *********<-Part-time working I Saw at the draft which said $19958@mk11 < Now Go Read More
<???????????????????????????????
25
1212121@Available Real place jobs makezine…. Next Tip Here
******* i like me makezine < Find Get More
*******Big time hit th e makezine ……..Find Here
Yes Offer Of The Day by zine < Start Work Online
121@Available Real place kezine…. Next Tip
Shairport (or maybe even airplay itself) is way too unreliable and shairport is no longer under development, there are a few branches off it such as shairport sync but they still suffer from the same problem. I have had both the original shairport and shairport sync working on my Pi and both stop working every few days or so and i have to reboot the Pi to get it working again.
You want to look at Volumio or Moode -my Pi stays up for months at a time and streaming AirPlay has been flawless so far.
I dont think either of those are compatible with Spotify which is the only way i listen to music, and chances are if they did they would be using the same library (shairport) for airplay support, I am very surprised you get months before a reboot on you Pi when using shairport.
Yep. Volumio sure does. I think RuneAudio does too. But I live in a country where Spotify isn’t available, so it wasn’t a priority with me.
https://volumio.org/volumio-1-5-best-volumio-audiophile-player-ever/
As to reboots, the last time I rebooted was to upgrade to the new version. Moode does use shairport, but just because a product is a few years old is no indication that its faulty – if it’s developed right, there’s no reason to update it if there are no bugs. I have git repositories that haven’t been updated for more than 3 years – but it’s still active in downloads and forks.
I suspect the rest of your implimentation – mine’s just fine – no issues, no hangs or lockups – but then, all my Pi are Model 2Bs. Trying to run an MPD iteration on a ‘classic’ Model 1 is an exercise in frustration.
Shairport and Shairport Sync have diverged quite a bit, so it’s unlikely they share the same fault. In my experience, the usual cause of this kind of a problem is the WiFi network. Some WiFi drivers drop the network after a few days and never find their way back – it’s a know problem.
Volumio and Moode both use Shairport Sync, AFAIK. So, with respect, I think you should be looking elsewhere for the source of the unreliability…
Hunter . even though Valerie `s article is super… yesterday I got a great McLaren F1 after I been earnin $4774 this-past/5 weeks and-also, ten-grand lass month . without a doubt its the best-job Ive ever done . I began this seven months/ago and right away was earning over $85… per-hour . blog here
Check it out,,,…,
>>>>> www●MakeYourownboss●C0m-Clickthis
it’s easier and way better to use Volumio (https://volumio.org/) since it’s airplay complatible and have a lot of more interesting functions, even compatible with android too.
My first choice makezine
…………. Find Get More </b
My first choice makezine
…………. Find Get More </b
That’s Real Article by zm ez ne View Info ……………
sean towndse click and Continue Reading
I’m surprised at make, being so far behind the technology curve on this.
There are multiple specialised disturbs for this, such as Volumio, MusicBox, and my personal favourite, Moode, which extend and enhance the audio experience with web front-ends, centralised music databases, PC, phone and tablet interfaces, multi-room implementations, then there’s the audiophile end of the market with i2s and USB DACs, Pi-mounted Class-D amplifiers, etc.
Really this ‘make’ is a couple of years behind the current tech. I don’t have a TV or stereo or boom box in (and outside) the house that isn’t equipped with a Pi, a DAC or amp and a piece of MPD-compliant software that fully integrates the media centre database to every room that needs it.
And I question the $45 price tag -with a bare Pi at $35, then a 2A USB wall-wart, a case, an SD card and a wifi adapter, you ain’t getting out the door for much under $70. If it was about being cheaper than an Airport device, you have missed the point -the Pi should be better, stronger, faster, and recyclable.
My wife uses her Pi in the workroom to listen to Internet radio while she sews, I listen to podcasts while I cook and my daughter watches documentaries on her 23″ monitor in the bedroom, as well as streams her iPhone and.
There’s so much more you can do than emulate an Airport.
Handy tip – if you find the volume too quiet you can use _amixer_ to adjust the volume from the command line (http://unix.stackexchange.com/questions/21089/how-to-use-command-line-to-change-volume)
does the pi need to be connected to the internet while setting this up?
I originally believed that this speaker would run through Bluetooth, however it does not. All that is required is that the device which will airplay to the raspberry pi and the raspberry pi itself need to be on the same WiFi network.
If you are using your phone to airplay, what i am doing is turning on my Hotspot then setting my Pi to defaultly connect to my Hotspot. Now I can “artificially” use my raspberry pi as a bluetooth speaker.
Best tutorial, still works after all these years, assuming this was written many years ago. Wasted my time on OSMC. Simple is always the best. My original Pi 1 was gathering dust and now it is a airplay receiver.
I tried whatever was said in the above video, my iphone did not show raspberry in my airplay devices list. I did not do SSH because i have a separate screen that my raspberry pi b+ is connected to. any ideas why?
We'll assume you're ok with this, but you can opt-out if you wish.
Our websites use cookies to improve your experience while you navigate through the Make: ecosystem. Out of these cookies, some are categorized as essential for the working of basic functionalities of our websites.
We also use third-party cookies that help us analyze and understand how you use our websites. These cookies will be stored in your browser only with your consent. You have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Your choice here will be recorded for all the Make: Community Websites.