Repository navigation
Installation
Several ways in, depending on what you have. If you are on Linux and want the short version, Getting Started on Linux does all of this in one command; Getting Started on Windows is the same for Windows.
| You have | Take |
|---|---|
| Debian, Ubuntu, Raspberry Pi OS, Fedora or Arch | The .deb, .rpm or .pkg.tar.zst package
|
| Any other Linux box | The linux-x86_64, linux-arm64, linux-armv7 or linux-armv6 tarball |
| An Apple-silicon Mac | The macos-arm64 installer .pkg, or the tarball |
| A Windows 10 1809+ or Windows 11 PC | The windows-x86_64 zip |
| Anything else | Build from source |
Everything published is on the
Releases page, and every release
carries all seven archives and the Linux packages beside them. Per-commit builds of
unreleased work are under the repository's Actions tab and expire after 14 days — every
archive and package but linux-armv6's there, that leg being built by a workflow of its own
rather than on every push. See
the Actions tab.
Every release carries native packages for each Linux architecture, built from the same binary as the tarball. They are named like the tarballs, after the build rather than the distribution's own architecture name, so the two 32-bit ARM builds never collide:
sendspin-cli-<version>-<leg>.deb
sendspin-cli-<version>-<leg>.rpm
sendspin-cli-<version>-<leg>.pkg.tar.zst
| Leg | .deb |
.rpm |
.pkg.tar.zst |
|---|---|---|---|
linux-x86_64 |
amd64: Debian trixie, Ubuntu 24.04 and later | x86_64: current Fedora | x86_64: Arch Linux |
linux-arm64 |
arm64: Debian trixie, Ubuntu 24.04, 64-bit Raspberry Pi OS trixie | aarch64: current Fedora | aarch64: Arch Linux ARM |
linux-armv7 |
armhf: Debian trixie on an ARMv7 board | armv7hl (untested) | armv7h: Arch Linux ARM |
linux-armv6 |
armhf: 32-bit Raspberry Pi OS bookworm and trixie, any Pi | — | armv6h (untested) |
The x86_64 and arm64 packages are installed, run and removed on clean Debian trixie, Ubuntu
24.04 and Fedora (and Arch, on x86_64) on every CI build. The linux-armv7 deb needs glibc
2.38, so bookworm refuses it on its libc6 dependency rather than installing a binary that
cannot load; a 32-bit Raspberry Pi OS takes the linux-armv6 deb instead, which runs on every
Pi. Raspberry Pi OS calls itself armhf on both, so dpkg cannot tell the two apart for you.
VERSION=1.0.1
LEG=linux-x86_64 # or linux-arm64, linux-armv7, linux-armv6
BASE=https://github.com/Sendspin/sendspin-cpp-cli/releases/download/v$VERSIONThen, with the package for your distribution, verify it and install:
# Debian, Ubuntu, Raspberry Pi OS
curl -fLO "$BASE/sendspin-cli-$VERSION-$LEG.deb" -O "$BASE/SHA256SUMS"
sha256sum --ignore-missing -c SHA256SUMS
sudo apt install "./sendspin-cli-$VERSION-$LEG.deb"
# Fedora
curl -fLO "$BASE/sendspin-cli-$VERSION-$LEG.rpm" -O "$BASE/SHA256SUMS"
sha256sum --ignore-missing -c SHA256SUMS
sudo dnf install "./sendspin-cli-$VERSION-$LEG.rpm"
# Arch Linux, Arch Linux ARM
curl -fLO "$BASE/sendspin-cli-$VERSION-$LEG.pkg.tar.zst" -O "$BASE/SHA256SUMS"
sha256sum --ignore-missing -c SHA256SUMS
sudo pacman -U "./sendspin-cli-$VERSION-$LEG.pkg.tar.zst"apt, dnf and pacman pull in the runtime libraries the binary needs. Installing creates the
sendspin-cli account, installs /etc/sendspin-cli.conf with every line commented out, and
reloads systemd, but does not enable or start the service. Configure it first:
sendspin-cli -l # find a device
sudoedit /etc/sendspin-cli.conf # output = hw:1,0; optionally name, allow-unpaired
sudo systemctl enable --now sendspin-cliName a card for output, not default: the system unit has no session for ALSA's default
to follow. Configuration covers every key, and
Pairing a Player covers what allow-unpaired changes. To follow your desktop
session's sound server instead, run the user unit with ~/.config/sendspin-cli/config and
systemctl --user; see Running as a Service.
Upgrades keep your edits to /etc/sendspin-cli.conf. If the file already existed before
the package was first installed, it is kept too: dpkg asks which to keep (the default, N,
keeps yours; unattended installs need -o Dpkg::Options::=--force-confold), dnf writes the
packaged one beside it as .rpmnew and pacman as .pacnew.
Removing the package stops and disables the unit and leaves /var/lib/sendspin-cli and the
account in place; apt remove also keeps /etc/sendspin-cli.conf (apt purge deletes it),
and dnf and pacman save an edited one as .rpmsave or .pacsave. There is no apt or dnf
repository yet, so upgrades are the same install with the newer package, followed by
sudo systemctl restart sendspin-cli: an upgrade leaves the running player alone.
Packages install under /usr; the tarball and the getting-started script install under
/usr/local. Use one or the other on a machine, not both: the /usr/local unit shadows the
packaged one, so a package installed over a tarball install would still run the old binary.
Run scripts/uninstall_linux.sh (or remove the tarball's files) before switching to a package.
Every tarball is a staged cmake --install payload, which means every path under usr/
is the path the file installs to (the Windows zip is flat instead; see Windows):
sendspin-cli-1.0.1-linux-arm64/
├── BUILD-INFO.txt # what this build is, and what it needs
└── usr/local/
├── bin/sendspin-cli
├── lib/systemd/system/sendspin-cli.service # Linux only
├── lib/systemd/user/sendspin-cli.service # Linux only
├── lib/sysusers.d/sendspin-cli.conf # Linux only
└── share/doc/sendspin-cli/
├── README.md
├── contributors.md
├── LICENSE
└── sendspin-cli.conf.example
The prefix is baked in at build time — the unit's ExecStart is an absolute
/usr/local/bin/sendspin-cli — so a binary moved somewhere else leaves the unit pointing at
nothing. Read BUILD-INFO.txt first; it names the runtime packages that build needs.
# 1. Take the archive for this machine's architecture, and the checksums
VERSION=1.0.1
# The *userland*, not `uname -m`: a 32-bit Raspberry Pi OS on a Pi 4 runs a 64-bit kernel
# and reports aarch64, and the arm64 archive will not load there.
case "$(dpkg --print-architecture)" in
amd64) LEG=linux-x86_64 ;;
arm64) LEG=linux-arm64 ;;
armhf)
# An ARMv6 board reports armhf too, and it takes an archive of its own: the ARMv7 one's
# instructions are illegal on an ARM1176.
if [ "$(uname -m)" = armv6l ]; then LEG=linux-armv6; else LEG=linux-armv7; fi ;;
*) echo 'no release is built for this architecture'; exit 1 ;;
esac
BASE=https://github.com/Sendspin/sendspin-cpp-cli/releases/download/v$VERSION
curl -fLO "$BASE/sendspin-cli-$VERSION-$LEG.tar.gz"
curl -fLO "$BASE/SHA256SUMS"
# 2. Verify before unpacking anything
sha256sum --ignore-missing -c SHA256SUMS
# 3. Install
sudo tar -xzf "sendspin-cli-$VERSION-$LEG.tar.gz" --strip-components=1 -C / \
"sendspin-cli-$VERSION-$LEG/usr"
sudo systemd-sysusers
sudo systemctl daemon-reloadsystemd-sysusers is the one thing unpacking cannot do for itself. The unit runs as an
unprivileged sendspin-cli account, the archive carries the declaration for it at
usr/local/lib/sysusers.d/sendspin-cli.conf, and a tarball has no postinst to turn one into
the other. It is idempotent, and without it the unit reports 217/USER rather than starting.
See Running as a Service.
--ignore-missing because SHA256SUMS covers every archive the release carries and you
have taken one of them; without it the other four are reported as failures. It is not a
way of passing with nothing checked — sha256sum still exits non-zero if the flag leaves
it with no file to verify.
Naming <name>/usr as the member to extract is what leaves BUILD-INFO.txt in the
archive instead of writing it to /. --strip-components=1 drops the archive's own top
level so the rest lands where it belongs.
Runtime packages, if the binary will not start — ldd /usr/local/bin/sendspin-cli | grep 'not found'
names what is missing, and the getting-started script installs these for you:
# Debian / Ubuntu; libasound2 and libpipewire-0.3-0 before the t64 renames
sudo apt install libasound2t64 libportaudio2 libpulse0 libpipewire-0.3-0t64 libavahi-compat-libdnssd1
# Fedora / RHEL
sudo dnf install alsa-lib portaudio pulseaudio-libs pipewire-libs avahi-compat-libdns_sd
# Arch
sudo pacman -S --needed alsa-lib portaudio libpulse libpipewire avahiTo run it without installing anywhere, unpack it and use it in place:
tar -xzf sendspin-cli-1.0.1-linux-arm64.tar.gz
./sendspin-cli-1.0.1-linux-arm64/usr/local/bin/sendspin-cli --helpThen Running as a Service for the systemd half.
The installer is the easier of the two:
sudo installer -pkg sendspin-cli-1.0.1-macos-arm64.pkg -target /
sendspin-cli --versionA released macOS build needs nothing installed alongside it. Audio goes out through
CoreAudio and discovery through Bonjour, both part of macOS, so there is no Homebrew step
and otool -L on the shipped binary shows only /usr/lib and /System.
It refuses a Mac it cannot run on — the architectures are read off the binary at build time
and declared in the package — so an Intel Mac is turned away rather than told the install
worked. To undo it: remove the four files and
sudo pkgutil --forget io.github.chrisuthe.sendspin-cli.
Or take the tarball, and unpack it from a terminal, not in Finder:
tar -xzf sendspin-cli-1.0.1-macos-arm64.tar.gz
./sendspin-cli-1.0.1-macos-arm64/usr/local/bin/sendspin-cli --versionNeither the binary nor the .pkg is signed or notarized. They are ad-hoc signed — the
minimum an arm64 Mach-O needs to execute at all — so Gatekeeper has no developer identity
to check. Whether you notice depends entirely on the quarantine flag, which tar and
unzip do not propagate and Finder's Archive Utility does. If macOS refuses it:
xattr -d com.apple.quarantine ./sendspin-cli-1.0.1-macos-arm64/usr/local/bin/sendspin-cliA Developer ID signature and notarization are owed and tracked as roadmap item 7, so
sudo installer and the tarball are both affected until that lands.
There is no launchd job in the payload. On macOS the player runs from a shell or under a launch agent you write.
The zip holds one folder: sendspin-cli.exe, BUILD-INFO.txt, README.md,
contributors.md, LICENSE and sendspin-cli.conf.example. It needs nothing installed
alongside it — PortAudio is linked in, and mDNS is Windows' own.
Getting Started on Windows installs it for you, verified and starting at logon. By hand:
Get-FileHash .\sendspin-cli-1.0.1-windows-x86_64.zip -Algorithm SHA256 # compare with SHA256SUMS
Expand-Archive .\sendspin-cli-1.0.1-windows-x86_64.zip .
Get-ChildItem .\sendspin-cli-1.0.1-windows-x86_64 | Unblock-File
.\sendspin-cli-1.0.1-windows-x86_64\sendspin-cli.exe --versionThe binary is not signed, so SmartScreen may warn the first time it runs; that is what
checking it against SHA256SUMS is for. There is no Windows service in the payload: the
guided installer starts it at logon from a scheduled task instead.
The Pi takes the linux-arm64 archive on a 64-bit OS and the linux-armv7 one on a 32-bit
OS, like any other Linux host. An ARMv6 board — a Pi Zero, a Pi Zero W, an original Pi — takes
linux-armv6, which is built for an ARM1176 and, unlike the others, loads on bookworm as well
as trixie. See
Getting Started on a Raspberry Pi.
For an architecture with no release — an Intel Mac, anything CI does not build — or to build against a different version of the library.
sudo apt install pkg-config libasound2-dev portaudio19-dev libavahi-compat-libdnssd-dev # Debian / Ubuntu
sudo dnf install pkgconf alsa-lib-devel portaudio-devel avahi-compat-libdns_sd-devel # Fedora / RHEL
# macOS needs nothing: CoreAudio and Bonjour are part of the system. For the optional
# PortAudio backend as well, `brew install portaudio pkgconf`.
git clone https://github.com/Sendspin/sendspin-cpp-cli.git
cd sendspin-cpp-cli
cmake -B build
cmake --build build
./build/sendspin-cli --helpOn Windows, build with clang-cl from a Visual Studio developer prompt with the "C++ Clang tools for Windows" component installed; PortAudio is built from source and mDNS needs nothing:
cmake -B build -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
cmake --build build
.\build\sendspin-cli.exe --helpNeeds CMake ≥ 3.16, a C++20 compiler, and network access on the first configure —
sendspin-cpp is pulled in with FetchContent at a pinned tag and fetches its own
dependencies in turn.
A build with no network access, e.g. for distro packaging, hands CMake a local copy of
each fetched dependency with FETCHCONTENT_SOURCE_DIR_<NAME>, and
FETCHCONTENT_FULLYDISCONNECTED=ON makes any it was not given fail rather than download:
| Variable | Repository | Tag |
|---|---|---|
FETCHCONTENT_SOURCE_DIR_SENDSPIN |
github.com/Sendspin/sendspin-cpp |
SENDSPIN_GIT_TAG in CMakeLists.txt
|
FETCHCONTENT_SOURCE_DIR_ARDUINOJSON |
github.com/bblanchon/ArduinoJson |
as pinned in sendspin-cpp's cmake/host.cmake
|
FETCHCONTENT_SOURCE_DIR_MICRO_FLAC |
github.com/esphome-libs/micro-flac, with its submodules |
as pinned in sendspin-cpp's cmake/host.cmake
|
FETCHCONTENT_SOURCE_DIR_MICRO_OPUS |
github.com/esphome-libs/micro-opus, with its submodules |
as pinned in sendspin-cpp's cmake/host.cmake
|
FETCHCONTENT_SOURCE_DIR_IXWEBSOCKET |
github.com/machinezone/IXWebSocket |
as pinned in sendspin-cpp's cmake/host.cmake
|
FETCHCONTENT_SOURCE_DIR_NOISE_C |
github.com/esphome-libs/noise-c |
as pinned in sendspin-cpp's cmake/host.cmake
|
FETCHCONTENT_SOURCE_DIR_GOOGLETEST |
github.com/google/googletest |
GOOGLETEST_GIT_TAG in CMakeLists.txt; not needed with -DSENDSPIN_CLI_BUILD_TESTS=OFF
|
FETCHCONTENT_SOURCE_DIR_PORTAUDIO |
github.com/PortAudio/portaudio |
Windows only, v19.7.0
|
cmake -B build -DFETCHCONTENT_FULLYDISCONNECTED=ON \
-DFETCHCONTENT_SOURCE_DIR_SENDSPIN=/src/sendspin-cpp \
-DFETCHCONTENT_SOURCE_DIR_ARDUINOJSON=/src/ArduinoJson \
-DFETCHCONTENT_SOURCE_DIR_MICRO_FLAC=/src/micro-flac \
-DFETCHCONTENT_SOURCE_DIR_MICRO_OPUS=/src/micro-opus \
-DFETCHCONTENT_SOURCE_DIR_IXWEBSOCKET=/src/IXWebSocket \
-DFETCHCONTENT_SOURCE_DIR_NOISE_C=/src/noise-c \
-DSENDSPIN_CLI_BUILD_TESTS=OFF
cmake --build buildsendspin-cpp installs no CMake package config yet, so a system-installed copy of the library cannot stand in for the source tree.
The audio backends and mDNS are optional and auto-detected, so read the configure
output rather than assuming; a missing -dev package does not fail a configure, it just
produces a binary that cannot do that thing:
-- sendspin-cli audio backends: null, stdout, alsa, portaudio
-- sendspin-cli mDNS: dns_sd (/usr/lib/aarch64-linux-gnu/libdns_sd.so)
To install what you built:
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local # the prefix is chosen HERE
cmake --build build
sudo cmake --install build --component sendspin-cli--component sendspin-cli is not garnish — without it, cmake --install also stages 143
files belonging to a fetched dependency. The prefix is fixed at configure time because
the unit's ExecStart names it absolutely, so reconfigure rather than passing
--install --prefix. Building from source is covered in
contributors.md.
- Configuration — pick an output device and make it stick
- Running as a Service — the systemd unit
- Controlling the Player — drive it from its own host
Get it running
Use it
- Configuration
- Pairing a Player
- Controlling the Player
- Using the TUI
- Running as a Service
- Advanced Usage
When it misbehaves