Help requested - Raspotify on rpi3 with 3.5mm jack no audio

I am trying to get audio out of the 3.5mm jack of my rpi3 when using Raspotify, so far no luck.

This is my config and the logs I see:

Anyone had the same problem and knows how to get it working? Thanks! :slight_smile:

Did you follow the advice you got last time?

Yep, as you can see I added the --device hw:0 parameter.

That’s all that I can deduce from the thread you linked to that could influence the output going to the analog output. Am I overlooking something?

Did you read it till the end?
Eg someone writing this in post 67

My understanding is that the device number can sometimes change. You should run aplay -L (from the alsa-utils package). This will give something like:

osmc@osmc:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
dmix:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample mixing device
dmix:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample snooping device
hw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Hardware device with all software conversions

My reading of this is that there are two “hw” sinks: hw:CARD=ALSA,DEV=0 and hw:CARD=ALSA,DEV=1, with the latter being HDMI-related. See what aplay -L on your Pi shows and try the long-form (non-HDMI) device identifier in the raspotify command,

1 Like

This is what I get:

osmc@SkyPi3:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
dmix:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample mixing device
dmix:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample snooping device
hw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Hardware device with all software conversions

So this would mean device 0 should be the correct one, no?

@fzinken you are linking to a reply that talks about connecting the audio to the HDMI, I would like it to play on the analog 3.5mm jack as my Logitech speakers are connected to that.

Any other ideas what might help? Thanks

Did you try my recommendation?

Yes, I changed the config to

"--device hw:CARD=ALSA,DEV=0"

and restarted the raspotify service, still no audio. Checked with alsamixer, put it at maximum, put the speakers at maximum, no audio. When playing something in Kodi, the audio works fine.

With or without the double quotes?

With double quotes, as the examples in the config file all have doubles quotes:

05

service status gives:

Have you seen this thread?

Thanks, editting the /boot/config.txt file and adding hdmi_ignore_edid_audio=1, doing a reboot fixed the issue. Upped the volume with alsamixer and all runs fine, thanks for the help :slight_smile:

Thanks for the feedback. I don’t have Spotify, so couldn’t test it myself. Good to hear it’s now up and running.

hi i’ve done editting the /boot/config.txt file and adding `hdmi_ignore_edid_audio=1 but it is not working…where do you wrote it ? at the bottom ? with # before ?
thanks

Doesn’t matter where, but surely not with a # as that would disable the entry as it indicate a comment.

Take the long form as the args works perfectly for me! Then use alsamixer to turn the volume to the best spot.

Appreciate!