[GH-ISSUE #515] librespot_playback could not start/write audio #327

Closed
opened 2026-02-27 19:30:01 +03:00 by kerem · 4 comments
Owner

Originally created by @savchenkoElla on GitHub (Aug 3, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/515

hi,
I am using raspotify and librespot to make my raspberry pi to one spotify connect client.
When I was using an USB-Headset, this has worked. Now I am trying to make this work with bluetooth speaker. I can play sound on raspberry pi with pulseaudio an thus, I have build the librespot with pulseaudio as backend.

When I start raspotify, I get this error:

Aug 03 14:41:42 raspberrypi librespot[1186]: [2020-08-03T12:41:42Z ERROR librespot_playback::player] Could not start audio: Connection refused
Aug 03 14:41:42 raspberrypi librespot[1186]: [2020-08-03T12:41:42Z ERROR librespot_playback::player] Could not write audio: Not connected to pulseaudio

Could someone help me with this?

Thank you :)

Originally created by @savchenkoElla on GitHub (Aug 3, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/515 hi, I am using raspotify and librespot to make my raspberry pi to one spotify connect client. When I was using an USB-Headset, this has worked. Now I am trying to make this work with bluetooth speaker. I can play sound on raspberry pi with pulseaudio an thus, I have build the librespot with pulseaudio as backend. When I start raspotify, I get this error: Aug 03 14:41:42 raspberrypi librespot[1186]: [2020-08-03T12:41:42Z ERROR librespot_playback::player] Could not start audio: Connection refused Aug 03 14:41:42 raspberrypi librespot[1186]: [2020-08-03T12:41:42Z ERROR librespot_playback::player] Could not write audio: Not connected to pulseaudio Could someone help me with this? Thank you :)
kerem closed this issue 2026-02-27 19:30:02 +03:00
Author
Owner

@Malvineous commented on GitHub (Aug 15, 2020):

This isn't a librespot problem. If you can get your system to play audio from the device with other programs then librespot will also work.

It looks like you have configured librespot to use pulseaudio but you aren't running pulseaudio, so once you fix your audio config them librespot should start working. Hopefully your Linux distro support can point you in the right direction there.

<!-- gh-comment-id:674341866 --> @Malvineous commented on GitHub (Aug 15, 2020): This isn't a librespot problem. If you can get your system to play audio from the device with other programs then librespot will also work. It looks like you have configured librespot to use pulseaudio but you aren't running pulseaudio, so once you fix your audio config them librespot should start working. Hopefully your Linux distro support can point you in the right direction there.
Author
Owner

@savchenkoElla commented on GitHub (Sep 10, 2020):

All the others playback programs are already working with pulseaudio. But I still have the same error with librespot..

<!-- gh-comment-id:690215305 --> @savchenkoElla commented on GitHub (Sep 10, 2020): All the others playback programs are already working with pulseaudio. But I still have the same error with librespot..
Author
Owner

@Malvineous commented on GitHub (Sep 10, 2020):

In the same terminal as you are using to run librespot, what does the command "pacmd list-sinks" report? This will ask PulseAudio to show which playback device it is using.

<!-- gh-comment-id:690260654 --> @Malvineous commented on GitHub (Sep 10, 2020): In the same terminal as you are using to run librespot, what does the command "pacmd list-sinks" report? This will ask PulseAudio to show which playback device it is using.
Author
Owner

@savchenkoElla commented on GitHub (Sep 10, 2020):

oh... it is actually not used.
I will try to figure that out, thank you ! :)

<!-- gh-comment-id:690326496 --> @savchenkoElla commented on GitHub (Sep 10, 2020): oh... it is actually not used. I will try to figure that out, thank you ! :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#327
No description provided.