12 ms·
Spotify Box
- briandoll 5y agoI was wondering what the advantage is to building something like this, compared to just using a bluetooth adapter that connects via RCA cables (like this box does). I suppose one advantage is that if you walk far away from your stereo, you can loose bluetooth connection and drop audio, where this device has it's own WiFi connection and pulls Spotify audio directly, and is just manually controlled via your phone.
- bjelkeman-again 5y agoThat seemingly small advantage is great for me. Bluetooth is too short range.
- vel0city 5y agoI use a Miccus RTX Home on my non-Bluetooth home receiver. I can routinely get a few hundred feet of range from it at my house. Granted I don't have a ton of 2.4GHz noise, but it's noticeably much better range than any other Bluetooth device I've used. https://miccus.com/products/miccus-home-rtx-2-0 https://miccus.com/products/miccus-home-rtx-2-0
- polpo 5y agoIt also means your phone's battery is not draining while you're playing music. I use spotifyd on a Raspberry Pi and it's pretty wonderful.
- wodenokoto 5y agoAlso, music doesn't stop if you visit a webpage with an autoplaying video or open an app that plays audio.
- jareklupinski 5y agoand an Ethernet jack for even more reliability :)
- hammock 5y agoIt's Chromecast Audio, but for Spotify.
- extr 5y agoStill can't believe they stopped manufacturing these. Such a perfect and cheap solution to the same problem as OP: streaming audio over WiFi to a "dumb" speaker.
- ct0 5y agoExactly what it looks like, pretty cool. My Denon receiver has this built in. AVR-3600H, I love it and can send music from my phone, and still use the remote for the reciever. Song and title is displayed on the tv, it I turn it on.
- apecat 5y agoThe tradeoff seems to be that * Bluetooth offers limited range and uses more battery, and is usually interrupted if someone calls, but supports any application that can play sound. * Spotify Connect is its own Spotify client and downloads the audio stream from Spotify which allows freedom to roam. But the implementation is indeed limited to Spotify and doesn't support niceties like volume normalization or nerdy details like crossfade (and perhaps not gapless playback)
- mustacheemperor 5y agoBluetooth is inherently lossy/compressed, whereas Spotify Connect directly streams 320kbps to the client device. I’m not sure how much that advantage is negated on a device with such a cheap DAC, but cheap DACs can be good. Bluetooth audio is always going to have some quality compromises, and it looks like this device is intended for a component stereo setup where quality matters. Worth noting streaming Spotify over Chromecast (like on a chromecast audio) is oddly enough limited to 256 kbps AAC. The TV chromecast devices support Spotify Connect, I guess because they boot the full app GUI.
- minimaul 5y agoI think to be honest a project like this is not just about practical advantages. It's fun, and it's an amazing learning exercise.
- paxys 5y agoBluetooth is terrible for music streaming. - Your phone has to be connected the entire time - Quality is flaky - It has to stay in range - You have to manually disconnect/reconnect it every time - You can't take calls while playing music - Only one person/phone can connect to the speaker at a time - It drains battery Having the speaker stream directly from the internet while having your phone (or multiple phones, or web browser, or voice etc.) acting as a remote is a game changer.
- dvsfish 5y agoI'm no fan of bluetooth for music, but wouldn't an internet connected speaker also drain battery? And are you really wanting to simultaneously take a call and listen to music? Will the person on the other end appreciate that? Seems like an inconsequential limitation to me. Fully agree with your other points. And they're enough on their own.
- kube-system 5y agoIt saves battery by streaming the music from Spotify directly over the internet, rather than through your phone.
- paxys 5y agoIt would not drain your phone battery. The speaker is almost always going to be plugged in anyways. And stepping into another room to take a call while others are listening to music isn't all that uncommon.
- vgel 5y ago> And are you really wanting to simultaneously take a call and listen to music? Will the person on the other end appreciate that? Seems like an inconsequential limitation to me. You could be hosting a party, for example, and want to leave the room to take a call without interrupting the music.
- ohgodplsno 5y agoA single use speaker is not a game changer, it's just Spotify selling you useless gadgets. But if you're interested, I've got a mouse to sell to you that can only work on Word, and a keyboard that can only type the words "game changer". In practice, this is just a terrible speaker that can only ever play Spotify. It's a waste of energy and resources that you will throw away within a year.
- smoldesu 5y agoScary anecdote: I was at the Verizon store, and the clerk attending to me was getting really hung up on some stupid allegory about L Ron Hubbard and phone salesmanship, so I started reading the news until he tired himself out. I swiped down into my status bar and saw my Spotify widget was playing something, so I paused it assuming that it was just me leaving it on at home. A few moments later, it was playing again, and someone on the other end repeatedly fought me for it. I ended up ditching our friendly salesman and resetting my password in the parking lot, but it's still one of those Orwellian moments that reminds me of the scale of the internet.
- ct0 5y agoChange your password.
- deeblering4 5y agoIf you are in the apple ecosystem an airport express provides a similar feature set (airplay to analog stero line out) and can output to multiple airports (in different rooms) simultaneously. Granted its not as headless. a iDevice (or airplay compatible source) needs to be running. I have analog stereos in a few rooms and the airport express provides a nice way for anyone in the house to cast music from whatever app they like. and with modern iOS you can even output to different zones for different apps. The airport expresses are roughly $50 a pop, less if you are patient.
- bjelkeman-again 5y agoShame they don’t sell Airport Express anymore.
- srgpqt 5y agoThey are often sold used for 10$ to 30$ on ebay and other sites.
- tyre 5y agoOne major issue is that Spotify for Mac doesn't work with AirPlay. It's confounding. They refuse to build it. Spotify has also refused to integrate with HomePod. The options are either stream all audio output, download something like AirFoil to stream only a single app (inconvenient, not friendly for non-technical users), or switch to Apple Music.
- lostgame 5y agoHuh. I never knew it never worked with AirPlay, as I rarely ever use Spotify. Being in the ecosystem already, Apple Music just makes sense. Does Spotify even have an Apple Watch app yet that allows on-device downloads for running, the way Apple Music does?
- deeblering4 5y agoThat's true, although for my purposes AirFoil has been worth the (admittedly too high) price. It also can output audio to bluetooth speakers and airplay devices at the same time, and has quite nice latency compensation built in. Wish it was free, or better yet built into the OS, but it's a very useful piece of software.
- DenseComet 5y agoWow this is a super impressive project. I was originally expecting a device built around a Raspberry Pi, but this is a completely custom designed linux board!
- NGRhodes 5y agoAnd a nicely detailed writeup.
- sneak 5y agoI don't understand why they didn't just use a pi; it would have been cheaper and easier. It already has ethernet and analog audio out.
- blamazon 5y agoBecause they wanted to make something.
- corobo 5y agoIt would have been even easier to plug an aux cable into an old phone and use that Not as interesting though. Not as fun
- bayindirh 5y agoRaspberry Pi's analog audio out is not very high quality either. I run a HiFiBerry on a Raspberry Pi, and while it's really delicious to use (good sound, good app, good ergonomics), it's just mount, flash and play. It's not something you make from scratch. I'd love to have time to work on something similar. My targets would be different audio-quality wise, but it's a very nice project. Kudos to its maker.
- lostgame 5y agoI was not aware there was an OSS Spotify client before reading this article. That’s neat!
- bigtones 5y agoA $30 Raspberry Pi with free Volumio serves the same purpose for me, and I can attach a DAC hat to the top of the Pi for high fidelity audio - but this looks so much better with it's beautiful wood finish.
- mikewave 5y agoAny recommendations for the DAC? I'm using a USB sound card right now on my Volumio Pi but haven't been thrilled about it. What I really want is SPDIF coaxial or optical output, on the cheap.
- feelepxyz 5y agoI’ve been using a HifiBerry DAC (DAC+ DSP) with a RBP and their HifiBerry OS which comes with a bunch of streaming services built in, the DSP DAC also allows you to upload a profile to adjust for room acoustics.
- mikewave 5y agoSlick, thank you!
- sneak 5y agoYou can use the DAC on the pi itself; you will not be able to tell the audio quality difference on any equipment you own (your ears included). There is a stereo mini jack audio output on the pi. Just use that and don't waste your money on audio woo. (This is also a standing bet of $5000 to anyone who can pass an ABX in front of me to discern the difference between the two in headphones of their own choosing. You pay if you lose.)
- CameronNemo 5y agoI've never heard the pi DAC... I wonder how good it is. I have some great headphones and great ears. But yeah I agree the built in DAC should be fine for what people seem to be using this for (playing music in a group setting, or while doing chores).
- yepthatsreality 5y agoI wish Pandora's APIs were more open. There's a library for their radio feature[0] but no API for their music subscription service. [0] https://6xq.net/pianobar/ https://6xq.net/pianobar/
- mastazi 5y agoIf you are in the US you may not know but years ago Pandora closed down in most other countries, so I wouldn't be surprised if their API are geographically locked as well.
- mikewave 5y agoFor anyone else who wants to do this, just set up the absolutely amazing Volumio on your RPi or any other computer. https://volumio.org/ https://volumio.org/ The web app is great for use in your house, the Spotify plugin is first class - it's supported as a target in your Spotify app, or you can browse straight from the webapp, which means even a guest on your wifi can easily pop on and help pick the music.
- Jnr 5y agoI have been using spotifyd on my media box until now but seems like Volumio might have a bit more features. Will give it a try.
- ghostly_s 5y agoI wonder if there's something like this that supports Plex?
- decryption 5y agoGive Rasplex a shot - http://www.rasplex.com/ http://www.rasplex.com/
- ghostly_s 5y agoI don't mean just a lightweight plex client, but a headless plex audio sink. Plex supports , "passing" your stream session over to another client on the local network now, I'm not sure what protocol it is exactly but my Tcl Roku tv is compatible with this and its quite handy to be able to queue some stuff up on the mobile app them send it over there to play rather than fumbling with the remote and the handicapped Roku app.
- deleted 5y ago[deleted]
- luxurytent 5y agoWhat kind of audio output does a raspberry pi support?
- celim307 5y agoWould a chrome cast audio work? Or is it not high fidelity enough
- ddrmaxgt37 5y agoIt should work. I have one outputting digital to my hi-fi via TOSLINK.
- harg 5y agoIf you can buy one. I think they stopped making them a year or so ago. I've heard the DACs on the Chromecast audios are pretty good, so should be plenty hi-fidelity for most people's needs.
- Klonoar 5y agoSince it uses spotifyd, this only works with Premium accounts right? Very cool project otherwise, love the end result.
- wikibob 5y agoFun project! Belkin has a dongle to turn Apple AirPlay 2 into 3.5mm or optical. https://www.belkin.com/us/speakers-headphones/speakers/soundform-connect-audio-adapter-with-airplay-2/p/p-auz002/ https://www.belkin.com/us/speakers-headphones/speakers/sound...
- paxys 5y agoVery cool! For those looking for a commercial solution Echo Input (~$25) supports this as well – albeit with an Amazon-sized middleman.
- rusteh1 5y agoDisadvantage of this is that the DAC in the echo dot is quite low quality. On a quality HiFi it doesn't sound very good. I started with this, and then moved to an Echo Link, which allowed me to output digital and then use the DAC in my amplifier, I may upgrade to an external DAC at some point, though I suspect I may have diminishing returns here, given the source is Spotify.
- palijer 5y agoI dove down this road and was going to build something like this to pair Spotify Connect with my new Focal Solo6 Be's, but ended up settling on a Cambridge Audio CXNv2 network streamer instead. Cool project! I might venture down here again in the future, is a great thing to write about.
- mrgreenfur 5y agoIf you have a computer why bother streaming it from the phone and just use the computer to stream it? This is why i have a blueos device at home
- bjacobt 5y agoAs someone who is working on an embedded project - I just want to say, this is very impressive. I didn’t understand half of it, but you’ve given me enough to research. Not sure if this helps, but I’m paying $75 per hour to do bits of what you’ve have done here.
- smoldesu 5y agoJust curious: which bits? If you're hemmed up on the sysops side, I've got you covered ;)
- bjacobt 5y agoPCB design. Sorry what is sysops?
- smoldesu 5y agoSysops would be relating specifically to the software/OS side of things, answering questions like "how can we deploy a lightweight software experience that compliments our hardware experience?" Only reason I bring this up is because I recently did a similar project for my family. You can salvage basically any old x86 board (or brand new, Linux-running ARM chip for that matter) and install a couple Linux daemons that enables it to act as a hyper-thin (total memory footprint under 250mb) Spotify client. Lord knows how viable it would be to run on embedded hardware, but the current state of the Rust-based Spotify infrastructure looks very well maintained. In it's current state, I'd say the outlook is very good.
- smoldesu 5y agoIf you want to do something like this at home, I fully encourage you to try it out! It's an afternoon project if you've got an old laptop laying around, bonus points if you know your way around Unix. The key software component here is spotifyd, a Spotify daemon for any Linux boxes. So if you have a spare Raspberry Pi/Laptop/Smart Fridge that you'd like to bless with Spotify superpowers, it's really only a few keystrokes to set up!
- arathis 5y agoAwesome.
- gtirloni 5y ago> Connecting to a Wi-Fi network is simple enough. Just download the Spotify Box app and give the pushbutton a press to start searching for networks. Then you can choose your Wi-Fi network through my app to get connected. This is the same process that iRobot does to connect their Roomba cleaners. Is it done over Bluetooth maybe?
- LukeShu 5y agoThe Roomba setup procedure, at least for the 600 series, has the Roomba broadcast a WiFi network that the app has your phone temporarily join.
- judge2020 5y agoThere are a few methods for unknown device connections, but it's usually one of, or a combination of: - a special qr code format that informs an app about the wifi network/wifi password (and other setup info) - an app scans your wifi networks and joins the one that starts with the device's prefix (not supported on iOS except via a special api[0]) - app requests bluetooth permission, connects to the bluetooth accessory, and from there it exchanges temporary wifi AP info or does the entire setup over BLE 0: https://developer.apple.com/library/archive/qa/qa1942/_index.html https://developer.apple.com/library/archive/qa/qa1942/_index...
- DiabloD3 5y agoWe should just be cutting out the middlemen like Spotify, and buying music directly from musicians. Then, we can just use standards compliant hardware, of our choosing, to play the music in any format we want (many modern musicians release as flac, old school musicians still sell CDs; either play as lossless, or recompress to chosen target).
- wussboy 5y agoSure. But we’ll need some sort of centralized market or exchange on which to discover these artists and send them funds. Oh wait….
- lucideer 5y agoIt's called Bandcamp
- foxpurple 5y agoDid this for years. Finally gave up last year. It’s so much work, discovery is a huge pain, listening on all devices is a pain. None of it was worth it. Now I just use Spotify and don’t care. I don’t need the extra work in my life.
- weq 5y agoall my friends use spotify and everytime i am with them i hear the same music. sure its the music they like, but its the same over and over and over again with no variation. They tell me spotify is great at discovery but i havnt heard it. i listen to djs, radio stations and other internet channels that mix the music i like into new and exciting compositions.
- yccs27 5y agoYeah, many people just don't care as much about discovering new music. I don't think it says much about Spotify though.
- frxx 5y agoWhat a great project! I just wish we could get the Chromecast Audio back, it does Spotify as well.
- wyclif 5y agoAny tips for optimizing a Spotify Connect home audio system in 2021?
- mustava 5y agoCan it do multiroom? I'd look at snapcast if not. Both look like a bit of work though
- k0ngo 5y agoThis is very similar to the OtterCast, which is an open source and open hardware Chromecast replacement. Overview: https://cast.otter.jetzt/ https://cast.otter.jetzt/ Sources: https://github.com/Ottercast https://github.com/Ottercast There's also a version with a built-in class D amplifier and color display. On the software side it's neatly packaged with a web UI for configuration, as well as support for snapcast (multiroom), airplay and pulseaudio besides spotify. I'm not affiliated with them, just very tempted to build one.
- kristjansson 5y agoSeparating the internet-connected (and therefore low life-expectancy) bits from the analog sound-reproduction (and therefore expensive and high life-expectancy) bits is a great way to build a solid system that can grow and adapt over time. This is a super cool and gratifying way to deliver the internet-connected bit at low cost (at least for those with hardware inclination, and access to means of production). For those without, Sonos' Port product does a great job filling the same niche. Though at $450 its a ... multiple ... of the cost of the project presented here!
- croon 5y agoI don't really know why they stopped selling chromecast audio (outside of wanting to sell more speakers I guess), but I have (and had) a bunch of those and bookshelf speakers with Lepai T Amps. It worked great. I've though since replaced most of them with Nest Audios, mostly for the WAF.
- wwn_se 5y agoA hack is to use a regular chromecast and a hdmi to rca/spdif adapter/splitter. Works pretty well and you can get them pretty cheap (in the ballpark of $20). But it will be more expensive than the chromecast audio unfortunatley
- d1sxeyes 5y agoA lot of those are really iffy in terms of quality - I had one which when run through my HiFi sounded like it was completely unshielded.
- antihero 5y agoThing is, cool as this box is, this outputs analog and has DAC inside it. One of the key reasons that people wouldn't use Alexa input, Muso Cobblestone (these were pretty great in all fairness), etcetera long term is that the internal DACs were not even remotely "audiophile" quality. If these devices had some sort of digital output so we could attach our own DACs, it would be much nicer.
- rubyist5eva 5y agoYou can use a raspberry Pi amd Balena Sound to make one of these. Bonus feature: it also support Air Play. https://hub.balena.io/balenalabs/balenasound https://hub.balena.io/balenalabs/balenasound
- rawoke083600 5y agoVery well done ! I see this trend continue: "Bring Your Own Client" from examples like this to pure software like the apollo reddit client or youtube client featured a few days ago.
- amelius 5y agoThe opening picture is a reference to [1], I suppose? [1] https://dilbert.com/strip/1999-02-17 https://dilbert.com/strip/1999-02-17
- ehnto 5y agoI just make do with a Bluetooth to RCA dongle. The upside is it plays any bluetooth audio, not just Spotify. I can even connect it via my phone then control Spotify on my phone through my PC. Also no other apps or software required. It "just works" as far as bluetooth "just works".
- hamburglar 5y agoThe big problem with just plain Bluetooth to me is that “as far as Bluetooth ‘just works’” is “not very well” in my experience. The usual problems with connects and disconnects are annoying, but I’ve also grown impatient with this notion that we can just use our phone for everything. It drives me bonkers, for example, to have my music rudely interrupted by a text message sound instead of just having a subtle ding come from my pocket while the music continues to come from my stereo. Or that I can’t make a phone call while the music continues. Or to have my phone ring at stereo volume. I just want my music to be separate, I guess, which is totally possible through software, but none of our devices actually seem to have features that allow that. So a dedicated device is ideal, IMO.
- ThatPlayer 5y agoA similar issue with Bluetooth for me is that that if my phone is on my pocket, my body is readily blocking the signal, as it turns out water is great at absorbing 2.4ghz. Standing phone pocket away from my Bluetooth speaker is enough to interrupt the music.
- m4tthumphrey 5y agoPossibly off topic, but does anyone experience major issues with Spotify Connect? Maybe its just Sonos devices but it rarely works well.
- this-pony 5y agoI am experiencing some issues, especially when starting a session. It can help to have all the speakers connected via ethernet cable.
- chrisjc 5y agoI don't think it's explained in the article, but why was spotifyd chosen instead of cast or airplay "middleware"? Surely cast and airplay work with Spotify while delivering equal sound? Either way, amazing work and looks fantastic in wood.
- oarsinsync 5y agoNot the author, and I'm also not sure I fully understand your question, but am assuming 'cast or airplay' refers to the method used by mobile devices to redirect AV streams to different devices. Both those solutions still require a spotify client somewhere to interact with the spotify api. The spotify client is still ultimately responsible for determining what to play, where to play from, and what stream URL then needs to be 'cast' to the device. The box therefore running it's own client independently means you can still control it remotely, but it no longer hijacks control of all audio output on your mobile (or other) device. spotifyd also implements the Spotify Connect protocol, which enables you to control it through the Spotify app (mobile, desktop, or web), while still retaining independent audio output for other apps on your devices.
- lxgr 5y agoThis is true for AirPlay, but not really for Google Cast: While a Cast-capable device is required to initially launch Spotify, the Spotify Cast app is a full-featured Spotify Connect client. For example, you can launch Spotify on a Google Home and control it from any device logged in to the same account, regardless of whether it understands the Cast protocol, is on the same network etc. I suspect that once Spotify offers HomePod support, the situation might look somewhat similar for AirPlay (since being able to continue streaming with your phone out of battery etc. is possible on Apple Music on a HomePod already).
- chrisjc 5y agoVery interesting... I kinda knew this since I think the feature you described is also available through Alexa/Echo, but I never really took the time to think about what was going on behind the scenes. However, I'm still struggling to understand what is going on in your example. When you control Spotify from your phone (volume++, next, new song, etc), how does Google Home know to do something? When you tell Google Home "google play never gonna give you up", how does the Spotify app on your phone know how to reflect what's playing on the Spotify app? Technically I can imagine that there is a shadow state of your Spotify instance sitting out in the cloud somewhere, but what are the mechanisms that make all this work together? Is this part of the "cast" protocol/architecture? Is this Spotify specific IP/tech that they can push on Google and Alexa to include on their IOT/smart services since they have the clout and pull? Do you have any good links (not too technical, not too lite) on how this works?
- softwarebeware 5y agoSo…Sonos?
- InitEnabler 5y agoNow we just need a nice multi-room audio setup.