百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

librespot-golang

> 编程语言
开源

前往 librespot 端口, 开源 Spotify 客户端库

191 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

前往 librespot 端口, 开源 Spotify 客户端库

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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