Streams drives one connection's TS6 streams without doing connection IO: it takes stream notifications and app decisions, owns the str0m peers and queues requests (to send as commands) and events. - StreamerSession: setupstream, join requests (auto-accept or ask the app), one peer per viewer with the offer in respondjoinstreamrequest, answers and trickled candidates, withdrawal, reconnect (new offer as reconnectOffer), kick, stop (also before the stream went live), merged keyframe requests, frame fan-out to connected viewers - ViewerSession: joinstreamrequest, answer the offer from the response or an offer/reconnectOffer signal, candidates, denial, stop, removal, leave, reconnect after a lost connection (up to three times) - StreamDirectory: streams in the channel from notifications and client_is_streaming - FrameSource + SyntheticSource: decodable 1x1 VP8 keyframes (padded) and Opus silence in real time, for tests and tsctl - Peer: poll_event for driving many peers from one task; trickled local candidates carry the bundle mid Transcript unit tests and an end-to-end test through a fake relay server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
teamspeak_client_rs
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; the product name of this client is still to be decided.
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)crates/tsc-model: server flavor detection (TS3 / TS6) and capabilitiescrates/tsc-audio: Opus voice encoding, framing, resampling, WAV, jitter buffer/mixer, cpal devicescrates/tsc-store: SQLite store for identities, bookmarks, settings and chat history; keyring secretscrates/tsc-query: ServerQuery client over raw TCP, SSH and HTTP WebQuery (events, rate limiting, keepalive)crates/tsc-observer: invisible presence (events or polling) and channel-chat relays over ServerQuerycrates/tsc-gateway(tsgw) +tsc-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/tsc-core: client engine; sessions merge voice, gateway and query sources, route chat, run audiocrates/tsc-ui(tsc-desktop): Slint desktop app: servers, channel tree with talking indicators, chat tabs (own channel via voice, other channels via relay), connect / observe invisibly, mute, push-to-talkcrates/tsc-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/tsctl: headless CLI: channel tree, chat, voice send/record, raw commands, stream events,query,observe(invisible presence),relay(channel chat without joining) andgatewaydev/: 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 and the gateway on bothfuzz/: cargo-fuzz targets for packets, commands and the license chain
Screen sharing has its protocol and transport layer (tsc-stream); capture, codecs and the UI
for it are in progress. No Android build yet.
| Connected with voice | Observing invisibly through the gateway |
|---|---|
![]() |
![]() |
Try it
# Desktop app
cargo run -p tsc-ui --bin tsc-desktop
# 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 tsctl -- connect 127.0.0.1:9987 tree # TeamSpeak 3
cargo run -p tsctl -- connect 127.0.0.1:9988 tree # TeamSpeak 6
cargo run -p tsctl -- connect 127.0.0.1:9988 --nick me repl # interactive chat
cargo run -p tsctl -- connect 127.0.0.1:9988 --nick me voice send --tone 440
cargo run -p tsctl -- connect 127.0.0.1:9988 --nick ear voice record out.wav
# ServerQuery (dev password tsc-dev-admin): invisible presence and relay chat
cargo run -p tsctl -- observe ssh 127.0.0.1:10022 --secret tsc-dev-admin --allowlisted
cargo run -p tsctl -- relay ssh 127.0.0.1:10022 --secret tsc-dev-admin --allowlisted --channel 1
# Gateway: users without voice, logging in with their identity
cargo run -p tsc-gateway -- --config dev/tsgw-ts6.toml &
cargo run -p tsctl -- gateway ws://127.0.0.1:7788/v1 --identity <file> --presence --open channel:1
scripts/it-smoke.sh # all of the above, on both servers
Other commands: tsctl identity new, tsctl versions, tsctl connect <addr> listen|chat|raw.
tsctl --help lists all options.
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.
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: the UI toolkit, Slint, is used under its royalty-free license, which requires an attribution in the app's About page.

