Raspberry Pi Multi-Room Music Player

298K30425

Intro: Raspberry Pi Multi-Room Music Player

For a long time I have been trying to figure out what I need for a multi-room music set up. Most of the products to buy are a significant cost per room for me considering I all ready have the speakers/amplifiers in place. Spurred on by my children learning about the Raspberry Pi at their fantastic Junior School, St Begh's with their teacher Mr Sharkey, I decided to show them that we can build 'stuff' at home that can be just as good (hopefully) as products you can buy in shops.

I looked at existing audio products and costed them up for 4 rooms.

The Pure Jongo A2, now available for £50 each, totals £200. Whilst it can play high resolution audio, if you want it to stream a music service on its own it uses their own service Pure Connect.

I am already using Spotify on PC, Mobiles and a Smart TV Box, so whatever system I end up with I would like the option to stream Spotify.

The Harman Kardon OMNI Adapt was listed for £100 on their website but looks to have disappeared from it at the point I am writing this and would total £400 for the 4 rooms.

The range that started it all, Sonos, offers the Connect as a means of streaming to existing systems. Priced at £280 this would come to £1,120 in total, an investment. However, it is widely regarded as the best/most useable multi-room system. It can also stream Spotify amongst just about every other service available.

Denon produce the HEOS LINK which looks to me to offer the most adaptability in terms of connections and features and should I come into some money is probably the one I would buy (after I listened to them all!). It is £300 per room so £1,200 for the house and out of my range at the moment.

One step up from this (reportedly) is the Bluesound Node which receives rave reviews and is £400 per room totalling £1,600 for a 4 room set up.

Beyond this you have the likes of Naim Audio and Linn with their in house methods of achieving multi-room music in their high end systems. Looking forward to placing my order after I win the lottery!

So back to the project - put together a 4 room music system to feed my existing equipment, play my music collection from our media server, stream from Spotify and be easy to use and control ........ and sound as good as it can for the target price of £100.

Digital Music Quality

If you're just discovering digital music on your computer I would recommend The Well-Tempered Computer as a place to start, the people at Xiph.org as a place to finish and the forums of What Hi-Fi as place to hang around in between. If you do feel you need a voice of experience on all things audio then always read what Andrew Everard has to say (alternatively if you need the ultimate gods of audio testing and have a degree in electronics to understand them, then both Ken Rockwell and NwAvGuy tie closely at the top).

I have done much listening to music on my laptop including a lengthy trial of the new non compressed (16-bit 44.1kHz CD Quality) service Tidal, ripped CD's using various formats and bitrates including lossless. The lower bitrates I can tell the difference, especially if not variable. Once at 320 kbps variable in both mp3 and ogg it gets tricky for me. I think I can tell a very very small difference in some tracks in some places using my headphones but not enough for me to warrant a change up from streaming from Spotify Premium at the moment. Depending on your equipment and/or your ears you may be able to, I have absolutely no problem with that at all. So for this project, for me, as long as the system can distribute up to CD quality audio I'll be happy.

STEP 1: The Plan for the Plan!

So first up I tried to explain to the kids what we were trying to come up with, for the most part I think they got it. Our youngest even wanted to draw out a plan. So with a bit of help we end up with the above.

So success for me would be music in the 4 rooms in good quality and in sync and for the kids it would be music that makes you grow a Purple Mohican and say 'Yay' a lot!

I read a lot about the Raspberry Pi and power supplies, the short version is I decided to order a B+ and a supply that everyone says works and supplies enough current for USB devices to be stable. Secondly on the issue of synchronisation I read a lot about clocks and servers and streams and decided to bypass the lot by using a USB DAC that also transmits to its own receiver's. Although this felt a bit like cheating it made the project hardware very simple indeed. Finally I looked through the all the music player software available on the Pi and settled on the one that seemed to have the best USB DAC compatibility - Pi MusicBox.

I came across the Creative Sound Blaster Wireless Transmitter (sometimes called Creative Sound Blaster for iTunes Wireless Music Streamer) a while back whilst it was still available from them direct but didn't buy one until I started to look at this project. By then it was discontinued direct but I found some on Amazon, at the time they were slightly cheaper than they are now, so be aware this may cost slightly more than I paid below. Because I found that this was exactly what I was after I stopped looking for alternatives, I think Audioengine do one called the W3 and if you wanted to stream in high resolution you could look to use the D2 but the cost increase is significant. Audio Pro have the WFD200 which I think does the same thing. FiiO, who I have a lot of faith in after owning and loving their D3 DAC and E07K/E09K Desktop DAC and Headphone Amplifier combination, do their Wireless W1 system, though I can't find it for sale in Europe. The FiiO website is well worth a look for their literal translations from Chinese marketing phrases straight in to English - 'Brings Limitless Splendidness' is how they describe most things. Properly good and good value products though. Maplin do one and I'd guess Lindy will do one, they do most things.

So the parts list for this project is:-

Raspberry Pi B+ Desktop (700MHz Processor, 512MB RAM, 4x USB Port) Amazon £25.60

Raspberry Pi Model B+ Case (OneNineDesign) - WHITE COLOR Amazon £6.25

It has got to look nice as it is on all the time and needs to have a good WAF but your needs may be different, I've seen Supercomputers built of Lego!

The Pi Hut Raspberry Pi UK Micro USB Power Supply Amazon £4.91

Creative Sound Blaster for iTunes Wireless Music Streamer with Wireless Receiver Amazon £29.99

Creative Sound Blaster Wireless Receiver Amazon (x3) £29.97

plus cables to link to your equipment if you don't like the ones that come with the receiver's, and any micro SD cards needed, I had these already.

Total Cost £96.72, 'Yay'!

This assumes that you already have a wired Ethernet point available to the Pi where it is going to be used at to provide network and internet access. I haven't gone into the Wi-Fi thing with the Pi but I am sure it is possible.

Order, Pay and Receive.

STEP 2: Assemble the System (Hardware)

This bit I thought would be hard was relatively straight forward.

The Raspberry Pi B+ arrived and was unpacked and fitted in its case within two minutes, no problems. I had decided that I wanted to have the option of moving the USB transmitter around on the surface it was going to live on so I mounted it on a vertical USB extension I had lying around. I have tested it directly in to the Pi and it works just the same. The power supply was plugged in and hidden away, but I stopped short at this point of powering it up. Last thing was to attach the network cable from a router I have in the room it was being used in. Reading on most of the forums the Raspberry Pi works with certain WiFi adapters so if you haven't got a wired Ethernet point handy you can use one of those.

Next up all the receiver's were unpacked and installed in their various locations, they all came with power supplies and cables. The dc power supplies were quite interesting, the UK 3 Pin heads can be mounted either up or down depending on whether you're plugging it in to the left or right of a double socket. I used a mixture of audio RCA cables and 3.5mm stereo jack leads to connect the receiver's to my kit depending on the sockets available. The Creative receiver's come with both types of output connector. I had one into a pair of Creative T20 powered speakers I have in the kitchen. For a cheap set of speakers that allow you to have a true separate stereo sound source these are great. The next one I plugged in to the Yamaha Home Cinema Amplifier in the living room. One was added to my FiiO Headphone Amplifier in the study which also plays through a pair of Focal XS Book powered speakers. Finally one was added to a small Philips docking speaker in the bedroom. All connected and ready to go. Once powered up the green 'connect' switch lights up on the back and the white indicator on each of the units flashes to indicate waiting to receive a signal. Most of the instructions for these assume you're using them with a PC but they seemed to know what they were doing anyway. The software and remote controls supplied were only applicable to PC use so not needed here.

Note: If you use these with your PC just be careful what you actually need to install off the software disk, if you let it get on and do its thing it does try to take over your entire computer (if not the World!) with Creative 'stuff'! I ended up backing out of all of it and just installing the driver only.

So fairly simple so far, Pi waiting for it's operating system with the transmitter plugged in and all the receiver's connected, powered up and raring to go and nobody's hair had turned purple!

STEP 3: Get the OS Up and Running (Software)

So a bit of internetting and 3 music players seemed to stand out for what I needed the Pi to do, what I hadn't realised was that they came with extra features and full, almost fool proof, instructions. The players I looked at were; RuneAudio, Volumio and Pi MusicBox. When we drew up the plan we thought we were going to go with RuneAudio, however we ended up settling with Pi MusicBox. They all do roughly the same thing, but in different ways and look quite different when you use them so I would suggest once you've mastered how to get you Pi up and running with them, find which one works and looks best for you.

The extra features I didn't know I wanted were Internet Radio and Airplay. We haven't had a radio playing in our house for a long while, but even as I'm typing this the Pi is playing Absolute 80's (yep, living in the past) around the house. Airplay (or its implementation through Shairport) is still a bit hit and miss at the moment and I'm reading lots of forums in the hope of solving a little bit of dropout we are getting.

So the principle is simple and instruction detailed on each of the websites so I won't repeat them here, but in explaining them to the kids I got to the following summary.

The Pi itself is just a bit of hardware, a computer on its own won't do anything. So it needs an Operating System to tell it how to work and a programme (or application in todays language!) to tell it what to do. In the case of these audio players you get all that rolled in to one and downloaded on to a MicroSD card. The card is then installed in the Raspberry Pi and when it's powered on loads up and starts working. You don't need to connect the Pi to a monitor at all. All three software distributions allow you to use a standard internet browser on anything you've got connected on your network and point it at the Pi to control the software and alter the settings. This is really cool.

So we downloaded the file, unzipped it, put it on the MicroSD card (a full size SD adapter was invaluable here to insert in the laptop) put the card in the Raspberry Pi and plugged in the power.

..............the red (on the B+ Pi) power LED came on and the green activity LED burst into action. After a while we logged on to http://musicbox.local (it'll be different for each player) as directed and up comes the interface. I can't believe the time and effort people put into making stuff this good, they all look awesome. So far so good. Then it was just a case of sorting the settings. I selected the right USB audio device to be used, and put in my Spotify details and the share address of my media server and we were up and running. Wow that was easy.

The LED's on the USB transmitter had come on when the Pi powered up, blue LED for power and the green one to say it had connected to it's receiver's. Each of the receiver's now had a solid white light and when checked were playing music. Job done. Quality, more than acceptable. Cost, bang on. Usability, far more than I ever expected.

STEP 4: Turn on - Tune in - Drop Out

What have I learned:-

  • It was simpler than I thought - thanks to the School and my children for suggesting the Raspberry Pi.
  • The Cat (Marvin) likes AC/DC and is absolutely not allowed to drink Cider until he is 18 (uk)......... Be More Cat!
  • For me, even cheap separate stereo speakers sound better (it has to be the separation and soundstage) than all in one 'speaker docks'.
  • After so long listening to music from a Laptop, having a silent source without the computer and cooling fans running is absolutely amazing. I was not prepared for the drop in background hum and fan noise, it is a step change if like me this is what you have become used to.
  • When listening to music playing in different rooms with one of those through a home cinema amplifier I was surprised by how much processing the amplifier does to the surround channels. This is exactly what you want when watching TV or a film but distracts immensely when moving from room to room expecting synchronised audio. Luckily there is a 'Pure Direct' button on my amplifier to turn off all processing and just output stereo. All back in sync now.
  • Putting together anything yourself sound/looks/is better/cooler/cheaper than buying the same thing.
  • Helping your children realise the world is not about buying things but making things together is very satisfying.

So to end, this has enabled us to listen to Frozen, I mean Pink Floyd/Arctic Monkeys (delete as age applicable) throughout the house on demand ................. do you want to build a snowman (!).

23 Comments

I'm using improved forked daapd with AirPlay. I like being able to select which speakers easily depending on which rooms I will be in. I have two Raspberry Pi's and an Ubuntu computer all running this so I can also have different music in each room. Am I right to assume AirPlay support is only for receiving and not for sending to AirPlay speakers? Always looking for better options. Forked daapd does not have a web interface, but works with the apple remote.

Cheers Tom, yep the airplay is only for receiving but is handy nonetheless. I think Wouter talks about looking at Pi's streaming to each other somewhere on the mopidy forum. That is something I would be interested in as I could then with a HiFiBerry Digi+ board feed optical straight in to my amp. For the media server, MPOD has a web interface which works well on a phone (MPAD for tablets), on the laptop I use Cantata to select the music to play.

These are 29.99 each unit and you need 3. Love the project but am I missing something, or is the math not substantially off by that quantity x3?

Creative Sound Blaster Wireless Receiver Amazon (x3) £29.97

If you have high requirements for audio quality, you can try Tidal music. This excellent Tunelf Tidal music converter can download songs, playlists and albums from Tidal to MP3, AAC, WAV, etc. with lossless sound quality, which you can transfer to any device for listening with no limit on the quantity.
Hi, I'm using new Balena Cloud Music is the best free option for Raspberry Pi, and all is easy to do

I think I'm a little late to board this train. Creative kit is £50 a piece on Amazon, and addon wireless receiver is not available at all. Anyone know of a decent replacement please?

Hi, love the setup - one question, can the different speakers, around the house play different songs using this methodology?

I apologise if these questions are too obvious as I am very new to networking and music systems.

So what you basically did was stick in the USB transmitter into the RPi and then install the OS. So when you would play anything from the browser, the RPi would automatically transmit the audio from the transmitter to all the receivers in the house ? No set up required for the transmitter ?

Also, what music can you play ? Can you only play through spotify and other supported apps and downloaded music or can you send any audio (audio from youtube music videos for example) to the RPi through the browser.

Also, I was interested in controlling the music by attaching a few buttons into a breadboard and connecting it into the RPi (2 buttons for volume, and few other buttons and each of these buttons play a specific folder of music e.g button 1 plays music from rock folder and button 2 plays music from the pop folder all these music folders will be found on the sd card or external storage(like a USB drive) if needed. With this setup, will it still be possible to control it from the web browser.

Do you think it is possible to set it up in such a way and how difficult will it be ? I'm a kid btw.

as you are using spotify for this setup is a media server required ? or would that only be required in order to play music from a HDD?

Great share! I'm just wondering if I can just use speakers with Wireless Audio Receiver, instead using the wireless audio receiver?

Hi... a little late to the party I know, but I just wanted to say thanks for a great (and highly entertaining) instructable! I now have a great multi-room music player that operates just as well as my buddies £1,000+ Sonos system (at the same time earning brownie points from my geeky mates). The sound quality is also surprisingly good and doesn't add any load to my (already very busy) wireless network/router.

Just a quick update for anyone interested:-

I was still able to pick up the 'Creative Sound Blaster for iTunes' from Amazon for £59.99 and three additional receivers for £5.99 each (the maximium number supported in total is 4 - and one comes bundled with the transmitter). This was 'brand new' but was clearly old stock (the manufacturing date stamped on the units was 2010).

I also found a really nice aluminium case (£13.00 from the The Pi Hut):-

http://thepihut.com/products/flirc-raspberry-pi-b-...

I have found that the receivers 'remember' their connection when powered down, and are
able to reconnect very quickly (almost instantly) when switched back on. I have therefore plugged in the Pi and office speakers and receiver into an Energenie Radio controlled power strip (so that I can easily turn these on and off remotely without scrabbling around under the desk):-

http://www.amazon.co.uk/Energenie-Trailing-Control...

I ultimately plan to use an Energenie Mi-Home hub or Belkin Wemo to control the power supply to the speakers and receivers in the other rooms independently from a controller handset and app' (an iPhone in my case) adding convenience, and saving power (I've read reports of the Sonos consuming between 5 and 10 watts of power when not in use. Multiply this by four rooms and that's a fair bit of electricity wasted throughout the course of a year).

Finally, I wanted to use the MusicBox player, and it worked fine for the USB stick and web radio, but I could not for the life of me get Spotify working (I just kept getting "waiting for MusicBox" messages (which according to the forums seems to be a common problem). In the end I went for Volumio (which is a fork of Rune) and was the simplest for me to use.

Anyway, thanks again for a great project... I have now phoned the hairdressers to make sure they have plenty of gel and purple hair dye in stock prior to my visit!

:-)






i was after something similar, and went for the 2 Apple TVs i already had for 2 rooms then 2 Pi B's with XBMC ( airplay receiver ) and works very well. All my music is on a 2 disk NAS and iTunes on all devices use the same library. I can send the same music around the house or using iTunes remote or other devices have different tunes in different rooms. works really well for us :)

MarkB14, question for you, if I may.

>>All my music is on a 2 disk NAS and iTunes on all devices use the same library

How do you configure iTunes to always connect to and use the library on the NAS? My Mac is forever switching back to a local (empty, or non-existent) iTunes library instead of sticking to the one on my NAS and its driving me bonkers.

Many thanks,

James

Hi jmesney

i'm not a mac user, far from it lol i can't stand them but like the simplicity of iTunes and airplay

the way i did it (on a pc ) was this
hold left shift and open itunes
choose create new library
select a nas folder for the library
add all the music, sort all the covers etc
close itunes
then on all the other pcs hold left shift, open itunes, select choose library and choose the nas one

it remembers the last library you use and keeps opening the same last one ( if you lose link to the nas it prompts you to choose another library)

i always make sure that other copies of itunes are closed before adding new music

hope this helps

YES! That helps - thanks. A bit of digging revealed the Mac equivalent as follows: Open iTunes and immediately hold down the Option key. (The option key is marked "alt"). This works.

Cheers.

I am really interested in creating a multiroom solution like this. However, all guides I read regarding a multiroom system just talk about music playing from NAS as source rather than a regular Notebook or PC. Therefore, my question: Is it possible to get the audio from a Wifi connected PC (e.g. Browser, Spotify,Windows Media Player etc.) to the Pis?

Great project, and thanks for sharing. I really liked the idea of this project, so ordered the parts from Amazon and gave it a go. I have all the components working, but the wireless link between the transmitter and receiver isn't being established. If i plug the transmitter into a pc it works, but when plugged into the Pi the connection doesn't establish. I'm thinking maybe the Pi doesn't have enough juice in the USB to power the wireless connection? If I plug headphones into the transmitter, I can hear output from musicbox, so the connection between transmitter / receiver is the issue..

Did you use a powered hub when connecting the transmitter?

Thanks in advance

Thanks for a nicely written tutorial! Clever combination of different technologies.

I have some questions for you:

Do the receiver and transmitter start working as soon as the power supply is turned on, or do they need a push on a power button or similar?

Can you control the volume of each invidual receiver with the remote?

More Comments