-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to make it multiroom? #30
Comments
You could set up multiple pi's running raspotify and then use this method to set it up as a multiroom system I'd presume, but I must say that I haven't tried it. I have multiple pi's laying around, so I might test it if I'm bored sometime. |
I can not seem to find any of my pis with raspotify in the Google Home app, any other ideas? |
U can use Snapcast(github) as combination with librespot. Works pretty good here. |
Yes, but then it is not natively supported inside the Spotify client |
yes it is, trough Librespot's own Discovery Feature. The Snapcast-Server just grabs the audio from librespot and sends it to its Snapcast-Clients. 👍 |
Then I've gotta try that |
@derWeihnachtsmann Do you maybe have a short explanation of how to use raspotify with snapcast? I couldn't find any documentation for this specific combination - or is it just install-and-forget? Raspotify itself is working like a charm here. |
I've got my raspberry Pi broadcasting to FM using a small USB to FM dongle. Then I just tune in the house's radios to that station and I have multi-room. Sound quality is very good. |
Sorry for the very very late answer, just put |
Howdy, |
@5AMsan , can you explain a bit more what have you done ? I can't make it working
I have no sound when Mopidy is working, only when Raspotify is working. |
@dmckminard , I assume you didn't setup mopidy to output audio through snapcast pipe but you did in librespot using SNAPSERVER_OPTS config.
But I configured both Mopidy and Raspotify to output through SnapServer pipe.
And the relevant Raspotify conf (/etc/default/raspotify):
|
Yes thanks you a lot, it works !
(Je peux peut-être te parler en français, ça serait plus simple si ça te convient!)
Il y a néanmoins un petit soucis avec Raspotify. La musique se lit en accélérée, j’entends par là qu’elle va plus vite que la normale, as-tu été confronté également à ce problème ?
|
I'll keep it english for GitHub readers visiting from search engine if you don't mind. BTW, I wanted to let you know I also use a script that stops Mopidy when launching Spotify streams. |
No problems ! Yes, I've already seen that, I'm going to search and post if I found something! |
Snapcast is a seperate server, which simply plays on all running snapcast clients, correct? What if I would like to group my raspotify server with my Chromecast Audio in my kitchen, for example? Any ways of making raspotify, librespot or similar show up in my Google Home application, so I could do that? I got a spare Pi so i could go for a dual pi setup, along the snapcast option, but i'd like to use the chromecast in my kitchen for stuff like soundcloud, radio apps etc. |
@mikkelrask, I'm digging right now on Google Assistant (library SDK running on RPi2). For what I read and tested, no way for now to integrate a RaspberryPi with GAssist as a media player like a Chromecast (and no Chromecast protocol seems to be on track). I'm looking into gRPC, Dialogflow and IFTT if anything would bring AI back to control Mopidy. |
@5AMsan Might be time to switch out Google home for something like Hass.io, and go for the dual Pi setup then. it seems to be able to control almost anything, it might turn in nifty in my ventures. :-) |
Hi |
If you don't specify a account in the config, snapcast will be available to play from all Spotify sources on the network. :-) |
So if inside the config file of raspotify I specify account, player will only be avaible from spotify connect for this account ? Then, can I set 2 instance of raspotify for each player to have 2 streams inside snapcast ? (maybe I don't fully understand how it works) |
Hey all, thanks for the magic line: Even though this is closed, I'm adding some details that might potentially help others! I have connected raspotify to forked-daapd for a multiroom (wifi/ airplay compatible) solution. I like raspotify (spotify connect) better than the pseudo-integrated spotify client in forked-daapd. Here is how it works:
(Note that you can create a forked-daapd airplay "repeater" in the same way with shairport-sync.) As a side note, playing spotify connect fifo and airplay sink at the same time creates an unhappy race condition. |
@jshep321 I tried this as user pi on a raspbian setup, but can’t get it to work. When I try the raspotify ”speaker” on Spotify I just get stuck on ”connecting” |
Well the device needs to be in your "music" directory from your forked-daapd.conf file. The default setting is pasted below.
Unless your music files, remote files, etc. are in /home/pi/ then it won't index them. Or you can add /home/pi to the conf file, but that is a bit ugly (using your homedirectory that is). |
Is this legal? 🤔 |
In the US, probably. Assuming you stay off of 87.7-87.9 and power+antenna gain is limited (measured in field strength), then yes. With a cheap USB dongle, you're likely OK, but I am not a lawyer. :) |
@febs, I think it's ok - it's very low power. It's just receivable in the back and front yards, but barely from the street. I don't think even my next door neighbours would notice any interference. |
Hey @jshep321, I am trying to follow your guide to use raspotify together with forked-daapd Library configurationlibrary {
password = ""
############################################################## I added restareted both services raspotify and forked-daapd From Spotify I point at raspotify In forked-daapd I can see spotifyfifo as a source, but cannot play it. I am afraid that raspotify is not streaming the output to spotifyfifo. My daapd log looks like this: I am not sure whether any of the shown errors has anything to do with raspotify or these are related to something else: ######################################################## ##################################################################### Can you see anything wrong in my approach? If not, do you have any idea for how I can check what went wrong? Sorry I am quite new to this, just installed forked daapd and raspotify for the first time and I am not certain about some of the details Thanks, |
Hi,
I have my music directory inside the user home directory (/home/pi/music), which is where my raspotify fifo is (as you can see above. You can either try to replicate this in your home directory and/or make sure that the permissions on these are writable by all (or change ownership with chown). |
Hi @jshep321, I replicated your setup but it still doesn’t work. But now I noticed a new error in my log: ############################################################################# I tried top start/Stop the Pulseaudio service but I got this error, indicated that it is not installed at all? ############################################################################# Do I need to install it? If so what fir and how do I do that? Thanks :) |
Make sure your audio { section in /etc/forked-daapd.conf has no local pulse enabled. Mine looks like this:
|
Mine is already like this, and I think the issue is in the input stream and not the output. any other ideas? |
One more thing Do I need such a token? I thought it not necessary in this setup as daapd just streams pipe no matter whether it is generated from Spotify or something else. If I do need the Spotify token anyway, how do I get it? |
Hi @jshep321 Next step is to try to enable streaming to Bluetooth speakers Thanks for your help :) |
congrats! |
This issue is over a year old and has been marked as stale. It will closed in 7 days if there is no activity. |
Is there any way to install it on multiple pis to make it play multiroom in sync?
The text was updated successfully, but these errors were encountered: