Rename the project to Voelin; packages hold only the app, tsgw is a Linux server package
The product is Voelin (app id io.github.faumaray.Voelin), everywhere: - crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary tsc-desktop -> voelin, the development CLI tsctl -> voelinctl; - the Android app: applicationId, Kotlin package io.github.faumaray.voelin, VoelinApp, libvoelin_android.so (JNI class names follow); - TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* -> voelin.*, signing secrets VOELIN_SIGNING_*; - the data/config/cache/state folder tsc -> voelin, the keyring service, thread names, the dev compose project; - desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs. The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env vars, the tsgw.v1+json protocol, the tsgw image. The window title and the About page show "Voelin <version>" from voelin_platform::APP_NAME. Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs, Flatpak). voelinctl is a development tool and in no package. tsgw is for servers and now its own Linux package, tsgw_<v>_amd64.deb and tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit (packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and dependencies of its own (no GUI libraries). docs/gateway-admin.md has an Install section. Fixes: - package-windows: makensis on Windows found no file through "D:/a/..." paths; pass Windows paths (cygpath -w). - StartupWMClass is the app id, which the app sets as its X11 WM_CLASS (it was the binary name, so desktops could not match the window). - Gradle wrapper download timeout 10 s -> 60 s (slow proxies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
197 files changed
+1357
-1210
No files matched your search
@@ -1,13 +1,13 @@
|
||||
# teamspeak_client_rs
|
||||
# Voelin
|
||||
|
||||
A TeamSpeak 3 / TeamSpeak 6 compatible voice client written in Rust, for desktop
|
||||
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](https://github.com/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.
|
||||
> trademark of its owner.
|
||||
|
||||
## Goals
|
||||
|
||||
@@ -28,30 +28,30 @@ Done so far (milestones M0–M4 and the first part of M5 of [the plan](docs/arch
|
||||
- `crates/proto/`: vendored tsclientlib, modernised (TS6 fields and stream
|
||||
messages, faster off-thread Init1 puzzle, `curve25519-dalek` 4, fuzzing fixes;
|
||||
see [UPSTREAM.md](crates/proto/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
|
||||
- `crates/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 ServerQuery
|
||||
- `crates/tsc-gateway` (`tsgw`) + `tsc-gateway-proto`: companion gateway for server admins. Users log in
|
||||
- `crates/voelin-model`: server flavor detection (TS3 / TS6) and capabilities
|
||||
- `crates/voelin-audio`: Opus voice encoding, framing, resampling, WAV, jitter buffer/mixer, cpal devices
|
||||
- `crates/voelin-store`: SQLite store for identities, bookmarks, settings and chat history; keyring secrets
|
||||
- `crates/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 ServerQuery
|
||||
- `crates/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](docs/gateway-admin.md))
|
||||
- `crates/tsc-core`: client engine; sessions merge voice, gateway and query sources, route chat, run audio;
|
||||
- `crates/voelin-core`: client engine; sessions merge voice, gateway and query sources, route chat, run audio;
|
||||
the media pipeline for streams (capture → VP8 + Opus → stream, stream → decoder)
|
||||
- `crates/tsc-ui` (`tsc-desktop`): Slint desktop app: servers, channel tree with talking indicators,
|
||||
- `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, 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
|
||||
- `crates/tsc-stream`: TeamSpeak 6 streams: stream commands and notifications, JSON signalling,
|
||||
- `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 server
|
||||
- `tools/tsctl`: headless CLI: channel tree, chat, voice send/record, raw commands, stream events,
|
||||
- `tools/voelinctl`: headless CLI: channel tree, chat, voice send/record, raw commands, stream events,
|
||||
`query`, `observe` (invisible presence), `relay` (channel chat without joining) and `gateway`
|
||||
- `dev/`: TeamSpeak 3.13 and TeamSpeak 6 (6.0.0-beta13.1) servers; `scripts/it-smoke.sh`
|
||||
checks tree, server chat, channel chat, a voice tone round-trip, invisible presence,
|
||||
relay chat and the gateway on both
|
||||
- `fuzz/`: cargo-fuzz targets for packets, commands and the license chain
|
||||
- `android/` + `crates/tsc-android`: the Android app (the same Slint UI in a NativeActivity,
|
||||
- `android/` + `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](docs/android.md))
|
||||
|
||||
@@ -68,39 +68,39 @@ interop with the official TeamSpeak 6 client is not verified yet.
|
||||
|
||||
```sh
|
||||
# Desktop app
|
||||
cargo run -p tsc-ui --bin tsc-desktop
|
||||
cargo run -p voelin-ui --bin voelin
|
||||
|
||||
# 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
|
||||
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 tsctl -- connect 127.0.0.1:9988 --nick eye stream watch --save-frame shot.png &
|
||||
cargo run -p tsctl -- connect 127.0.0.1:9988 --nick me stream start --synthetic --auto-accept
|
||||
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
|
||||
|
||||
# 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
|
||||
# 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 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
|
||||
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
|
||||
|
||||
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.
|
||||
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): `TSC_DATA_DIR` (database),
|
||||
`TSC_AUTOCONNECT=voice|observe`, `TSC_SCREENSHOT=<png>` (with `TSC_SCREENSHOT_DELAY`),
|
||||
`TSC_DEMO_STREAM=1` (a local test stream in the viewer, no server needed),
|
||||
`TSC_OPEN=share|settings[:<tab>]|about|client`, `TSC_AUTOWATCH=1`, `TSC_AUTOSHARE=test-pattern`.
|
||||
Development switches of the desktop app (environment variables): `VOELIN_DATA_DIR` (database),
|
||||
`VOELIN_AUTOCONNECT=voice|observe`, `VOELIN_SCREENSHOT=<png>` (with `VOELIN_SCREENSHOT_DELAY`),
|
||||
`VOELIN_DEMO_STREAM=1` (a local test stream in the viewer, no server needed),
|
||||
`VOELIN_OPEN=share|settings[:<tab>]|about|client`, `VOELIN_AUTOWATCH=1`, `VOELIN_AUTOSHARE=test-pattern`.
|
||||
|
||||
Ready-made packages (Linux `.tar.gz`/`.deb`/Flatpak, Windows zip and installer, Android APK)
|
||||
come from every CI run, and `scripts/docker-build.sh` builds the same ones locally in Docker:
|
||||
|
||||
Reference in new issue
Block a user