Install Spotifyd on a Raspberry Pi

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
i'm going to show you how to turn your raspberry pi into a spotify connect device i have a raspberry pi 4b here connected via the three and a half millimeter jack to a speaker some applications for this project would be a speaker that's in your garage that's maybe an old speaker without bluetooth or not a convenient aux port then you have your raspberry pi connecting into the speaker and you can just control it from your phone whenever you want to play music if you want to or not this is a cheaper alternative to those expensive sonos systems or some inconvenient switching bluetooth with your different speakers wherever you are this way you can just go on your spotify app click connect to garage speaker and then you're there a quick note before getting started this does require spotify premium i don't know why but that's what spotify lets us do on to the project i'm going to be using this github repository spotify d pretty reputable 5.9 000 stars and simple installation here are the instructions they even have specific installation instructions for raspberry pi start up we are going to get releases from this website i already have it open and you got some options here arm hf arm v6 what do we choose we need to get into our raspberry pi to figure that out i'm going to ssh into my raspberry pi maybe you're already using your raspberry pi as a desktop if that's the case just open a terminal ssh pi at raspberry pi then my password and we need to figure out if we have arm arm v7 and how do we do that run the command u name dash m it looks like i'm running arm v7 maybe you're running it says arch 64 or arm v8 that's the new 64 gigabyte architecture for raspberry pi it's backwards compatible so you can just pick the same one as me okay back here i don't see any options for arm v7 that's because arm hf is synonymous with arm v7 so i'm going to pick that one the tar.gz if you have arm b6 pick the arm v6 tar.gz how do you pick it let's hover over copy link address that's going to copy this address that's down in the bottom right corner left corner of my browser back in the terminal let's run the command w get web get that okay all downloaded you can see if i ls my home directory that's the file i just downloaded now let's unzip that file tar x for extract v to tell me all the information z i'm going to use gzip and then f my file name spot to and tab to auto complete enter great now if i ls i have the spotify d thing and i'm going to delete the tar.gz rm for remove spotify d dash whoops d dash tab enter and now it's gone i just have my spotify d file what next back to the instructions we're going to skip down let's make our config file before we do anything we need to run the command a play dash l i'm going to go side by side here a play dash l what am i looking at these are all your audio devices it can be a lot but i'm running off my headphone jack my three and a half millimeter jack so my device is called hw maybe you have a usb that's going to be usb stream or hdmi that's going to be you guessed it hdmi great so copy this first one make directory oops copy the wrong thing ctrl c paste okay i made the directory and now we're going to make the config file i'm not running as a root so i need to go sudo before that command right click to paste copy all of this copy and then paste it all over here what did i say my device is called hw in quotes here we go we can change our device name be careful do not include any spaces raspberry underscore pie my bit rate is going to be 96 feel free to experiment with that and now my username and password ctrl s to save control x to exit okay now that we got the config file we're actually ready to test that's all there is to it this command right here under the download option dot dash spotify d no demon right click paste enter we gotta get spotify playing some music okay it's playing off my computer right now now if we look at devices there we go raspberry pi [Music] awesome and i have another raspberry pi actually here but if you remember i had the pi with the two two capitals on there let's go back ctrl c we're not done yet now we want to make this so that it runs in the background using the daemon file so here we go we have a website here that we need to get our system service file so i'm going to go to that website hope what's wrong here ah i didn't copy the whole thing copy paste now let's copy all of this ctrl c and now we're going to run sudo nano etc system d user spotify d dot service enter okay so i have already pasted this in here and you're going to go down to exect start here and put this wherever that spotify d file was if you remember that was in my home directory so home dash pi maybe you put it somewhere else just change that path to wherever spotify d lives control s to save control x to exit here you go if you want to do it as user follow this command instead and now let's make it so that we can do it whenever we restart the service so copy that paste here and let's see if that pie shows up here yep it shows up so that's a good sign and now we got to do it at boot this is going to be username so that's going to be pi for me copy paste and then pi my username enter now the second one copy paste enter now if i restart my pi this should work sudo reboot just to verify back on the here oh and it just showed up that means my pi is rebooted if i click play again switch devices you can hear the audio quality change and that's because it's on my tiny speaker now pause that and there you go that's all there is to it the world is your oyster with this application thanks for watching leave a comment if you have any questions and happy coding
Info
Channel: Sam Westby Tech
Views: 25,795
Rating: undefined out of 5
Keywords: spotify, spotifyd, configure spotifyd, how to install spotifyd, how to install spotifyd on raspberry pi, raspberry pi, raspberry pi projects, raspberry pi tutorials, raspberry pi spotify player, raspberry pi spotify connect, spotify for raspberry pi, raspberry pi spotify connect device, raspberry pi music streaming
Id: GGXJuzSise4
Channel Id: undefined
Length: 8min 29sec (509 seconds)
Published: Thu Feb 17 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.