[GH-ISSUE #39] Fails to start playing track on RPi4 Alsa error #33

Closed
opened 2026-02-28 14:24:49 +03:00 by kerem · 2 comments
Owner

Originally created by @peterdk on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/39

Just tried this out on RPi4 Ubuntu 22.04 arm64. Downloaded as binary from Github 0.0.15 release

I can see the 'speaker' in my desktop Spotify, but when playing a track it fails:

/opt/go-librespot$ ./go-librespot 
INFO[0000] generated new device id: 8689786ff7807fc2c3b43233fc96462fa98401bb 
WARN[0007] reducing track normalisation factor to prevent clipping, please add negative pregain to avoid 
WARN[0007] failed handling dealer request                error="failed loading current track (transfer): failed creating stream for spotify:track:7gTVQWqEGrqTuZkXpe43z1: ALSA error at snd_pcm_hw_params_set_format: Invalid argument"

I use a HifiBerry HAT.

Originally created by @peterdk on GitHub (May 25, 2024). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/39 Just tried this out on RPi4 Ubuntu 22.04 arm64. Downloaded as binary from Github 0.0.15 release I can see the 'speaker' in my desktop Spotify, but when playing a track it fails: ``` /opt/go-librespot$ ./go-librespot INFO[0000] generated new device id: 8689786ff7807fc2c3b43233fc96462fa98401bb WARN[0007] reducing track normalisation factor to prevent clipping, please add negative pregain to avoid WARN[0007] failed handling dealer request error="failed loading current track (transfer): failed creating stream for spotify:track:7gTVQWqEGrqTuZkXpe43z1: ALSA error at snd_pcm_hw_params_set_format: Invalid argument" ``` I use a HifiBerry HAT.
kerem closed this issue 2026-02-28 14:24:49 +03:00
Author
Owner

@peterdk commented on GitHub (May 25, 2024):

Spocon with Librespot-Java works fine.

<!-- gh-comment-id:2131286670 --> @peterdk commented on GitHub (May 25, 2024): Spocon with Librespot-Java works fine.
Author
Owner

@devgianlu commented on GitHub (May 26, 2024):

Hvae a look at https://github.com/devgianlu/go-librespot/issues/29#issuecomment-2038153676, I think it might be the same issue.

<!-- gh-comment-id:2132194537 --> @devgianlu commented on GitHub (May 26, 2024): Hvae a look at https://github.com/devgianlu/go-librespot/issues/29#issuecomment-2038153676, I think it might be the same issue.
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/go-librespot#33
No description provided.