dtcooper / raspotify

A Spotify Connect client that mostly Just Works™
https://dtcooper.github.io/raspotify
MIT License
4.67k stars 217 forks source link

Problem with 3.5mm jack output #82

Closed chongkim97 closed 2 years ago

chongkim97 commented 6 years ago

I had installed everything without error but whenever I would try and play something it would come out as static, would anyone have any idea as to why it happens or how I could solve it I'm on a fresh install of Raspbian on a Pi3B and have done the necessary updates to the OS

brunob45 commented 6 years ago

Are you using an HDMI output? The RPi could be outputting the sound there.. Try forcing the audio output to the jack. $ amixer cset numid=3 1 or $ sudo raspi-config then select Advanced Options -> Audio -> 1 Force 3.5 mm, then Press Enter Use the right arrow to select Finish, then Enter.

chongkim97 commented 6 years ago

Yeah, I've forced the output towards to the jack

On Sun, Feb 18, 2018 at 9:30 PM, Bruno Bousquet notifications@github.com wrote:

Are you using an HDMI output? The RPi could be outputting the sound there.. Try forcing the audio output to the jack. $ amixer cset numid=3 1 or $ sudo raspi-config then select Advanced Options -> Audio -> 1 Force 3.5 mm, then Press Enter Use the right arrow to select Finish, then Enter.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dtcooper/raspotify/issues/82#issuecomment-366581070, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai3JqV0xxL6Ia8AvN-ZgtZX3ruLok8Bvks5tWOrrgaJpZM4SJ-v2 .

-- ~Chong

enapupe commented 6 years ago

Try a different p2 connector, worked for me. From loud static noise to clean output.

michal2616 commented 6 years ago

My problem seems to be simillar. I used to use raspotify for few months. One day it just stopped working. I mean raspotify was on but music wasn't playing. Quick removal and install again. Music plays again except I can hear statics. Weird thing is that when I turn (on my mobile spotify client) volume down to 0% I can still hear music (very quietly) playing in raspotify. I checked if maybe 2 raspotify clients are up on my raspberry but that is not true. Still didn't find any cause of the problem

MathieuSchopfer commented 6 years ago

Try adding hdmi_ignore_edid_audio=1 to your /boot/config.txt.

I am on Debian Stretch, with raspotify and Kodi. With this configuration, Spotify plays on the analog output and Kodi plays on HDMI. I did not modify /etc/default/raspotif.

ondrejtichacek commented 6 years ago

Any updates on this issue? I had same problems as @chongkim97, Pi(v1)B, static highly correlated to wifi activity. I only managed to solve it by using an external (usb) sound card.

chm-dev commented 3 years ago

I was able to make raspotify play via jack by changing raspotify config file. I have a Raspberry Pi 2 running Debian 10 with HDMI cable disconnected at all times. No window env. I couldn't change default output from HDMI to Analog (Headphones). Even addinghdmi_ignore_edid_audio=1 in config.txt made no effect.

Forced analog output by adding below line to /etc/default/raspotify OPTIONS="--device hw:1,0"

dcambria commented 3 years ago

@chm-dev thanks. It works now :)

The-real-Hezarfen commented 3 years ago

@chm-dev Works just fine, thanks!

piotr-cz commented 3 years ago

Based on this: https://github.com/dtcooper/raspotify/pull/386 I've added to /etc/default/raspotify:

OPTIONS="--device hw:CARD=Headphones,0"