Yet another open-source Spotify client, written in Go.
Create a config.yml file containing:
device_name: go-librespot
credentials:
type: user_pass
user_pass:
username: "<username>"
password: "<password>"Then, run:
go run ./cmd/daemonThe new device should appear in your Spotify Connect devices.
The daemon offers an API to control and/or monitor playback.
To enable this features add the following to your config.yml file:
server:
enabled: true
port: 3678For API documentation see here.
The daemon can be easily built with:
go build -o go-librespot-daemon ./cmd/daemonTo crosscompile for different architectures the GOOS and GOARCH environment variables can be used.
To recompile protobuf definitions use:
protoc --go_out=proto --go_opt module=go-librespot/proto -I proto proto/*.proto