In LibreELEC 8.0 or later, install Librespot from the LibreELEC Add-ons repository (in the Services section)
Ah tnx! Couldnt find it because I was on the milhouse version. Back to official build now..
In LibreELEC 8.0 or later, install Librespot from the LibreELEC Add-ons repository (in the Services section)
Ah tnx! Couldnt find it because I was on the milhouse version. Back to official build now..
Howdy there, can anyone enlighten me to the difference between selecting output as ALSA and Kodi? My device is a wetek core and I was just wondering which option is better. Cheers.
Howdy there, can anyone enlighten me to the difference between selecting output as ALSA and Kodi? My device is a wetek core and I was just wondering which option is better. Cheers.
In ALSA mode Librespot plays directly to one of your sound devices, bypassing Kodi.
In Kodi mode Librespot streams to Kodi which plays back.
ALSA mode is extremely straightforward (at least on Pi) and allows headless operation.
Kodi mode uses Kodi audio output and settings and is useful when ALSA and Kodi interfere with each other.
Try both and pick the mode you prefer.
Thanks for the explanation and all of your awesome work, appreciate it.
hello
I would like to install librespot but i'm a noob and i don't understand how to install the plugin...
someone can help me ?
thanks
Tried to run the librespot plugin, looks like wonderful work but both backends do not seem to work for me...
Tried the following to no avail:
This is someoutput after selecting the kodi backend with the above settings.
Aug 08 00:10:03 LibreELEC sh[2237]: INFO:librespot::audio_backend::alsa: Using alsa sink
Aug 08 00:10:03 LibreELEC sh[2237]: INFO:librespot::session: Country: "NL"
Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::util: Running librespot.onstart
Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::util: Exit status: exit code: 0
Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: Loading track "Sambal"
Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: Track "Sambal" loaded
Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: onstart 1
Aug 08 00:10:26 LibreELEC sh[2237]: ALSA lib /home/chewitt/LibreELEC.80-images/build.LibreELEC-Generic.x86_64-8.0.2/alsa-lib-1.1.2/src/pcm/pcm_dmix.c:1041:(snd_pcm
_dmix_open) unable to open slave
Aug 08 00:10:26 LibreELEC sh[2237]: thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:329
Aug 08 00:10:26 LibreELEC sh[2237]: note: Run with `RUST_BACKTRACE=1` for a backtrace.
Display More
hello
I would like to install librespot but i'm a noob and i don't understand how to install the plugin...
someone can help me ?
thanks
From Kodi main menu, select Add-ons, install from repository, LibreELEC Add-ons, Services, Libtespot
Tried to run the librespot plugin, looks like wonderful work but both backends do not seem to work for me...
Tried the following to no avail:
- sound of Kodi itself temporarily set to PULSE
- set 'keep sound alive' to 'off'
This is someoutput after selecting the kodi backend with the above settings.
Code Display MoreAug 08 00:10:03 LibreELEC sh[2237]: INFO:librespot::audio_backend::alsa: Using alsa sink Aug 08 00:10:03 LibreELEC sh[2237]: INFO:librespot::session: Country: "NL" Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::util: Running librespot.onstart Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::util: Exit status: exit code: 0 Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: Loading track "Sambal" Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: Track "Sambal" loaded Aug 08 00:10:26 LibreELEC sh[2237]: INFO:librespot::player: onstart 1 Aug 08 00:10:26 LibreELEC sh[2237]: ALSA lib /home/chewitt/LibreELEC.80-images/build.LibreELEC-Generic.x86_64-8.0.2/alsa-lib-1.1.2/src/pcm/pcm_dmix.c:1041:(snd_pcm _dmix_open) unable to open slave Aug 08 00:10:26 LibreELEC sh[2237]: thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:329 Aug 08 00:10:26 LibreELEC sh[2237]: note: Run with `RUST_BACKTRACE=1` for a backtrace.
Are you sure you are using Kodi mode? Error messages pertain to ALSA...
Yea I know, I found that weird as well. But I have switched between kodi output en alsa output quite a number of times and kept getting the same ALSA error.
Might it be some error in configuration? If so, do you have any idea how to properly reset it? I tried uninstalling/reinstalling already, rebooting and resetting the config to default.
I will retry some settings again tonight.
From Kodi main menu, select Add-ons, install from repository, LibreELEC Add-ons, Services, Libtespot
Thank you
It's only for spotify premium users ?
Thank you
It's only for spotify premium users ?
The way I understand it: LibreSpot, the way its used in LibreElec, is an implementation of Spotify Connect. Spotify Connect requires Spotify premium.
The way I understand it: LibreSpot, the way its used in LibreElec, is an implementation of Spotify Connect. Spotify Connect requires Spotify premium.
yes, i think it's that.
Still have the same issue, it still reports that it is using the ALSA sink (even though I really set it to the kodi backend). Tried disabling, uninstall/reinstall ande ven removed the data from librespot in the addon data folder...
Am at a loss why it doesn't function.
(I censored my spotify username on purpose in the code below)
Aug 08 19:55:40 LibreELEC systemd[1]: Started librespot.
Aug 08 19:58:07 LibreELEC sh[1697]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=librespot>
Aug 08 19:58:07 LibreELEC librespot[1708]: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.
Aug 08 19:58:07 LibreELEC librespot[1708]: *** WARNING *** Please fix your application to use the native API of Avahi!
Aug 08 19:58:07 LibreELEC librespot[1708]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=librespot>
Aug 08 19:58:08 LibreELEC sh[1697]: INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-0d00.ap.spotify.com:4070"
Aug 08 19:58:08 LibreELEC sh[1697]: INFO:librespot::session: Authenticated as "**************" !
Aug 08 19:58:08 LibreELEC sh[1697]: INFO:librespot::session: Country: "NL"
Aug 08 19:58:08 LibreELEC sh[1697]: INFO:librespot::audio_backend::alsa: Using alsa sink
Aug 08 19:58:14 LibreELEC sh[1697]: INFO:librespot::util: Running librespot.onstart
Aug 08 19:58:14 LibreELEC sh[1697]: INFO:librespot::util: Exit status: exit code: 0
Aug 08 19:58:14 LibreELEC sh[1697]: INFO:librespot::player: Loading track "Sambal"
Aug 08 19:58:14 LibreELEC sh[1697]: INFO:librespot::player: Track "Sambal" loaded
Aug 08 19:58:14 LibreELEC sh[1697]: INFO:librespot::player: onstart 1
Aug 08 19:58:14 LibreELEC sh[1697]: ALSA lib /home/chewitt/LibreELEC.80-images/build.LibreELEC-Generic.x86_64-8.0.2/alsa-lib-1.1.2/src/pcm/pcm
_dmix.c:1041:(snd_pcm_dmix_open) unable to open slave
Aug 08 19:58:14 LibreELEC sh[1697]: thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option
.rs:329
Aug 08 19:58:14 LibreELEC sh[1697]: note: Run with `RUST_BACKTRACE=1` for a backtrace.
Display More
So I (kind of) figured out what the problem is. In kodi, I'm using multiple user profiles. On the master profile, the librespot addon works flawlessly (with the kodi backend), on the other user user profiles, it does not. Obviously I would like to be able to use this addon on other user profiles as well, but I am not familiar enough with user profiles in kodi to deduce what the difference is between the master profile and other user profiles.
If I can help out with any additional logs, please let me know!
First of all, thanks for this great addon!
It's almost working perfecly but I bumped on a small issue.
Sometimes GUI sounds or other media sounds are broken.
Sound from from librespot is working everytime, but librespot seems to influence other media sources.
More in detail:
1) Sometimes a movie starts without sound, switching the audio stream fixes this.
2) Sometimes GUI sounds are malfunctioning after watching a movie.
This only happens with some movies on a remote server (so it might be a timing issue as the connection is more slowly as local files)
When a movie starts without sound, I get logs as:
CAESinkALSA::Initialize - failed to initialize device "@"
Looking into the librespot code, I discovered that the audio sink get suspended on onPlayBackEnded/Stopped/Started.
Kodi will try to initialize the audio device just after this, So I guess that the audio device isn't quite ready yet and fails to initialize.
Commenting out the suspendSink('1') line for the above 3 calls fixes the issue for me. I'm not an expert, so this lines might be needed for another reason I'm not aware of?
I can reproduce this issue on RPI and Wetek Hub.
Another question, is it possible to keep librespot running when other media is playing? So that other media will be interrupted when we start to stream to librespot.
It is working here, but not at boot. I need to navigate to the plugin and disable/enable it.
Hey awiouy,
similar here. However on my side it happens, if I switch the profiles.
When I switch the profile from one profile to another, your service becomes inactive (my spotify app cannot find the kodi service). After disable/enable the addon, then it work again. Any idea why?
I will have a look at the comments/requests above as soon as I have the time.
My priority is to rebase the patches with current librespot master.
I will then try to implement avoiding sink stop .
I would be happy if a Rust developer would help me submitting code upstream, this for example.
As for issues when switching profile, please provide a log (journalctl -u service.librespot)
Firstly thanks for a great addon!
I have an issue with version 106, that may, or may not be related to to issues described above.
I'm using the lastest stable version of Libreelec, with an IQaudio DAC on a Rpi 2.
Everything worked with 105, but 106 wont work as intended.
I would prefer to use the Kodi as output, but when this option is selected, no audio will play - neither Spotify nor local files. If I choose Alsa, Spotify plays, but no other audio comes through.
The reason may be that I configured Pulseaudio to receive a Bluetooth signal - but as I wrote above, it worked in version 105, so something happened in this transition...
Furthermore, when I disable the addon version 106 the system freezes and I'm forced to do a hard reset. And for some reason (and this is really weird) at one point I had to uninstall the addon to get the audio back, as it seemed ibrespot was still running, even though the addon was disabled - but the reason for this could be the necessity of hard reset when disabling.
I very much hope, this addon will be working again soon Thanks for all the work!