TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Spotifyd

733 点作者 fahrradflucht超过 2 年前

37 条评论

nzoschke超过 2 年前
Always great to see new ways to integrate with Spotify. I think that if you&#x27;re paying for a Spotify Premium subscription you should be able to stream music wherever you want!<p>However Spotify doesn&#x27;t agree. If this is based on librespot its using stuff Spotify doesn&#x27;t support and could easily shut down for unauthorized clients any time.<p>Their supported paths are iOS and Android SDKs for mobile, and the Web Playback SDK for desktop [1]. I&#x27;ve been using the web SDK in anger to build a jukebox app [2] and its only so-so.<p>First, you&#x27;re under the confines of a web browser which has some pretty big tradeoffs over the experience and system integrations you can build.<p>Next, song playback works as advertised but there are many things you can&#x27;t do like introspect the queue or prevent Spotify Radio from kicking in.<p>The latter is downright hostile to controlling exactly what songs you hear. I assume that always going into auto-recommendation mode is intentional to juice playback stats.<p>Kudos to spotifyd for offering total control over how and where you stream music you&#x27;re paying for.<p>1. <a href="https:&#x2F;&#x2F;developer.spotify.com&#x2F;documentation&#x2F;web-playback-sdk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.spotify.com&#x2F;documentation&#x2F;web-playback-sdk...</a><p>2. <a href="https:&#x2F;&#x2F;www.getjukelab.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.getjukelab.com&#x2F;</a>
评论 #34059874 未加载
评论 #34057709 未加载
评论 #34058255 未加载
评论 #34059046 未加载
评论 #34058859 未加载
评论 #34062334 未加载
harry8超过 2 年前
I used something different. Basic details for your entertainment&#x2F;edification&#x2F;comedy source material follow mostly so you can shortcut a comparison if you&#x27;re building something at your place.<p>1) Pi-zero running shairport-sync (couldn&#x27;t get them, got orange-pi zero 2 which works great) <a href="https:&#x2F;&#x2F;github.com&#x2F;mikebrady&#x2F;shairport-sync">https:&#x2F;&#x2F;github.com&#x2F;mikebrady&#x2F;shairport-sync</a>. I have a few of these.<p>2) Class D amp, Aiyima, Fosi, Loxjie etc Aliexpress is one place to get these. I&#x27;ve used and like Aiyima A03 and their ali store delivers fast.<p>3) Some nice, high-quality, 2nd hand speakers you like. Wharfedale, JBL, B&amp;W, Acoustic Research, Yamaha. (Or get some active speakers you like and skip #2, eg B&amp;O beolab 6000)<p>4) owntone (formerly known as forked-daapd) <a href="https:&#x2F;&#x2F;owntone.github.io&#x2F;owntone-server&#x2F;" rel="nofollow">https:&#x2F;&#x2F;owntone.github.io&#x2F;owntone-server&#x2F;</a><p>5) configure owntone with your spotify premium, takes less than a minute. (And with your music that you own - takes longer because you take more care).<p>You now have a multiroom setup with fantastic sound that you can control with <a href="http:&#x2F;&#x2F;owntone.local:3689&#x2F;" rel="nofollow">http:&#x2F;&#x2F;owntone.local:3689&#x2F;</a> including with your phone. And&#x2F;or you can use the &quot;Retune&quot; app on droid and apple&#x27;s &quot;itunes remote&quot; app on ios. Better sound than most alternatives for less dollars.<p>All integrates well with Homeasistant because of course it does.<p>I really like how mine turned out. Having half a dozen sets of speakers all playing the same music in perfect sync as you move from one room to another while doing chores on the weekend fills me with more joy that I would have guessed. YMMV.
评论 #34059617 未加载
评论 #34059220 未加载
评论 #34061634 未加载
kitsunesoba超过 2 年前
I&#x27;m glad this exists, but it&#x27;s unfortunate that the reverse-engineered librespot that this depends on is necessary, thanks to Spotify backpedaling on their promises of a streaming-capable replacement for libspotify.
评论 #34058875 未加载
评论 #34058449 未加载
yoavm超过 2 年前
As an alternative to Spotify - I&#x27;ve been working on TidalFS as a way to mount Tidal like a local filesystem. You can then use literally any music player to play your music as if it was all local files. You can even search.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bjesus&#x2F;tidalfs">https:&#x2F;&#x2F;github.com&#x2F;bjesus&#x2F;tidalfs</a>
评论 #34072776 未加载
评论 #34063768 未加载
评论 #34065178 未加载
musicstealer超过 2 年前
This uses librespot for the actual communication with Spotify&#x27;s servers.<p>Note that to get it to support Spotify Free, you need to compile a custom librespot with this part of the code commented out, that checks for Spotify Premium: <a href="https:&#x2F;&#x2F;github.com&#x2F;librespot-org&#x2F;librespot&#x2F;blob&#x2F;6dc7a11b09b5eea8f333805374ce0b45757e9539&#x2F;core&#x2F;src&#x2F;session.rs#L255-L263">https:&#x2F;&#x2F;github.com&#x2F;librespot-org&#x2F;librespot&#x2F;blob&#x2F;6dc7a11b09b5...</a><p>And then use this with spotifyd instead of the original.
评论 #34057893 未加载
评论 #34057985 未加载
评论 #34095047 未加载
jonas-w超过 2 年前
What i find the most interesting is the zeroconf option [0].<p>For example you can set up your spotifyd daemon on a raspberry and have it always connected to speakers.<p>Now when someone is in your local network they can choose your spotifyd daemon and play spotify over the speakers without connecting to the speakers directly via bluetooth etc.<p>[0] <a href="https:&#x2F;&#x2F;spotifyd.github.io&#x2F;spotifyd&#x2F;config&#x2F;File.html" rel="nofollow">https:&#x2F;&#x2F;spotifyd.github.io&#x2F;spotifyd&#x2F;config&#x2F;File.html</a> (after the configuration file example)
评论 #34058552 未加载
评论 #34058481 未加载
评论 #34059158 未加载
评论 #34064402 未加载
评论 #34060680 未加载
评论 #34061537 未加载
slondr超过 2 年前
Hi, I&#x27;m one of the spotifyd maintainers, happy to answer any questions people have - though I&#x27;m coming to this thread awfully late...<p>We recently cut a new release for the first time in over a year, which is very exciting for all of us (and I&#x27;m guessing why the project has been submitted here now :D)
评论 #34062924 未加载
评论 #34061882 未加载
评论 #34095082 未加载
suprjami超过 2 年前
Have tried this several times but I find it drops off the network as a remote play device.<p>If you have a PC with the Spotify app running, that appears as a remote play device to other clients.<p>Otherwise I found ncspot to be more reliable than spotifyd: <a href="https:&#x2F;&#x2F;github.com&#x2F;hrkfdn&#x2F;ncspot&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;hrkfdn&#x2F;ncspot&#x2F;</a>
评论 #34061999 未加载
评论 #34058721 未加载
评论 #34060460 未加载
jamespullar超过 2 年前
Original discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16603886" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16603886</a>
jez超过 2 年前
In the past, another tool I’ve used is this bash script that interacts with Spotify over dbus:<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;wandernauta&#x2F;6800547" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;wandernauta&#x2F;6800547</a><p>It’s nowhere near a fully featured Spotify client, but for little scripts or UI things where I just want to see the current song it’s pretty lightweight and already works with the Spotify app I have installed (obviously this means it has a different end goal in mind than Spotifyd).
评论 #34060092 未加载
MrGilbert超过 2 年前
I‘m kind of amazed that this is still working. I would have thought that Spotify is rather strict with their eco system.<p>I was always interested in their techstack, and how everything works on their end, but unfortunately I&#x27;m not into Java, which is the reason I never applied for a job there.
评论 #34057440 未加载
Ziggy_Zaggy超过 2 年前
Maybe I&#x27;m missing something but why don&#x27;t more ppl just built their own (web-based?) media player and drop-in mp3s and mp4s...? It&#x27;s not that difficult and is easily hosted on a server available anywhere behind a basic authenication gate. This solutions is esp. useful if you have any NAS setup.<p>What&#x27;s the rationale for not building homebrew media players instead of railing against Spotify...?
评论 #34062645 未加载
评论 #34062260 未加载
评论 #34062284 未加载
评论 #34062738 未加载
muppetman超过 2 年前
This is why I bought 5-6 Chromecast audio devices before they got nuked - they do exactly this (and other streaming services).<p>Yea it&#x27;s tied somewhat to Google, but it&#x27;s a simple easy to deploy puck that just works.<p>Not to suggest the hard work that&#x27;s gone into this isn&#x27;t awesome, because it is!
评论 #34059381 未加载
eloop超过 2 年前
Question - do any of the other streaming services have better Linux support?
bentt超过 2 年前
I thought this died with Spotify’s nerfing&#x2F;killing of API access. I had a project going with Mopidy which relied on it that I just dusted off the other night after a year and it wouldn’t authenticate. Kept saying “requires Premium account” despite my account being Premium.
评论 #34056926 未加载
iJohnDoe超过 2 年前
Kind of off topic. Can someone recommend a way to backup liked&#x2F;favorite songs from Spotify? Simply a text based list would be great. Thanks.
评论 #34065191 未加载
评论 #34065115 未加载
评论 #34078580 未加载
matthew-wegner超过 2 年前
Some other setups already in the comments, but to chime in with my own:<p>I gave up on 3rd party things. My automation VM includes a GUI environment, and I run the official Linux Spotify client. The only way my setup can break is if Spotify gives on Linux entirely.<p>Snapcast[1] transmits two streams to 7 different speaker setups:<p><pre><code> * Music + text to speech * Just text to speech </code></pre> When TTS plays on the first stream, music volume is ducked for the duration. That setup is all pulseaudio junk. I could actually play <i>any</i> system audio to my entire house, or even provide an 3.5mm aux input near the VM host, although in practice I stick to Spotify for convenience and the ability to use the clients on any machine to control everything.<p>Speakers in some rooms turn on&#x2F;off completely with the room, while others stay on but toggle between music and text-to-speech, to make sure I hear those notices (which are like doors opening, washer is done, etc).<p>My main work setup has a snapcast client, so I hear TTS events even with noise canceling headphones on. Some snapcast clients are placed on existing machines (i.e. TV computer), while a few are dedicated Raspberry Pis.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;badaix&#x2F;snapcast">https:&#x2F;&#x2F;github.com&#x2F;badaix&#x2F;snapcast</a>
评论 #34062110 未加载
digitalsushi超过 2 年前
I&#x27;ve been using this fork of rune audio called rAudio-1 (rern&#x2F;rAudio-1 on github). I figure both have had spotifyd integrations, so I&#x27;ll just blanket them both for this thoughtful inclusion.<p>I keep an old raspberry pi with rAudio-1 running under my desk, with a nice 60 dollar DAC HAT, that runs into a small amp with 2 rca cables, and then into speakers.<p>Generally I keep it playing a private shoutcast running music from my nas, but having spotifyd means I can interrupt it with anything I was just listening to on my phone - in the car, mowing the lawn, etc.<p>The continuity without the hassle is the kind of thing tech promised long ago. If it could make it one more step, the gap would be gone ... I should be able to just have all this software talking to each other, and knowing where I am, and playing automatically to whatever seems best, but the interoperability between them keeps it 1 foot from perfection.
edge17超过 2 年前
Could someone please explain to me why this is cool&#x2F;useful? I&#x27;m not a huge spotify user. Is the idea that I can set up the daemon on a networked computer in my home and then have it stream to speakers around my house?
评论 #34068281 未加载
odiroot超过 2 年前
Spotifyd is good to have considering Spotify deprecated and cut off the C library, thus breaking for example mopidy.<p>Unfortunately the MPRIS interface works weird. For example it didn&#x27;t let me change the volume.<p>On top of that spotifyd seems to sometimes get &quot;split brain&quot; where it continues playing but I can&#x27;t control it from my phone (Spotify Connect). My phone instead wants to play locally. Which is weird because Spotify normally only lets you play only from one device at the same time.
评论 #34063998 未加载
blacklight超过 2 年前
Too little, too late.<p>I&#x27;ve been struggling with Spotify&#x27;s messed up developer experience for years. They deprecated libspotify years ago without an alternative, promised an upcoming alternative for years, and they eventually pulled the plug last year without even bothering to provide an alternative.<p>I&#x27;ve tested Librespot in the meantime, but it proved too cumbersome to configure and use as a non-standalone executable.<p>In the meantime mopidy-spotify (the project I&#x27;ve used for years on my RPis) has gone all the way to adding a Docker image just to support Librespot and the whole Rust environment that is required to build it. And, of course, it&#x27;s not guaranteed that these projects will survive - Spotify can easily snap their fingers, change their API in a breaking way, and we&#x27;re forced to play a catch-up game again. They have already done so in the past.<p>I therefore decided that a company that doesn&#x27;t value my consumption use-cases, doesn&#x27;t bother for the time I waste to adapt to their changes, and has a bad record of developer experience, is not worth my money. I wish the best of luck to the guys behind spotifyd, but I&#x27;m personally done after 10 years of chasing Spotify.<p>I&#x27;ve moved to Tidal in the meantime. It&#x27;s still far from perfect, it still lacks an official Linux client and it&#x27;s more buggy than Spotify. But at least there&#x27;s a reversed engineered web API that so far they haven&#x27;t bothered to fight nor change. And that&#x27;s really all I need to build my music experience.
unmole超过 2 年前
Is there something similar for YouTube music?
hedora超过 2 年前
I&#x27;ve happily moved on from Spotify.<p>Has anyone produced similar (and working) alternatives for Tidal (or Sonos S1&#x2F;S2)?
评论 #34058724 未加载
Daunk超过 2 年前
Has anyone ever gotten this to work?<p>I must have tried it a dozen times by now, but never once gotten it to work.
评论 #34057731 未加载
评论 #34056924 未加载
评论 #34057375 未加载
评论 #34061559 未加载
ChrisArchitect超过 2 年前
More discussion on the original Show HN from the author when this was new 5 years ago:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16603886" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16603886</a>
cramjabsyn超过 2 年前
Has anyone integrated this with airplay successfully? I would love to be able to use spotify connect to stream to my airplay speakers without leaving a phone or laptop engaged
评论 #34072907 未加载
benhurmarcel超过 2 年前
Sounds similar to <a href="https:&#x2F;&#x2F;github.com&#x2F;dtcooper&#x2F;raspotify">https:&#x2F;&#x2F;github.com&#x2F;dtcooper&#x2F;raspotify</a>
vvoyer超过 2 年前
Can the Spotify Daemon play &quot;Highway to Hell&quot;?
评论 #34060702 未加载
jesvschrist超过 2 年前
Great project; I use spotifyd every day. It just works
avinassh超过 2 年前
<p><pre><code> &gt; Common issues &gt; The device name cannot contain spaces </code></pre> That&#x27;s interesting. I wonder why this would be causing an issue
pimlottc超过 2 年前
Is this an official project of Spotify? At first glance, it’s hard to tell. If not, I’m surprised they are allowed to use that name.
jrm4超过 2 年前
Honestly -- just <i>why</i>?<p>We now have a few years of experience with music streaming. And what we&#x27;ve learned is that -- sure, it&#x27;s convenient -- but honestly hasn&#x27;t much improved the lot of artists and musicians. It&#x27;s a new exploitative system that&#x27;s perhaps slightly better than the old exploitative system.<p>We can do better. Literally, locally, and for friends. I used to do MPD, but now I&#x27;m glad for things like mstream that make this sort of thing even easier. I hope funkwhale and other federated things do better as well.
评论 #34058061 未加载
评论 #34058000 未加载
评论 #34058020 未加载
评论 #34058476 未加载
评论 #34057964 未加载
gigatexal超过 2 年前
this + a good TUI is likely to get me to subscribe to spotify premium. Does anyone know if there&#x27;s a good TUI front end to YouTube music or Apple Music to save me an additional subscription (I already sub to Apple Music via a family share thing and Youtube Music because of Youtube Red&#x2F;Premium).
salusinarduis超过 2 年前
This is probably a forbidden subject but is it possible to download raw mp4&#x2F;whatevers with this somehow?
评论 #34062265 未加载
评论 #34060698 未加载
wingworks超过 2 年前
What exactly does this do once installed? Do I need another client to connect to it to play music?
Samyak1超过 2 年前
This is great and a real problem I&#x27;ve felt.
spotifyboii超过 2 年前
the artists don&#x27;t get their royalties when using Spotifyd