# Spotify Connect on your RoonBridged Pi - the even quicker & easier way

**URL:** <https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818>\
**Category:** Raspberry Pi\
**Created:** [August 20, 2017, 2:23pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818 "2017-08-20T14:23:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBM](https://community.roonlabs.com/user_avatar/community.roonlabs.com/rbm/32/48302_2.png) [@RBM](https://community.roonlabs.com/u/RBM)\
**Post date:** [August 20, 2017, 2:23pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/1 "2017-08-20T14:23:44Z")

</div>

Following up on[these dablings](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-quick-n-easy-way/) on installing librespot on a Raspberry Pi, community member @Tony_Reimann kindly referred to RaSpotify (released sometime after the original thread): a fully packaged librespot for the Pi, installable by copying-and-pasting one single line of code.

After installing RaSpotify, your Pi will appear as a Spotify Connect endpoint. It can live in harmony with Roon Bridge (make sure playback has ended on one before switching to the other) on a distribution of choice (DietPi, Raspbian).

All info here: [https://github.com/dtcooper/raspotify](https://github.com/dtcooper/raspotify)

You may want to edit the config file to set a different name and to ensure the highest quality stream (320kbps):

`nano /etc/default/raspotify`

Change #DEVICE\_NAME=“raspotify” to DEVICE\_NAME=“Your-name-of-choice” (remove the #)

Change #BITRATE=“160” to BITRATE=“320” (remove the #)

That’s all – enjoy! 🙂

---

<div class="post-metadata">

**Author:** ![fritzg](https://community.roonlabs.com/letter_avatar/fritzg/32/5_5575768a8748004e209b776fc1b2916d.png) [@fritzg](https://community.roonlabs.com/u/fritzg)\
**Post date:** [August 20, 2017, 3:51pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/2 "2017-08-20T15:51:12Z")

</div>

How is this different from the Spotify connect install from within dietpi?

---

<div class="post-metadata">

**Author:** ![RBM](https://community.roonlabs.com/user_avatar/community.roonlabs.com/rbm/32/48302_2.png) [@RBM](https://community.roonlabs.com/u/RBM)\
**Post date:** [August 22, 2017, 6:03pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/3 "2017-08-22T18:03:43Z")

</div>

In DietPi, the installation is for Spotify Connect Web, which needs a developer key and uses the old, deprecated Spotify API, that has been shut down by Spotify some time ago.

@Dan_Knight: you may want to replace SCW with RaSpotify in DietPi if possible?

---

<div class="post-metadata">

**Author:** ![William\_Whey1](https://community.roonlabs.com/letter_avatar/william_whey1/32/5_5575768a8748004e209b776fc1b2916d.png) [@William\_Whey1](https://community.roonlabs.com/u/William_Whey1)\
**Post date:** [August 24, 2017, 5:20am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/4 "2017-08-24T05:20:25Z")

</div>

Sorry noob question, having problem with changing alsa playback option on the spotify connect.

Its on card 2 accoring to aplay -l  
Kindly please let me know what should i change to enable the spotify connect to use card 2 on my raspberry pi using dietpi software

Best regards  
william  
\*\*\*\* List of PLAYBACK Hardware Devices \*\*\*\*  
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]  
Subdevices: 8/8  
Subdevice #0: subdevice #0  
Subdevice #1: subdevice #1  
Subdevice #2: subdevice #2  
Subdevice #3: subdevice #3  
Subdevice #4: subdevice #4  
Subdevice #5: subdevice #5  
Subdevice #6: subdevice #6  
Subdevice #7: subdevice #7  
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]  
Subdevices: 1/1  
Subdevice #0: subdevice #0  
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 []  
Subdevices: 1/1  
Subdevice #0: subdevice #0  
card 2: AB12 [QNKTC USB DAC AB-1.2], device 0: USB Audio [USB Audio]  
Subdevices: 1/1  
Subdevice #0: subdevice #0

---

<div class="post-metadata">

**Author:** ![latenz](https://community.roonlabs.com/user_avatar/community.roonlabs.com/latenz/32/16161_2.png) [@latenz](https://community.roonlabs.com/u/latenz)\
**Post date:** [August 30, 2017, 7:21am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/5 "2017-08-30T07:21:03Z")

</div>

Is there a way for raspotify on Allo usbridge?

Thanks

---

<div class="post-metadata">

**Author:** ![Tony\_Reimann](https://community.roonlabs.com/letter_avatar/tony_reimann/32/5_5575768a8748004e209b776fc1b2916d.png) [@Tony\_Reimann](https://community.roonlabs.com/u/Tony_Reimann)\
**Post date:** [August 30, 2017, 9:05am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/6 "2017-08-30T09:05:19Z")

</div>

Yes I have it running. I manually installed it on Dietpi using the instructions on the github page rather than using the installer which appears to check it is running on a RPi

● raspotify.service - Raspotify  
Loaded: loaded (/lib/systemd/system/raspotify.service; enabled)  
Active: active (running) since Wed 2017-08-30 21:07:45 NZST; 11s ago  
Process: 6232 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SUCCESS)  
Process: 6229 ExecStartPre=/bin/mkdir -p 0755 /var/cache/raspotify (code=exited, status=0/SUCCESS)  
Main PID: 6235 (librespot)  
CGroup: /system.slice/raspotify.service  
└─6235 /usr/bin/librespot --name USBridge --backend alsa --bitrate 320 --disable-audio-cache --device plughw:CARD=T2,DEV=0

Aug 30 21:07:45 DietPi systemd[1]: Started Raspotify.  
Aug 30 21:07:45

---

<div class="post-metadata">

**Author:** ![Ole\_Thomas\_Thommesen](https://community.roonlabs.com/letter_avatar/ole_thomas_thommesen/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ole\_Thomas\_Thommesen](https://community.roonlabs.com/u/Ole_Thomas_Thommesen)\
**Post date:** [September 15, 2017, 4:36am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/7 "2017-09-15T04:36:23Z")

</div>

Same here. Manual om Allo board. Changed config to change device… Succesd!

---

<div class="post-metadata">

**Author:** ![evanw](https://community.roonlabs.com/letter_avatar/evanw/32/5_5575768a8748004e209b776fc1b2916d.png) [@evanw](https://community.roonlabs.com/u/evanw)\
**Post date:** [October 13, 2017, 11:32pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/8 "2017-10-13T23:32:46Z")

</div>

Does this allow any user on the local network to play through the spotify connect endpoint ? Or must the spotify client be logged in as the same user as the endpoint uses ?

---

<div class="post-metadata">

**Author:** ![RBM](https://community.roonlabs.com/user_avatar/community.roonlabs.com/rbm/32/48302_2.png) [@RBM](https://community.roonlabs.com/u/RBM)\
**Post date:** [October 14, 2017, 8:01am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/9 "2017-10-14T08:01:54Z")

</div>

I have not tried, but any (premium) Spotify instance should be able to play, regardless of account.

---

<div class="post-metadata">

**Author:** ![Henrik\_Gutle](https://community.roonlabs.com/letter_avatar/henrik_gutle/32/5_5575768a8748004e209b776fc1b2916d.png) [@Henrik\_Gutle](https://community.roonlabs.com/u/Henrik_Gutle)\
**Post date:** [October 15, 2017, 11:22pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/10 "2017-10-15T23:22:32Z")

</div>

I’ve been able to install Raspotiy/Librespot successfully and can leverage my Raspberry 3 + Justboom Digi Hat as a Spotify Connect endpoint. The only issue is that the volume in my Spotify App (Android) always starts out at 100% which is way too loud. Is there a way to set the initial volume to say 10% or something?

---

<div class="post-metadata">

**Author:** ![fritzg](https://community.roonlabs.com/letter_avatar/fritzg/32/5_5575768a8748004e209b776fc1b2916d.png) [@fritzg](https://community.roonlabs.com/u/fritzg)\
**Post date:** [October 19, 2017, 2:21pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/11 "2017-10-19T14:21:43Z")

</div>

> [@RBM](#):
>
> In DietPi, the installation is for Spotify Connect Web, which needs a developer key and uses the old, deprecated Spotify API, that has been shut down by Spotify some time ago.
> 
> @Dan_Knight: you may want to replace SCW with RaSpotify in DietPi if possible?

Bump. Wondering if this is in dev plan for DietPi. @Dan_Knight

---

<div class="post-metadata">

**Author:** ![Dan\_Knight](https://community.roonlabs.com/user_avatar/community.roonlabs.com/dan_knight/32/8669_2.png) [@Dan\_Knight](https://community.roonlabs.com/u/Dan_Knight)\
**Post date:** [October 19, 2017, 3:11pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/12 "2017-10-19T15:11:32Z")

</div>

> [@fritzg](#):
>
> Bump. Wondering if this is in dev plan for DietPi. @Dan_Knight

Yep, planned for v158:  
[https://github.com/Fourdee/DietPi/issues/1189](https://github.com/Fourdee/DietPi/issues/1189)

---

<div class="post-metadata">

**Author:** ![Sebastian\_Ptak](https://community.roonlabs.com/letter_avatar/sebastian_ptak/32/5_5575768a8748004e209b776fc1b2916d.png) [@Sebastian\_Ptak](https://community.roonlabs.com/u/Sebastian_Ptak)\
**Post date:** [November 13, 2017, 5:00pm UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/13 "2017-11-13T17:00:46Z")

</div>

Just installed new DietPi, v158 with Raspotify onboard. But there is no sound. As I understand there is a need to change audio output in Raspotify? Any advice how can I do it?

SOLVED: found the answer. aplay -L command helped me to understand that my device is not hw:1,0.  
In settings file I had to add --device CARD=Audio (external NAD DAC) and voila! everything’s fine. Thanks @RBM once again.

---

<div class="post-metadata">

**Author:** ![wilro15](https://community.roonlabs.com/user_avatar/community.roonlabs.com/wilro15/32/19155_2.png) [@wilro15](https://community.roonlabs.com/u/wilro15)\
**Post date:** [November 29, 2017, 8:45am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/14 "2017-11-29T08:45:02Z")

</div>

Please can somebody explain how to setup Spotify Connect on DietPi? I have an RPI 3 with DietPi installed. I can access the DietPi web UI by browsing to the IP address, and Roon works great (using Allo DigiOne).

I understand that I need to access the terminal and run a Curl command to install Raspotify. How do I get to the terminal?

I have not enabled SSH - I don’t know how to. When I plug in a monitor to the HDMI port on the RPI, I don’t see anything. The RPI seems to be unresponsive to the USB keyboard I attached also.

---

<div class="post-metadata">

**Author:** ![Tony\_Reimann](https://community.roonlabs.com/letter_avatar/tony_reimann/32/5_5575768a8748004e209b776fc1b2916d.png) [@Tony\_Reimann](https://community.roonlabs.com/u/Tony_Reimann)\
**Post date:** [November 29, 2017, 9:01am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/15 "2017-11-29T09:01:52Z")

</div>

Mac or Windows environment?

---

<div class="post-metadata">

**Author:** ![wilro15](https://community.roonlabs.com/user_avatar/community.roonlabs.com/wilro15/32/19155_2.png) [@wilro15](https://community.roonlabs.com/u/wilro15)\
**Post date:** [November 29, 2017, 9:20am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/16 "2017-11-29T09:20:25Z")

</div>

I have a Mac

---

<div class="post-metadata">

**Author:** ![Tony\_Reimann](https://community.roonlabs.com/letter_avatar/tony_reimann/32/5_5575768a8748004e209b776fc1b2916d.png) [@Tony\_Reimann](https://community.roonlabs.com/u/Tony_Reimann)\
**Post date:** [November 29, 2017, 9:43am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/17 "2017-11-29T09:43:35Z")

</div>

On OS X, open your Applications folder, then open the Utilities folder. Open the Terminal application. In terminal enter ssh [root@192.168.0.100](mailto:root@192.168.0.100)  
Replace the IP address in the command with the IP address of your RPi running dietpi. The password when prompted is dietpi

That should get you ssh access where you can run dietpi-software and install raspotify.

I should add that I am not a Mac user so I may have got this wrong.

---

<div class="post-metadata">

**Author:** ![wilro15](https://community.roonlabs.com/user_avatar/community.roonlabs.com/wilro15/32/19155_2.png) [@wilro15](https://community.roonlabs.com/u/wilro15)\
**Post date:** [November 29, 2017, 10:10am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/18 "2017-11-29T10:10:43Z")

</div>

Thank you Tony!

---

<div class="post-metadata">

**Author:** ![Govnah](https://community.roonlabs.com/letter_avatar/govnah/32/5_5575768a8748004e209b776fc1b2916d.png) [@Govnah](https://community.roonlabs.com/u/Govnah)\
**Post date:** [December 19, 2017, 1:01am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/19 "2017-12-19T01:01:25Z")

</div>

Trying to get this to work and below is my output for my ifi DAC:  
card 1: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio]  
Subdevices: 1/1  
Subdevice #0: subdevice #0

I added --device CARD=Audio

No success, do I need quotes around “CARD=Audio”

Thanks

---

<div class="post-metadata">

**Author:** ![Tony\_Reimann](https://community.roonlabs.com/letter_avatar/tony_reimann/32/5_5575768a8748004e209b776fc1b2916d.png) [@Tony\_Reimann](https://community.roonlabs.com/u/Tony_Reimann)\
**Post date:** [December 19, 2017, 2:23am UTC](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818/20 "2017-12-19T02:23:27Z")

</div>

Try --device plughw:Audio

[Next page](https://community.roonlabs.com/t/spotify-connect-on-your-roonbridged-pi-the-even-quicker-easier-way/29818.md?page=2)
