Two layers, as the spikes' report settled: 1. `VoelinTheme`, a GPUI global (theme/tokens.rs): the 43 colour tokens of ui/theme.slint for light and dark (generated from the Slint file by a script, then checked by the test below), the backdrop gradient, and `Metrics`: the radii, spacing, type sizes, weights, control and shell sizes and the two durations at a text size factor (font-scale: the sidebar's `264 * max(1, scale)` and the top bar's `max(44, control + 8)` included). 2. gpui-component's `ThemeColor`, written on every change (theme/components.rs): the base of the report's table (background, foreground, border, input, ring, overlay; primary with hover, active and foreground from the client's accent; secondary and muted from surface-2 and its raised steps; gpui-component's "accent", which is a hover background, from surface-3; popover; list, table, sidebar, title and status bar, tabs, switch, slider, scrollbar, link, selection; danger, success, warning and info with a hover and active made by mixing and a text that is white or the window's ink, whichever contrasts more) and the 28 `button_*` fields a theme file would derive from them (without them the buttons keep the default theme's blue). The mixing, the WCAG contrast and `readable` are `Rgba` methods with tests. The window's background is bg-app; the backdrop and bg-rail stay in `VoelinTheme` (gpui-component has no rail, and GPUI's gradient has two stops against Slint's three: the swatch draws the first and the last and says so). The mode (`Choice`: system, light, dark) follows the window's appearance in `system` (`observe_window_appearance` calls `set_system_appearance`; a light or dark choice ignores the window) and sets the platform's window appearance where the platform draws the frame (macOS; a no-op elsewhere). The text size factor rewrites the metrics, the theme's font size (font-body) and radii. theme/slint_parity.rs reads ui/theme.slint at test time (`include_str!`) and compares every declaration of the `Theme` global with tokens.rs by name: the colours (dark and light), every length with the file's own arithmetic (a small evaluator of `*`, `+`, `max()` and token references) at four text sizes, the weights, durations, the font family and the backdrop's stops, and fails on a name on one side only or a declaration kind it does not know. A mutation check (accent, radius-md and the top bar's formula changed in tokens.rs) failed the tests with the names of the tokens, then was reverted. fonts.rs adds the five Inter TTFs of the Slint front end (`include_bytes!`) to GPUI's text system; the theme names the family. build.rs turns the 147 Lucide 1.48 SVGs of crates/voelin-ui/ui/assets/icons into a sorted table of `include_bytes!` (std only, no new dependency) that assets.rs serves as gpui-component's `icons/<name>.svg` before gpui-kit-assets' Lucide 1.43 catalogue (1,830 paths, which answers the rest and, as it does, an error for a path it lacks); a test checks that `mic.svg` is the client's, differs from the catalogue's, and that other icons fall through. Development switches (dev.rs): `VOELIN_OPEN=swatch`, `VOELIN_DEV_THEME= dark|light|system`, `VOELIN_FONT_SCALE`, `VOELIN_WINDOW_SIZE` (the Slint front end's names where they exist). swatch.rs is the page: the 43 colours in the groups of docs/ui.md's "Theme tokens" table with name and value (a test checks each token is in exactly one group), the backdrop, radii, spacing, the type scale, buttons, switches and checkboxes of gpui-component and 16 icons; it scrolls when the window is smaller. scripts/gpui-shot.sh makes the screenshot headless the way scripts/shots.sh does for Slint (xvfb-run, or GPUI_SHOT_HEADLESS=1 under headless.sh on NixOS; Wayland, the session bus and the XDG directories out of the environment), then closes the window with Alt+F4 and reports how the app ended. docs/ui/gpui-swatch-dark.png and -light.png are its output (Xvfb :97, openbox, lavapipe via wgpu's Vulkan backend, the debug binary, 1440x960, truecolour: a 256-colour reduction would change the tokens' values; the Slint pictures live in docs/screenshots/, the task asked for docs/ui/). Checked on Rust 1.95.0: fmt, clippy -D warnings --no-deps (all targets, the build script included), `cargo test -p voelin-gpui` 26 tests, cargo deny, `scripts/notices.sh --check`. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Voelin
Voelin is a TeamSpeak 3 / TeamSpeak 6 compatible voice client written in Rust, for desktop (Linux Wayland/X11, Windows, later macOS) and mobile (Android, later iOS).
It speaks the TeamSpeak client protocol itself (no official SDK). The protocol layer is a vendored fork of ReSpeak/tsclientlib.
Not affiliated with or endorsed by TeamSpeak Systems GmbH. "TeamSpeak" is a trademark of its owner.
Goals
| Feature | How |
|---|---|
| Global server chat | Native sendtextmessage targetmode=3 |
| Chat in channels without joining their voice channel | Relay through invisible ServerQuery sessions (companion gateway tsgw, or own query credentials). The protocol only delivers channel chat for the channel you are in. |
| Voice | Opus over the TS3 UDP protocol, echo cancellation, jitter buffer |
| See who is in voice channels without joining | Channel subscriptions when connected; invisible presence through the gateway or own query credentials |
| Watch and share screen with sound | TeamSpeak 6 servers only: WebRTC peer-to-peer streams signalled through the server |
See docs/architecture.md for the design and milestones.
Status
Done so far (milestones M0–M4 and the first part of M5 of the plan):
crates/proto/: vendored tsclientlib, modernised (TS6 fields and stream messages, faster off-thread Init1 puzzle,curve25519-dalek4, fuzzing fixes; see UPSTREAM.md)voelin-model(from VoelinProtocol, a git dependency): domain model, server flavor detection (TS3 / TS6) and capabilitiescrates/voelin-audio: Opus voice encoding, framing, resampling, WAV, jitter buffer/mixer, cpal devicescrates/voelin-store: SQLite store for identities, bookmarks, settings and chat history; keyring secretscrates/voelin-query: ServerQuery client over raw TCP, SSH and HTTP WebQuery (events, rate limiting, keepalive)crates/voelin-observer: invisible presence (events or polling) and channel-chat relays over ServerQuerycrates/voelin-gateway(tsgw) +voelin-gateway-proto: companion gateway for server admins. Users log in with their TeamSpeak identity and get presence, channel chat and history without joining voice, limited by their server permissions (admin guide)crates/voelin-core: client engine; sessions merge voice, gateway and query sources, route chat, run audio; chat history (stored on the device, synced with the gateway when a chat opens); the gateway's pins, reactions, topics, events, stream directory and administration; the media pipeline for streams (capture → VP8 + Opus → stream, stream → decoder)crates/voelin-ui(voelin): Slint desktop app: servers, channel tree with talking indicators, chat tabs (own channel via voice, other channels via relay), connect, observe invisibly (on selecting a server, through its gateway), mute, push-to-talk (in the window and as a global hotkey), audio settings with a level meter, per-client volume, and on TeamSpeak 6 streams: watch in a viewer, share the screen with sound. Desktop and phone layouts from one design system, dark and light themes, text size, emoji (docs/ui.md)crates/voelin-ui-vm: the view models and the app's state behind the UI, with no UI toolkit: engine state as plain rows and forms, chat formatting, the Twemoji archive, and what the settings pages and the Stream Studio decide;voelin-uiputs them on Slint windows (docs/ui.md)crates/voelin-gpui(voelin-gpui): the GPUI front end, under construction, on the same engine and view models as the Slint one, which stays the app until it reaches parity (a window that opens and closes so far; docs/ui.md)crates/voelin-stream: TeamSpeak 6 streams: stream commands and notifications, JSON signalling, WebRTC peers (str0m) with host and STUN candidates. A live test streams VP8 + Opus between two clients through a TS6 servertools/voelinctl: headless CLI: channel tree, chat, voice send/record, raw commands, stream events,query,observe(invisible presence),relay(channel chat without joining) andgateway(also through the engine with--engine: chat history, gateway requests, stream directory)dev/: TeamSpeak 3.13 and TeamSpeak 6 (6.0.0-beta13.1) servers;scripts/it-smoke.shchecks tree, server chat, channel chat, a voice tone round-trip, invisible presence, relay chat, the gateway, chat history sync, pins/reactions/topics and the stream directoryfuzz/: cargo-fuzz targets for packets, commands and the license chainandroid/+crates/voelin-android: the Android app (the same Slint UI in a NativeActivity, voice in a foreground service, screen sharing through MediaProjection, MediaCodec, Keystore passwords). It builds; it has not run on a device yet (docs/android.md)
Screen sharing works between our clients through a TeamSpeak 6 server (VP8 video, Opus audio); interop with the official TeamSpeak 6 client is not verified yet.
The UI (design system, desktop and phone layouts, emoji, how to add a screen) is described in
docs/ui.md. Screenshots with sample data (VOELIN_DEMO_UI=1):
| Server, chat and people in the channel | Watching a stream |
|---|---|
![]() |
![]() |
| Settings | Phone layout |
![]() |
![]() |
Try it
# Desktop app
cargo run -p voelin-ui --bin voelin
# The GPUI front end, under construction (Vulkan or OpenGL at run time)
cargo run -p voelin-gpui --release
# Local servers (use REGISTRY=mirror.gcr.io if Docker Hub rate-limits you)
docker compose -f dev/docker-compose.yml up -d
cargo run -p voelinctl -- connect 127.0.0.1:9987 tree # TeamSpeak 3
cargo run -p voelinctl -- connect 127.0.0.1:9988 tree # TeamSpeak 6
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick me repl # interactive chat
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick me voice send --tone 440
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick ear voice record out.wav
# Streams (TeamSpeak 6): share the test pattern (or --source x11), watch and decode it
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick eye stream watch --save-frame shot.png &
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick me stream start --synthetic --auto-accept
# Simulcast layers without an encoder; prints each viewer's layer, estimate and SRTP profile
cargo run -p voelinctl -- connect 127.0.0.1:9988 --nick me stream start --placeholder --auto-accept \
--layer 1.0:6000k --layer 0.5:1500k:min=800k
# ServerQuery (dev password voelin-dev-admin): invisible presence and relay chat
cargo run -p voelinctl -- observe ssh 127.0.0.1:10022 --secret voelin-dev-admin --allowlisted
cargo run -p voelinctl -- relay ssh 127.0.0.1:10022 --secret voelin-dev-admin --allowlisted --channel 1
# Gateway: users without voice, logging in with their identity
cargo run -p voelin-gateway -- --config dev/tsgw-ts6.toml &
cargo run -p voelinctl -- gateway ws://127.0.0.1:7788/v1 --identity <file> --presence --open channel:1
# ... through the engine: stored history synced with the gateway, then a request
cargo run -p voelinctl -- gateway ws://127.0.0.1:7788/v1 --identity <file> --engine \
--db /tmp/chat.db --chat channel:1 --older 1 --request '{"pins":{"target":{"kind":"channel","id":1}}}'
scripts/it-smoke.sh # all of the above, on both servers
Other commands: voelinctl identity new, voelinctl versions, voelinctl connect <addr> listen|chat|raw.
voelinctl --help lists all options.
Development switches of the desktop app (environment variables): VOELIN_DATA_DIR (database),
VOELIN_AUTOCONNECT=voice|observe, VOELIN_SCREENSHOT=<png> (with VOELIN_SCREENSHOT_DELAY),
VOELIN_WINDOW_SIZE=<w>x<h>, VOELIN_DEMO_UI=1 (sample servers and chat, no server needed),
VOELIN_DEMO_STREAM=1 (a local test stream in the viewer),
VOELIN_OPEN=home|settings[:<section>]|about|share|bookmark|emoji|client|tab:<tab> (comma-separated),
VOELIN_AUTOWATCH=1, VOELIN_AUTOSHARE=test-pattern; details in docs/ui.md.
Ready-made packages (Linux .tar.gz/.deb/Flatpak, Windows zip and installer, Android APK,
and the tsgw gateway for Linux servers) come from the release workflow (version tags, or run by
hand), and scripts/docker-build.sh builds the same ones locally in Docker: see
docs/building.md.
Building on Linux needs the ALSA headers (libasound2-dev), fontconfig and xkbcommon
headers for the UI (libfontconfig1-dev libxkbcommon-dev), plus CMake and a C compiler for
the bundled libopus; for streams also libvpx and PipeWire (see docs/media.md).
License
The vendored crates in crates/proto/ are MIT OR Apache-2.0 (upstream
LICENSE-MIT / LICENSE-APACHE are kept there). New crates are declared under
the same terms in Cargo.toml.
Third-party notices: THIRD_PARTY_NOTICES.md, generated from
Cargo.lock by scripts/notices.sh and shown in the app's About page. The UI toolkit,
Slint, is used under its royalty-free license, which requires an attribution in the
About page. The UI bundles the Inter font (SIL OFL 1.1), Lucide icons (ISC) and Twemoji
graphics (CC-BY 4.0); scripts/notices.sh appends their notices from about-assets.md.
Security issues: see SECURITY.md. Releases: docs/release.md.



