Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

librespot-golang

> 编程语言
Open source

Go port of librespot, the Open Source Spotify client library

191 stars0 likes1 views
WebsiteGitHub

About

Go port of librespot, the Open Source Spotify client library

librespot-golang

Introduction

librespot-golang is an opensource Golang library based on the librespot project, allowing you to control Spotify Connect devices, get metadata, and play music. It has itself been based on SpotControl, and its main goal is to provide a suitable replacement wfor the defunct libspotify.

This is still highly experimental and in development. Do not use it in production projects yet, as the API is incomplete and subject to heavy changes.

This fork contains changes that are more compatible with go.mod, while removing the Rust-esque package layout. It has not been tested thoroughly, though things do compile. Please open an issue if anything is broken.

Installation

This package can be installed using:

bash
go get github.com/librespot-org/librespot-golang/librespot

Usage

To use the package look at the example micro-controller (for Spotify Connect). For the CLI, install the main package:

bash
go get -u github.com/librespot-org/librespot-golang

Building for mobile

The package librespotmobile contains bindings suitable for use with Gomobile, which lets you use a subset of the librespot library on Android and iOS.

To get started, install gomobile, and simply run (for Android):

bash
cd $GOPATH/src/github.com/librespot-org/librespot-golang
gomobile init -ndk /path/to/android-ndk
gomobile bind librespotmobile

This will build you a file called librespotmobile.aar which you can include in your Android Studio project.

Compiling on nix:

bash
nix-shell -p gcc pkgconfig libvorbis libogg portaudio

To-Do's

  • Handling disconnections, timeouts, etc (overall failure tolerance)
  • Playlist management
  • Spotify Radio support

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Go

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言