1 parent
c9a52b73ac
commit
2d1d03db1e
22 files changed
+2040
-102
No files matched your search
@@ -27,7 +27,7 @@ A modern music bot for TeamSpeak 3, featuring YouTube integration, playlist supp
|
||||
- Qt6 (for desktop client)
|
||||
- FFmpeg (for audio decoding)
|
||||
- Boost (system installation preferred; the build vendors one only when absent — mixing a vendored and a system Boost in one process breaks boost.url)
|
||||
- TeamSpeak 3 Client SDK
|
||||
- OpenSSL, libsodium, Opus, FFmpeg, and Boost development packages
|
||||
|
||||
### Build Instructions
|
||||
|
||||
@@ -44,10 +44,8 @@ cmake .. -DBUILD_TESTS=ON
|
||||
cmake --build . && ctest
|
||||
```
|
||||
|
||||
The suite covers the decoder (against generated audio fixtures), the queue
|
||||
and shuffle bookkeeping, the gapless playback engine (asserting a seamless
|
||||
track boundary), and the source router (fall-through, hedging and stream
|
||||
caching).
|
||||
The protocol suite covers command escaping/parsing, packet crypto, QuickLZ,
|
||||
identity generation and persistence, and TeamSpeak identity-export import.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -72,13 +70,24 @@ Edit the configuration file with your server details:
|
||||
|
||||
## Installation
|
||||
|
||||
### TeamSpeak Plugin
|
||||
### Standalone daemon
|
||||
|
||||
1. Build the project
|
||||
2. Copy the plugin to your TeamSpeak plugins folder:
|
||||
- **Linux**: `~/.ts3client/plugins/`
|
||||
- **Windows**: `%APPDATA%\TS3Client\plugins\`
|
||||
3. Enable the plugin in TeamSpeak's plugins menu
|
||||
1. Build the project and install `echoiond` together with `Echoion.ts`.
|
||||
2. Copy `systemd/echoion-standalone.service` to your user systemd directory,
|
||||
adjust its paths, and enable it.
|
||||
3. On first start, Echoion generates `~/.config/echoion/identity.txt`.
|
||||
|
||||
To preserve the permissions and UID of an existing TeamSpeak client identity,
|
||||
export it from TeamSpeak's Identity Manager and import it before first start:
|
||||
|
||||
```bash
|
||||
echoiond --import-identity identity.ini
|
||||
# Choose a non-default destination or replace an existing identity explicitly:
|
||||
echoiond --import-identity identity.ini --identity-path /path/to/identity.txt --force
|
||||
```
|
||||
|
||||
The identity file contains a private key. Keep both the TeamSpeak export and
|
||||
the converted file private.
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -111,21 +120,27 @@ All commands use the configured prefix (default: `!`)
|
||||
|
||||
## Architecture
|
||||
|
||||
The bot consists of three main components:
|
||||
The supported runtime consists of four main components:
|
||||
|
||||
1. **EchoionApi** - Shared interfaces and types
|
||||
2. **EchoionCore** - Core music playback logic (hot-reloadable)
|
||||
3. **EchoionPlugin** - TeamSpeak plugin wrapper
|
||||
3. **EchoionProtocol** - Native TeamSpeak UDP voice and command protocol
|
||||
4. **EchoionStandalone** - Daemon host and Core API adapter
|
||||
|
||||
`EchoionPlugin` is archived compatibility code. It is excluded from normal
|
||||
builds and packages; use `-DBUILD_PLUGIN=ON` only when maintaining the legacy
|
||||
TeamSpeak client integration.
|
||||
|
||||
### Audio Flow
|
||||
|
||||
```
|
||||
query → SourceRouter (innertube → Yandex → direct URL → yt-dlp) → PlaybackEngine
|
||||
(dual AudioDecoder, gapless handoff) → Core → PluginInterface → TeamSpeak
|
||||
(dual AudioDecoder, gapless handoff) → Core → Standalone interface
|
||||
→ EchoionProtocol → TeamSpeak
|
||||
```
|
||||
|
||||
Audio is decoded using FFmpeg at 192kHz stereo and emitted in 20ms chunks to
|
||||
TeamSpeak's custom audio device by a single real-time engine thread. See
|
||||
TeamSpeak's Opus voice protocol by a single real-time engine thread. See
|
||||
`docs/09-audio-pipeline.md` for details.
|
||||
|
||||
## Development
|
||||
@@ -135,7 +150,7 @@ TeamSpeak's custom audio device by a single real-time engine thread. See
|
||||
The core library can be hot-reloaded without disconnecting from the server:
|
||||
|
||||
1. Build the new core: `cmake --build . --target EchoionCore`
|
||||
2. Use the "Reload Core" menu item or send plugin command `reload`
|
||||
2. Replace `Echoion.ts`; the daemon's host watcher reloads it automatically.
|
||||
|
||||
### Adding Commands
|
||||
|
||||
|
||||
Reference in new issue
Block a user