faumaray 21f78bdfa1
Release / release (push) Has been cancelled
Release: use native Gitea job token
2026-07-30 03:30:49 +03:00
2026-07-11 21:41:30 +03:00
2026-07-15 21:08:28 +03:00
2026-07-27 19:24:57 +03:00
2026-07-20 01:19:06 +03:00
2026-07-12 17:55:24 +03:00
2026-07-15 21:08:28 +03:00

VoidTeamspeak

VoidTeamspeak is a modern C++26 implementation of the TeamSpeak 3/6 native client protocol. It connects as a real voice client without embedding the official GUI client or depending on its proprietary ClientLib.

The public API follows the concepts of the original TeamSpeak Client SDK while using RAII, strong IDs, chrono durations, spans, typed events, and Void::Result. The lower-level implementation lives under Void::TeamSpeak::Protocol; application code should use the owning facade.

Public API

#include <Void/TeamSpeak/TeamSpeak.hpp>

auto identity = std::make_shared<Void::TeamSpeak::Identity>(
    Void::TeamSpeak::Identity::load("identity.txt"));

Void::TeamSpeak::Client client;
client.setEvents({
    .connected = [] { /* ready */ },
    .error = [](const Void::TeamSpeak::Error& error) { /* report */ },
});

auto connected = client.connect({
    .host = "voice.example.net",
    .identity = std::move(identity),
    .nickname = "music bot",
});

Build

cmake -S . -B build \
  -DCPM_Void_SOURCE="$HOME/Project/Personal/VoidLibrary" \
  -DVOID_TEAMSPEAK_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure

Dependencies are VoidLibrary, OpenSSL, libsodium, and optionally libopus.

SDK mapping

The detailed and deliberately conservative status is tracked in SDK_PARITY.md.

Original Client SDK concept VoidTeamspeak
connection handler ID owning Client object
ts3client_startConnection Client::connect(ConnectOptions)
ts3client_stopConnection Client::disconnect()
ts3client_getClientID Client::id() returning ClientId
request + return code callback Client::request() returning a typed result
whisper-list arrays WhisperTargets with strong channel/client IDs
global callback table per-client Events
raw voice buffers sendVoice / sendWhisper spans

Operations that exist only inside the official GUI client will return a typed NotSupported error as the broader SDK facade is filled out.

License

MIT. The initial protocol implementation was ported from MIT-licensed ts6-manager and cross-checked against public protocol documentation.

S
Description
No description provided
Readme
117 KiB
0 Stars 3 Watchers 0 Forks
2026-08-01 16:05:53 +00:00
Languages
C++ 97.9%
CMake 2.1%