Reply To: [NEW UPDATE] Spotify Connect Server – beta available!

Max2Play Home Forums Max2Play Development (Ideas, Wishes) [NEW UPDATE] Spotify Connect Server – beta available! Reply To: [NEW UPDATE] Spotify Connect Server – beta available!

5. Mai 2017 at 15:31 #28724

ok,
but no sound yet

This is aplay -L

root@max2play:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
equal
plugequal
Equalizer for plughw:0,0
default:CARD=sndrpihifiberry
snd_rpi_hifiberry_digi,
Default Audio Device
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_digi,
Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_digi,
Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_digi,
Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_digi,
Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_digi,
Hardware device with all software conversions

New edit spotify-connect.service:

[Unit]
Description=Librespot
Requires=network-online.target
After=network-online.target

[Service]
User=root
Restart=always
RestartSec=10
ExecStart=/root/librespot –name SpotiPi –username ****** –password ******* –disable-discovery –cache /tmp –bitrate 320 –device plughw:CARD=sndrpihifiberry > /dev/null 2>&1

[Install]
WantedBy=multi-user.target

and new start service

● spotify-connect.service – Librespot
Loaded: loaded (/etc/systemd/system/spotify-connect.service; enabled)
Active: active (running) since Fri 2017-05-05 15:17:36 CEST; 12s ago
Main PID: 4023 (librespot)
CGroup: /system.slice/spotify-connect.service
└─4023 /root/librespot –name SpotiPi –username ***** –password ****** –disable-discovery –cache /tmp –bitrate 320 –device plughw:CARD=sndrpih…

May 05 15:17:36 max2play systemd[1]: Started Librespot.
May 05 15:17:36 max2play librespot[4023]: INFO:librespot: librespot 871e9e8 (2017-03-26). Built on 2017-04-13.
May 05 15:17:36 max2play librespot[4023]: INFO:librespot::session: Connecting to AP „gew1-accesspoint-a-xs57.ap.spotify.com:4070“
May 05 15:17:37 max2play librespot[4023]: INFO:librespot::session: Authenticated as „******“ !
May 05 15:17:37 max2play librespot[4023]: INFO:librespot::audio_backend::alsa: Using alsa sink
May 05 15:17:37 max2play systemd[1]: Started Librespot.

Thank you