Tune

Documentation

Tune Bridge

Turn any USB DAC into a network audio endpoint. Bit-perfect, multi-room, open-source.

Overview

What is Tune Bridge?

Tune Bridge is a lightweight audio receiver that connects to your USB DAC and receives high-resolution audio from a Tune server over the network using the OAAT protocol. Think of it as Roon Bridge, but open-source.

It supports PCM up to 768kHz/32-bit, native DSD up to DSD512 depending on the DAC (see DSD), FLAC transport, gapless playback, and synchronized multi-room with sub-millisecond accuracy.

Tune Bridge is a single binary (~8 MB) with zero dependencies. Install it on a Raspberry Pi with a USB DAC and you have a high-end network streamer.

Requirements

  • A Tune server running on your network (v0.8.0+)
  • A USB DAC connected to the device running Tune Bridge
  • Same LAN as the Tune server (wired Ethernet recommended for multi-room)

Supported platforms:

PlatformArchitectureTested On
Linux (arm64)aarch64Raspberry Pi 4 (Debian 13, I2S DAC)
Linux (x86_64)x86_64Ubuntu, Debian, Fedora
macOS (Apple Silicon)aarch64M1/M2/M3/M4 Macs
macOS (Intel)x86_642015+ Macs

On Raspberry Pi, the setup tried so far is a Raspberry Pi 4 running Debian 13 with an I2S DAC (I-Sabre Q2M). DietPi and USB DACs are not validated yet.

Raspberry Pi Installation

The recommended setup for audiophile use. A Raspberry Pi 4 with a USB DAC provides excellent audio quality at minimal cost.

1. Download the binary

# Download the latest release for ARM64 Linux
curl -L https://github.com/Tune-Audio/oaat/releases/download/v0.2.7/tune-bridge-v0.2.7-aarch64-unknown-linux-gnu.tar.gz -o tune-bridge.tar.gz
tar xzf tune-bridge.tar.gz
sudo mv tune-bridge /usr/local/bin/
chmod +x /usr/local/bin/tune-bridge

2. List audio devices

aplay -l
tune-bridge endpoint --list-devices

3. Start Tune Bridge

tune-bridge endpoint --name "Living Room DAC" --audio-device "plughw:CARD=D10,DEV=0"

4. Install as a systemd service

# The service user needs access to the sound card
sudo usermod -aG audio pi

sudo tee /etc/systemd/system/tune-bridge.service > /dev/null << 'EOF'
[Unit]
Description=Tune Bridge
After=network.target sound.target

[Service]
Type=simple
User=pi
ExecStart=/usr/local/bin/tune-bridge endpoint --name "Living Room DAC" --audio-device "plughw:CARD=D10,DEV=0"
Restart=on-failure
RestartSec=3

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now tune-bridge

Do not add --daemon to ExecStart: with Type=simple, systemd itself runs Tune Bridge in the background. --daemon makes the process fork and exit, so systemd believes the service has stopped and restarts it in a loop. Replace pi with the user that runs the service (for example dietpi on DietPi), and the device name with yours (see Choosing the audio output).

macOS Installation

# Apple Silicon (M1/M2/M3/M4)
curl -L https://github.com/Tune-Audio/oaat/releases/download/v0.2.7/tune-bridge-v0.2.7-aarch64-apple-darwin.tar.gz -o tune-bridge.tar.gz

# Intel
curl -L https://github.com/Tune-Audio/oaat/releases/download/v0.2.7/tune-bridge-v0.2.7-x86_64-apple-darwin.tar.gz -o tune-bridge.tar.gz

tar xzf tune-bridge.tar.gz
sudo mv tune-bridge /usr/local/bin/

# Start
tune-bridge endpoint --name "My Mac DAC"

Linux (x86) Installation

curl -L https://github.com/Tune-Audio/oaat/releases/download/v0.2.7/tune-bridge-v0.2.7-x86_64-unknown-linux-gnu.tar.gz -o tune-bridge.tar.gz
tar xzf tune-bridge.tar.gz
sudo mv tune-bridge /usr/local/bin/

# Install ALSA development libraries (if not already installed)
sudo apt-get install -y libasound2-dev

# Start
tune-bridge endpoint --name "My DAC" --audio-device "sysdefault:CARD=D10"

Configuration

Tune Bridge can be configured via command-line flags or a TOML config file.

# Create config file
mkdir -p ~/.config/tune-bridge
cat > ~/.config/tune-bridge/config.toml << 'EOF'
[endpoint]
name = "Living Room DAC"
port = 9740
audio_device = "plughw:CARD=D10,DEV=0"

[capabilities]
pcm_max_rate = 384000
pcm_max_bits = 32
flac = true
dsd = true    # native DSD, probed on the DAC (see the DSD section); false = the server converts DSD to PCM
channels_max = 2

[dac]
hardware_volume = false
EOF

# Start with config
tune-bridge endpoint --config ~/.config/tune-bridge/config.toml

Command-line flags:

FlagDescriptionDefault
--nameDisplay name (shown in Tune)Hostname
--portTCP control port9740
--audio-deviceAudio device name. On Linux: hw:, plughw:, default, sysdefault:Detected DAC, otherwise default (Linux, v0.2.7)
--daemonFork to the background (not under systemd)false
--dsdAdvertise and play native DSD, up to the highest rate the DAC accepts (DSD512 max, ALSA DSD_U32_BE)false
--tlsEnable TLS 1.3 (self-signed)false
--configPath to TOML config filenone
--list-devicesList audio devices and exit—
--no-web-uiDisable the web status dashboardfalse

Choosing the audio output

On Linux, list the sound cards with aplay -l, then pass the card name and device number to --audio-device (or to audio_device in the [endpoint] section of the config file). Accepted names start with hw:, plughw:, default or sysdefault:. Any other name is replaced by default, and the refused name is logged.

aplay -l
# card 1: D10 [D10], device 0: USB Audio [USB Audio]
# -> card name: D10, device number: 0

tune-bridge endpoint --name "Living Room DAC" --audio-device "plughw:CARD=D10,DEV=0"

In the current version (v0.2.7), without --audio-device, Tune Bridge uses the DAC it detects: a USB DAC first, then an I2S card whose name contains DAC, never HDMI. If there is no candidate, or several ambiguous cards, the output stays on default. The log shows audio device auto-detected device=…. When the device has several sound cards, set --audio-device.

With plughw:, ALSA converts the format or sample rate when the DAC does not accept them as sent. hw: opens the card directly, without any conversion.

DSD

Native DSD is off by default. Enable it with --dsd, or with dsd = true in the [capabilities] section of the config file.

tune-bridge endpoint --name "Living Room DAC" --audio-device "plughw:CARD=D10,DEV=0" --dsd

In v0.2.7, with --dsd, Tune Bridge probes the DAC at startup and advertises the highest native DSD rate the DAC accepts, up to DSD512, in the ALSA format DSD_U32_BE (no DoP). If the probe fails, or if the output is default, it advertises DSD64. The log shows native DSD rates probed dsd_max=…. For DSD it opens the card in hw: mode: a plughw: or sysdefault:CARD= name is rewritten to hw:, and default stays default. The DAC must accept DSD_U32_BE on that device. When --dsd is not set, the Tune server converts all DSD to PCM.

Not yet tried on a real USB DAC, nor in DSD512.

Multi-Room Setup

With OAAT v0.2.7, multi-room is fully dynamic. You can add or remove endpoints while music is playing, set per-device volume, and monitor endpoint health.

1. Start multiple Tune Bridge instances

# On Raspberry Pi in the living room
tune-bridge endpoint --name "Living Room" --daemon

# On Raspberry Pi in the kitchen
tune-bridge endpoint --name "Kitchen" --daemon

# On a Mac in the bedroom
tune-bridge endpoint --name "Bedroom"

2. Create a group in Tune

Open the Tune web client → Zone Manager → OAAT Multi-Room Groups → New Group. Add the endpoints by their IP address and port. Audio will be synchronized across all endpoints with sub-millisecond accuracy.

3. Per-device volume

Each endpoint has an individual volume slider in the zone manager. The master volume controls all endpoints; per-device offsets let you balance rooms (e.g., kitchen louder than bedroom).

Web Status UI

Each Tune Bridge instance serves a built-in web dashboard at http://<bridge-ip>:9741. It shows:

  • Current playback status (track, artist, album, artwork)
  • Audio format (sample rate, bit depth, codec)
  • Connected controller name
  • Audio device selection (switch DACs without restart)
  • Volume level

Troubleshooting

Tune Bridge not discovered

  • Ensure both devices are on the same subnet
  • Check that mDNS (port 5353 UDP) is not blocked by a firewall
  • Try connecting directly: in Tune, add the endpoint manually by IP

No audio output

  • Run tune-bridge endpoint --list-devices to verify your DAC is detected
  • On Linux, check ALSA permissions: sudo usermod -aG audio $USER
  • Try specifying the device explicitly with --audio-device

Diagnostics

  • tune-bridge --version: the installed version, to quote in any bug report
  • aplay -l: the sound cards and devices that ALSA sees
  • cat /proc/asound/cardN/pcm0p/sub0/hw_params during playback (N = card number): the format, sample rate and channels actually sent to the DAC
  • aplay -D hw:CARD=D10,DEV=0 --dump-hw-params /dev/zero, with Tune Bridge stopped: the formats and sample rates the DAC accepts (Ctrl+C to stop)

Multi-room sync issues

  • Use wired Ethernet for best sync accuracy (< 100 us)
  • Wi-Fi adds jitter — expect 2-5 ms sync accuracy
  • Check clock sync health in the web UI dashboard

API Reference

OAAT group management is available via the Tune server REST API:

MethodEndpointDescription
GET/api/v1/zone-manager/oaat-groupsList all OAAT groups
POST/api/v1/zone-manager/oaat-groupsCreate a new group
GET/api/v1/zone-manager/oaat-groups/:idGet group status (endpoints, volume, streaming state)
DELETE/api/v1/zone-manager/oaat-groups/:idDelete a group
POST/api/v1/zone-manager/oaat-groups/:id/endpointsAdd endpoint (late-join)
DELETE/api/v1/zone-manager/oaat-groups/:id/endpoints/:ep_idRemove endpoint
PUT/api/v1/zone-manager/oaat-groups/:id/volumeSet master volume
PUT/api/v1/zone-manager/oaat-groups/:id/endpoints/:ep_id/volumeSet per-device volume
# Example: create a group
curl -X POST http://tune-server:8888/api/v1/zone-manager/oaat-groups \
  -H "Content-Type: application/json" \
  -d '{"name": "Downstairs", "endpoints": [
    {"host": "192.168.1.50", "port": 9740},
    {"host": "192.168.1.51", "port": 9740}
  ]}'

# Example: add endpoint to existing group (late-join)
curl -X POST http://tune-server:8888/api/v1/zone-manager/oaat-groups/oaat-mr-123/endpoints \
  -H "Content-Type: application/json" \
  -d '{"host": "192.168.1.52", "port": 9740}'

# Example: per-device volume
curl -X PUT http://tune-server:8888/api/v1/zone-manager/oaat-groups/oaat-mr-123/endpoints/abc-def/volume \
  -H "Content-Type: application/json" \
  -d '{"level": 60}'

Open Source

Tune Bridge and the OAAT protocol are open-source under the Apache 2.0 license. Contributions welcome.