Release 1.0.0

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-04 01:50:44 +03:00
1 parent 52ab1ca24c
commit a3715201e1
23 files changed
+2226 -37

No files matched your search

+37 -8
View File
@@ -4,9 +4,16 @@ A modern music bot for TeamSpeak 3, featuring YouTube integration, playlist supp
## Features
- 🎵 **YouTube Integration** - Play music directly from YouTube URLs or search queries
- 🎵 **YouTube Integration** - Play music directly from YouTube URLs or search queries via a native innertube client (fastest path) with yt-dlp as the resolver/fallback
- 🎶 **Two Catalogs** - Search and play from YouTube and Yandex Music (native, full tracks with a Plus token). `!play` searches both; `!pyt`/`!pya` target one. Direct audio URLs / radio streams and other yt-dlp extractors (SoundCloud, Bandcamp, VK, …) also work
- ⚡ **Hedged Resolution** - A slow source is raced by the next candidate after 300ms; first success wins
- 🔁 **Gapless Playback & Crossfade** - The next track's decoder is pre-warmed while the current one plays; optional crossfade (`bot.crossfade`)
- 🔊 **Loudness Normalization** - Optional slow AGC evens out quiet/loud tracks (`features.normalizeLoudness`)
- 📻 **Autoplay / Radio Mode** - When the queue runs dry, `!radio` keeps the music going with related tracks from YouTube or Yandex (`features.autoplay`)
- 💾 **Track Cache** - Downloaded audio is reused across plays and restarts (`advanced.cache*`)
- ⭐ **History & Favorites** - `!history`, `!stats`, `!fav add|list|play` backed by SQLite
- 📋 **Playlist Support** - Queue management with shuffle, repeat, and skip functionality
- 🎧 **High Quality Audio** - Supports up to 48kHz stereo audio
- 🎧 **High Quality Audio** - 192kHz stereo internal pipeline
- 🔄 **Hot Reload** - Update the bot without disconnecting from the server
- ⚙️ **Configurable** - JSON-based configuration system
- 🔊 **TeamSpeak Native** - Uses TeamSpeak's native audio system for best quality
@@ -15,11 +22,11 @@ A modern music bot for TeamSpeak 3, featuring YouTube integration, playlist supp
### Requirements
- C++26 compatible compiler (GCC 15+, Clang 18+, or MSVC 2022+)
- CMake 3.28+
- C++26 compatible compiler with reflections (GCC 16+)
- CMake 4.0+
- Qt6 (for desktop client)
- FFmpeg (for audio decoding)
- Glaze library (JSON parsing)
- 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
### Build Instructions
@@ -30,6 +37,18 @@ cmake ..
cmake --build .
```
### Tests
```bash
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).
## Configuration
Copy `config.example.json` to your config directory:
@@ -72,13 +91,20 @@ All commands use the configured prefix (default: `!`)
| `!resume` | Resume playback | `!resume` |
| `!stop` | Stop playback | `!stop` |
| `!skip` | Skip current track | `!skip` |
| `!seek <+/-secs>` | Seek within the track | `!seek +30` |
| `!queue` | Show current queue | `!queue` |
| `!clear` | Clear the queue | `!clear` |
| `!shuffle` | Toggle shuffle mode | `!shuffle` |
| `!repeat` | Toggle repeat mode | `!repeat` |
| `!volume <0-100>` | Set volume | `!volume 50` |
| `!nowplaying` | Show current track | `!nowplaying` |
| `!search <query>` | Search YouTube | `!search daft punk` |
| `!search <query>` | Search YouTube + Yandex Music | `!search daft punk` |
| `!youtube <query>` | Search YouTube only (alias `yb`, `yt`) | `!yb daft punk` |
| `!yandex <query>` | Search Yandex Music only (alias `ya`) | `!ya грибы` |
| `!history [n]` | Recently played tracks | `!history 15` |
| `!stats` | Playback statistics | `!stats` |
| `!fav add\|list\|play <n>` | Manage your favorites | `!fav play 2` |
| `!announce <text>` | **Admin:** message all subscribers once | `!announce New update live!` |
## Architecture
@@ -91,10 +117,13 @@ The bot consists of three main components:
### Audio Flow
```
YouTube URL → NetworkClient → AudioDecoder → MusicManager → Core → PluginInterface → TeamSpeak
query → SourceRouter (innertube → Yandex → direct URL → yt-dlp) → PlaybackEngine
(dual AudioDecoder, gapless handoff) → Core → PluginInterface → TeamSpeak
```
Audio is decoded using FFmpeg, processed at 48kHz stereo, and sent to TeamSpeak's custom audio device.
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
`docs/09-audio-pipeline.md` for details.
## Development