Spotify clients
#1
I successfully build librespot. (https://github.com/librespot-org/librespot) I just followed the normal building process but I also had to install cargo. I am using a UBtouch Edition. (You will need a Spotify Premium account in order to use it)

Edit: I tried installing it just using cargo install but I got an error that way. So I recommend building it like I did.

My experience with building it:

I used ssh and built everything on my phone. Remember that building takes much time, so make sure that your phone receives at least 0.5A during the whole process and has at least a third of the battery capacity left. With 0.5A your battery will only drain slowly. The device will get very hot so I recommend not using a case, opening the back plate, keeping it inside in the shade by room temperature and on a flat surface.

After building I was able to start playback by selecting it as a speaker using Spotify Connect on my desktop. (I guess it should be able from any other normal spotify client. I didn't have any problem with the playback when I plugged in headphones and when I unplugged them again. But if you accept a call while using librespot all audio playblack will stop and your audio won't work. I was just able to make calls again and use everything normally again after I had rebooted my PinePhone.

Librespot needs to run the whole time in the terminal. While playing music it uses ~18% CPU according to top. Just being idle uses about 7% CPU. But while librespot is not playing music the speakers will be on with a high pitched noise.

Here's how I built it:

Code:
sudo apt update
sudo apt install build-essential libasound2-dev git cargo
mkdir build
cd build
git clone https://github.com/librespot-org/librespot.git
cd librespot
cargo build --release

The built files will be in ~/build/librespot/target/release

So in order to run it you need to start librespot from there, move it to where you want to use it or create a symbolic link to it.

Here are the options for running it: https://github.com/librespot-org/librespot/wiki/Options

If you want to update you need to build it again.


Messages In This Thread
Spotify clients - by vicky - 06-27-2020, 08:58 AM
RE: Spotify client (Spotify Connect) - by vicky - 06-29-2020, 04:35 PM
RE: Spotify clients - by Tristan42 - 08-05-2020, 06:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot install spotify, librespot or mopidy Gon 3 4,315 06-18-2021, 06:53 AM
Last Post: Gon
  best options for email clients arturo2bodegas 6 8,902 08-05-2020, 09:30 AM
Last Post: arturo2bodegas

Forum Jump:


Users browsing this thread: 2 Guest(s)