05-19-2018, 03:40 AM
(05-18-2018, 01:39 PM)miklau Wrote: Hi There
Thanks for the great piece of code:-)
I am having some trouble when I want to test if the Spotify connect is working. I get the following error:
"spotify-connect-web.service: Failed with result 'exit-code'."
I am using a I2S DAC using a PCM1794 from Twisted Pear Audio. I am using the "DDDAC1794 NOS" driver and newest Moode.
I have set the HW to "CARD=sndrpirpidac,DEV=0" and that plays static left and right using the speaker-test. I have changed "mixer_device_index" to 0, 1 and 2 in the spotify-connect.sh script, but still the same error with exit-code.
Could anyone have any idea of what I am doing wrong please?
Thanks in advance.
Best regards Mikkel
miklau, sorry for not getting back at you on GitHub earlier.
Ok, let me explain a bit. The speaker noise test, if run as described, is using the 'Softvol' mixer created on the asound.conf file. Please, post the contents of that file so I can know exactly what is configured.
From what I read, you already have a mixer called Master. It could be the one 'we' created, or it could be that there was already a Master mixer and we need to find a new name for it.
So, best hunch from me with what you have posted is this steps.
Change a bit the asound.conf file to:
Code:
pcm.softvol {
type softvol
slave {
pcm "hw:0"
}
control {
name "SpotifyMaster"
card 0
}
}
Reset the Pi and run the noise test again. Does it sound? If yes, then change the devices in spotify-connect.sh to:
Code:
#!/bin/sh
cd /
cd home/pi/spotify/spotify-connect-web
LD_LIBRARY_PATH=/home/pi/spotify/spotify-connect-web python main.py --playback_device softvol -m SpotifyMaster--mixer_device_index 0 --bitrate 320 --name "moOde Connect" --key /home/pi/spotify/spotify-connect-web/spotify_appkey.key
cd /
If there was no sound for the noise test, then we will need to try different things.