Show HN: Hacking a Raspberry Pi into a wireless airplay speaker

  • Did this hack myself a month or two ago - I go the XBMC route (openElec) on the Pi with Airfoil for Windows to stream Spotify. That combination is finicky - sometimes requires one or two connects. When spotify releases a libspotify compiled for the right ARM architecture (something about floating point?) I'm going to run http://www.mopidy.com/

    The disadvantage of the headphone port of the Raspberry Pi is that it used to put out absolutely awful sound, but that may have improved. Using shairport also has bugs - the audio output from the script sometimes has pops and after about 10 or 20 minutes will randomly disconnect.

  • Why would you do this rather than buy an Airport Express? The cost of the Raspberry Pi, wifi adapter and a basic USB soundcard add up to as much as the real thing, but you spend hours configuring software and end up with a flakey solution. It's great that you can do this, but why not save time and money by buying the real thing? You also get bit perfect optical output and a pretty decent wireless router.

  • A note for those attempting to use Ethernet to Airplay mirror:

    Your router must allow multicasting between WLAN and Ethernet clients, otherwise your Pi won't show up to iDevices connected via WiFi.

    If this is a problem for you (as it was for me) your only solution is attaching a WiFi adapter to your Pi. The consensus for best support, lowest power and tiny footprint is Edimax EW-7811UN (http://www.amazon.co.uk/gp/product/B003MTTJOY).

    I just grabbed an old Linksys WUSB54GS that I had laying around and it played nicely with the Raspberry Pi with little to not effort.

  • What a coincidence. I did the exact same thing yesterday, following the instructions here: http://trouch.com/2012/08/03/airpi-airplay-audio-with-raspbe.... You really need a USB soundcard for this to be usable though, unfortunately.

  • This looks like a neat hack. I might attempt something similar at some point.

    Somewhat relevant, since many people here are talking about using a USB sound card: I have heard good things [1] about using this hub/dock combo with a Raspberry Pi [2]. Might be overkill for this project but it would give you an all-in-one connection dock for more multi-purpose projects.

    [1] http://www.trilug.org/pipermail/trilug/Week-of-Mon-20120903/... [2] http://www.microbarn.com/details.aspx?rid=102750

  • Cool hack. There's real demand for a reasonably priced Airport Express alternative, but it's a shame that the RasPi's DAC isn't up to scratch for HiFi use.

    You suggest we follow you on Twitter, yet protect your tweets...

  • Looks cool! Anyone know any of this for Android? At least for Samsung Note. I want to try to wirelessly stream audio from my Note to my Logitech Z2300.

  • Is there a way to stream music from a Linux machine to multiple destinations?

    Currently I have a notebook with Mint connected to my stereo system for all my music needs. It works nice.

    I would love to have the music play in multiple rooms simultaneously. Is it possible? Money is not an issue. I could buy whatever equipment is needed. But I did not hear about any solution yet.

  • There is a problem with the instructions though; when you get to the:

    'Installing Perl Net-SDP'

    Section, and type in the third line of code, after git clone, you get this error message: http://pastebin.com/MSrqYYKq

    Saying to Contact the author, because there are files missing.

    I have contacted the author, and Jordan too.

    Does anyone know how to get around this?

  • I hadn't realized the Airplay keys had been cracked. Last time I looked for something like this they hadn't. I've already bought an extra airport express, but I kinda just want to build this for fun. I'm seeing lots of complaints about the PIs dac. How bad is it?

  • Does anyone know of a good standalone speaker that this hack could be paired with to make an airplay speaker for smallish spaces? E.g. not a home's main living area where you'd want to use a higher powered stereo system, but perhaps a bedroom or office.

  • Awesome, Going to try this with my Pi.

    I presume that it'll work with the HDMI out into my AV receiver well without the distortion from lack of on-board DAC?

  • Nice, a low cost a version of the airport express is exactly what the market needs. I wonder why no company has done it so far?

  • Just trying this now but when I try to run perl Build.PL. I get Build: command not found

    Any ideas?

  • High time i bought the Pi i guess...