Claude 90e05723da M2: tsc-audio, tsc-store and tsctl voice
- tsc-audio: Opus voice/music encoder producing TeamSpeak voice packets,
  framer, rubato resampling, WAV I/O, tone/Goertzel helpers, cpal
  capture/playback over lock-free ring buffers; the vendored
  AudioHandler is the jitter buffer/mixer.
- tsc-store: SQLite (bundled, WAL, 0600) with migrations for identities,
  bookmarks, settings and paged chat history; Secrets trait with memory
  and OS keyring backends.
- tsctl voice send (WAV or tone, real time) / record (mix to WAV,
  --expect-tone check). The smoke test now includes a voice round-trip:
  1 kHz tone ratio ~0.95 on TS3 and TS6.
- Dev profile: no debug info for dependencies (target/ 16 GB -> 2.4 GB).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:56:01 +00:00

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–M2 of the plan):

  • crates/proto/: vendored tsclientlib, modernised (TS6 fields and stream messages, faster off-thread Init1 puzzle, curve25519-dalek 4, fuzzing fixes; see UPSTREAM.md)
  • crates/tsc-model: server flavor detection (TS3 / TS6) and capabilities
  • crates/tsc-audio: Opus voice encoding, framing, resampling, WAV, jitter buffer/mixer, cpal devices
  • crates/tsc-store: SQLite store for identities, bookmarks, settings and chat history; keyring secrets
  • tools/tsctl: headless CLI: channel tree, chat, voice send/record, raw commands, stream events
  • dev/: TeamSpeak 3.13 and TeamSpeak 6 (6.0.0-beta13.1) servers; scripts/it-smoke.sh checks tree, server chat, channel chat and a voice tone round-trip on both
  • fuzz/: cargo-fuzz targets for packets, commands and the license chain

No GUI and no screen sharing yet.

Try it

# 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

scripts/it-smoke.sh   # tree, chat and voice round-trips 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) for the audio examples, 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 planned UI toolkit, Slint, is used under its royalty-free license, which requires an attribution in the app's About page.

S
Description
Voelin desktop client (GPUI): a voice, chat and screen-sharing client that speaks the Voelin protocol; TeamSpeak 6 servers through VoelinGateWay
Readme
35 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 86.4%
Slint 10.7%
Shell 1.3%
Kotlin 0.8%
Python 0.3%
Other 0.5%