From 3d6752a5e44efe7677da96b5b48cdc3a4c7c77c1 Mon Sep 17 00:00:00 2001
From: illusia <64828020+EchoSixHIYA@users.noreply.github.com>
Date: Thu, 17 Sep 2026 13:22:40 +0800
Subject: [PATCH] docs: split README by language
---
README.md | 856 ++-----------------------------------------
docs/README.de.md | 224 +++++++++++
docs/README.en.md | 225 ++++++++++++
docs/README.zh-CN.md | 225 ++++++++++++
4 files changed, 697 insertions(+), 833 deletions(-)
create mode 100644 docs/README.de.md
create mode 100644 docs/README.en.md
create mode 100644 docs/README.zh-CN.md
diff --git a/README.md b/README.md
index 90f838e..f06e663 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-

+
WebSpeak
@@ -18,832 +18,29 @@
[](https://vuejs.org/)
[](https://www.typescriptlang.org/)
[](https://github.com/users/EchoSixHIYA/packages/container/package/webspeak)
- [](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest)
- 简体中文 ·
- English ·
- Deutsch ·
- 在线 Demo ·
- 社区 / Community ·
- 下载
+ 简体中文文档 ·
+ English documentation ·
+ Deutsche Dokumentation
-
-目录 / Table of contents
-
-- [项目简介 · Overview](#overview)
-- [在线 Demo · Live Demo](#demo)
-- [简体中文](#简体中文)
- - [特性](#zh-features)
- - [界面截图](#zh-screenshots)
- - [高级功能](#zh-advanced)
- - [WebRTC 低延迟语音](#zh-webrtc)
- - [中继模式](#zh-relay)
- - [依赖与归属](#zh-advanced-dependencies)
- - [更新日志](#zh-changelog)
- - [部署方案](#zh-deployment)
- - [要求和注意事项](#zh-requirements)
-- [English](#english)
- - [Features](#en-features)
- - [Screenshots](#en-screenshots)
- - [Advanced features](#en-advanced)
- - [WebRTC low-latency voice](#en-webrtc)
- - [Relay mode](#en-relay)
- - [Dependencies and attribution](#en-advanced-dependencies)
- - [Changelog](#en-changelog)
- - [Deployment](#en-deployment)
- - [Requirements and notes](#en-requirements)
-- [Deutsch](#deutsch)
- - [Funktionen](#de-features)
- - [Screenshots](#de-screenshots)
- - [Erweiterte Funktionen](#de-advanced)
- - [WebRTC-Sprache mit niedriger Latenz](#de-webrtc)
- - [Relay-Modus](#de-relay)
- - [Abhängigkeiten und Hinweise zur Herkunft](#de-advanced-dependencies)
- - [Änderungsprotokoll](#de-changelog)
- - [Bereitstellung](#de-deployment)
- - [Voraussetzungen und Hinweise](#de-requirements)
-- [社区 · Community](#community)
-- [友链项目 · Friend projects](#friend-projects)
-- [许可证 · License · Lizenz](#license)
-
-
-
-
-
## 项目简介 · Overview
| 逻辑 | 中文 | English |
| --- | --- | --- |
-| **WHAT** | WebSpeak 是一个可自行部署的 TeamSpeak 3 / TeamSpeak 6 网页客户端与语音网关。用户打开网页即可进入频道、交流和管理自己的音频设备。 | WebSpeak is a self-hosted browser client and voice gateway for TeamSpeak 3 and TeamSpeak 6. Users can join channels, communicate, and manage their audio devices directly in a browser. |
-| **WHY** | 它降低了临时加入 TeamSpeak 的门槛:无需安装桌面客户端,只需分享一个网页地址,同时仍由部署者控制目标服务器、访问方式和数据。 | It lowers the barrier to joining TeamSpeak: no desktop installation is required, only a web address, while the operator keeps control of targets, access policies, and data. |
-| **HOW** | 部署 WebSpeak 后,管理员在网页控制台设置默认 TeamSpeak 目标和访问策略。浏览器负责交互与音频,WebSpeak 负责连接 TeamSpeak;需要更低延迟时可启用内置 WebRTC。 | After deployment, the administrator configures the default TeamSpeak target and access policy in the web console. The browser handles interaction and audio, WebSpeak connects to TeamSpeak, and the bundled WebRTC path can be enabled for lower latency. |
+| **WHAT** | WebSpeak 是一个可自行部署的 TeamSpeak 3 / TeamSpeak 6 网页客户端与语音网关。 | WebSpeak is a self-hosted browser client and voice gateway for TeamSpeak 3 and TeamSpeak 6. |
+| **WHY** | 无需安装桌面客户端,用户打开网页即可加入频道;部署者仍然掌控目标服务器、访问策略和数据。 | Users can join a voice channel from a browser without installing a desktop client, while the operator keeps control of servers, access, and data. |
+| **HOW** | 部署后在管理员控制台配置 TeamSpeak 目标和访问方式,浏览器负责交互与音频,WebSpeak 负责网关连接。 | Configure the TeamSpeak target and access policy in the administration console. The browser handles interaction and audio; WebSpeak provides the gateway connection. |
-
+## 文档语言 · Documentation
-## 在线 Demo · Live Demo
+详细的特性、截图、高级功能、部署方案、要求和更新日志已按语言拆分:
-**在线地址 / Live URL:**
-
-> [!WARNING]
-> **中文:** 公共演示服务器位于香港,网络和运行负载可能不稳定。延迟、断线或暂时不可用不代表自行部署后的实际表现,请勿将该节点用于重要或长期会话。
->
-> **English:** The public demo is hosted in Hong Kong and its network conditions and load may be unstable. Latency, disconnections, or temporary downtime do not represent a self-hosted deployment. Do not rely on this node for important or long-running sessions.
-
----
-
-
-
-## 简体中文
-
-WebSpeak 面向希望通过网页提供 TeamSpeak 语音服务的个人、社区和服务器管理员。它提供完整的访客页面、语音工作区和管理控制台,并可使用 Docker、预编译包或源码部署。
-
-
-
-### ✨ 特性
-
-| 能力 | 说明 |
-| --- | --- |
-| TeamSpeak 兼容 | 支持 TeamSpeak 3 与 TeamSpeak 6,并自动探测目标服务器协议。 |
-| IPv6 目标 | 默认支持 IPv6 TeamSpeak 目标,并兼容域名解析出的 IPv6 地址。 |
-| 频道与成员 | 浏览完整频道树、查看各频道成员和实时状态,并可切换频道。 |
-| 实时语音 | 使用 Opus 语音;支持兼容传输和可选的内置 WebRTC 低延迟传输。 |
-| 音频控制 | 选择麦克风与扬声器、调节输入/输出音量、测试麦克风、闭麦、VOX,以及单独调整成员音量。 |
-| 消息与互动 | 支持频道消息、服务器消息、私聊、戳一戳和耳语目标。 |
-| 桌面端伴奏 | 在桌面浏览器中选择带音频的窗口或标签页,将其声音分享给当前 TeamSpeak 频道。 |
-| 身份与访问 | 支持浏览器身份保持、默认目标、访客自定义目标及可撤销、可过期的邀请链接。 |
-| 管理控制台 | 管理默认目标、访问策略、WebRTC、邀请链接、活动会话、连接历史、日志、诊断与数据库备份。 |
-| 界面体验 | 提供中文、English 和 Deutsch 界面、浅色/深色主题,以及桌面端和移动端响应式布局。 |
-| 自托管 | 数据由部署者保存;提供 Docker 镜像、Windows x64 和 Linux x64 发布包。 |
-
-
-
-### 🖼️ 界面截图
-
-以下截图来自上海测试节点,展示中文界面下的欢迎页、语音工作区、音量控制和成员操作菜单。
-
-#### 欢迎页
-
-
-
-
-
-#### 语音工作区
-
-
-
-
-
-#### 音量控制
-
-
-
-
-
-#### 成员右键菜单
-
-
-
-
-
-
-
-### 🧩 高级功能
-
-高级功能都是可选项;不开启时,WebSpeak 仍可使用兼容语音传输。配置入口均在管理员控制台的“服务器”页,保存后对新连接生效。
-
-
-
-#### 1. WebRTC 低延迟语音
-
-WebRTC 将浏览器的实时语音从兼容传输切换为更适合实时音频的媒体通道,也支持桌面端伴奏。它由当前 WebSpeak 网关直接提供,不需要另设媒体服务器。
-
-1. 登录 `/admin`,打开“服务器”页的“高级参数”。
-2. 关闭 WebRTC 时设置 UDP 起止端口;默认范围为 `40000–40099`。
-3. 在 WebSpeak 主机的云安全组和防火墙中放行完整 UDP 范围。Docker Compose 使用项目默认配置时,应让宿主机直接承载这些端口。
-4. 勾选“启用 WebRTC”并保存。用户重新进入后即可协商 WebRTC;浏览器或网络不支持时会自动回退到兼容模式。
-
-启用后端口范围会锁定;要修改范围,先关闭 WebRTC 并保存,再修改端口并重新放行。公网使用时还需要 HTTPS,浏览器才会稳定提供麦克风和窗口音频权限。
-
-
-
-#### 2. 中继模式
-
-中继用于目标 TeamSpeak 服务器拒绝境外连接或直连不稳定的场景。它不是 VPN,只转发当前 WebSpeak 会话的 TeamSpeak UDP 数据;目标服务器仍由用户在网页中选择。
-
-##### 2.1 源码启动
-
-中继模式是 WebSpeak 的专用转发实例:不提供欢迎页、管理员后台,也不允许用户直接登录,只接受已配置网关使用匹配令牌转发的会话。令牌必须是至少 16 个字符的随机值,并在中继与网关管理控制台中保持一致:
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-npm ci --ignore-scripts
-npm run prepare:sdk
-npm run build
-WEBSPEAK_MODE=relay \
-WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
-WEBSPEAK_RELAY_HOST='0.0.0.0' \
-WEBSPEAK_RELAY_PORT='39087' \
-node dist/index.js
-```
-
-Windows PowerShell 使用以下方式设置环境变量后启动:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-node .\dist\index.js
-```
-
-##### 2.2 发布包启动
-
-从 [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) 下载 Windows x64 或 Linux x64 包并解压:
-
-```bash
-# Linux
-export WEBSPEAK_MODE=relay
-export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
-export WEBSPEAK_RELAY_HOST='0.0.0.0'
-export WEBSPEAK_RELAY_PORT='39087'
-./runtime/node ./dist/index.js
-```
-
-Windows PowerShell:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-.\runtime\node.exe .\dist\index.js
-```
-
-##### 2.3 Docker 启动
-
-```bash
-docker run -d --name webspeak-relay --restart unless-stopped --network host \
- -e WEBSPEAK_MODE=relay \
- -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
- -e WEBSPEAK_RELAY_PORT='39087' \
- ghcr.io/echosixhiya/webspeak:latest
-```
-
-放行中继主机的 UDP 监听端口(默认 `39087`)。默认情况下,中继拒绝显式写入的回环、私网和保留地址;只有在可信内网中确实需要访问这类目标时,才在中继进程设置 `WEBSPEAK_RELAY_ALLOW_PRIVATE=true`。
-
-##### 2.4 在 WebSpeak 网关中启用
-
-1. 管理员控制台 → “服务器” → “中继服务器”,添加一个或多个节点。
-2. 为每个节点填写显示名称、地址(例如 `relay.example.com#39087`)和匹配令牌,并保存。
-3. 访客欢迎页会显示可用节点;用户可为当前连接选择直连或其中一个中继。
-
-关闭并保存中继配置后,访客页面不会继续显示该选项;环境变量不会替代管理员控制台中的公开网关配置。
-
-
-
-#### 3. 依赖与归属
-
-- **中继服务:** WebSpeak 自带实现,基于 Node.js 标准库 `node:dgram`、`node:crypto`、`node:dns/promises` 和 `node:net`,不使用 GOST、sing-box 或其他代理框架。
-- **WebRTC:** 使用 [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`,其上游项目采用 MIT 许可证。
-- **TeamSpeak 协议:** 使用项目维护的 [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js) SDK fork;它负责 TeamSpeak 协议连接,不是中继服务本身。
-
-
-
-### 🧾 更新日志
-
-| 版本 | 日期 | 摘要 |
-| --- | --- | --- |
-| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | 统一首页连接错误显示,保留并安全截断错误代码,补充可追溯服务端原因;默认支持 IPv6 TeamSpeak 目标并补充使用条件。 |
-| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | 修复连接错误显示并增加服务器密码提示与重试;加入正式中继部署模式、多中继节点选择和高级功能配置教程,优化管理员历史连接日志的原因显示。 |
-| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | 简化 Docker 部署并支持连接同机 TeamSpeak;开放模式加强目标校验;SDK 增加 15 秒连接超时;网络性能面板改为每 3 秒持续监测。 |
-| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | 增加德语支持、Telegram 群组入口、网络性能面板和丢包率测试;管理员测试不再创建临时客户端,并修复语言菜单留白与伴奏音量波动。 |
-| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | 新增桌面端伴奏、身份保持提醒和网站图标,并修复 WebRTC 下的成员独立音量。 |
-| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | 修复身份保持逻辑,优化主题切换按钮。 |
-| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | 修复 WebRTC 语音和频道聊天,优化管理页、日志与移动端布局。 |
-| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | 引入内置 WebRTC,迁移 TeamSpeak SDK,并改善成员同步和语音缓冲。 |
-| [v0.1.2](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.2) | 2026-09-02 | 大幅改进移动端、设备选择、AudioWorklet 和响应式顶部操作。 |
-| [v0.1.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.1) | 2026-09-02 | 完成网页客户端、管理后台、邀请链接及运维能力的首轮规范化。 |
-| [v0.1.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.0) | 2026-08-31 | 首个规范化版本。 |
-
-完整记录见 [CHANGELOG.md](./CHANGELOG.md)。
-
-
-
-### 🚀 部署方案
-
-| 方案 | 适用场景 | 运行环境 |
-| --- | --- | --- |
-| **Docker Compose(推荐)** | 服务器长期运行、便于升级和持久化 | Docker Engine + Docker Compose |
-| **发布包** | 不希望安装 Node.js 或构建依赖 | Windows x64 或 Linux x64 |
-| **源码运行** | 开发、调试或二次开发 | Node.js 22.5+、Git 与本地编译工具 |
-
-#### Docker Compose(推荐)
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-docker compose pull
-docker compose up -d
-```
-
-启动后访问 `http://<你的主机>:3040`。如使用反向代理,将上游设置为 `http://<你的主机>:3040`;启用 WebRTC 时,放行管理后台显示的 UDP 端口范围。数据保存在 Docker volume `webspeak-data`。查看状态:
-
-```bash
-docker compose ps
-docker compose logs -f webspeak
-```
-
-升级:
-
-```bash
-git pull --ff-only
-docker compose pull
-docker compose up -d
-```
-
-不要执行 `docker compose down -v`,否则会删除数据库、管理员设置和其他持久化数据。
-
-#### Windows / Linux 发布包
-
-1. 从 [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) 下载对应的 `windows-x64.zip` 或 `linux-x64.tar.gz`。
-2. 解压到独立目录。
-3. Windows 运行 `start-webspeak.cmd`;Linux 运行 `./start-webspeak.sh`。
-4. 发布包自带 Node.js 运行时和生产依赖,无需再次执行 `npm install`。
-
-#### 源码运行
-
-```bash
-git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-npm ci --ignore-scripts
-npm run prepare:sdk
-npm rebuild @discordjs/opus --foreground-scripts
-npm --prefix web ci
-npm --prefix web run build
-npm run build
-npm start
-```
-
-源码构建 `@discordjs/opus` 时需要 Python、Make 和 C/C++ 编译工具。开发模式可分别使用 `npm run dev` 与 `npm run web:dev`。
-
-#### 首次配置(所有方案)
-
-1. 打开 `http://<你的主机>:3040/admin`。
-2. 使用默认账号 `admin`、默认密码 `admin` 登录,并按提示立即设置至少 12 位的新密码。
-3. 在“服务器”页填写默认 TeamSpeak 目标和访问方式;目标可写为 `voice.example.com#9987`。
-4. 公网使用时为站点配置 HTTPS。若启用 WebRTC,还需放行管理后台显示的 UDP 端口范围。
-
-
-
-### ⚠️ 要求和注意事项
-
-| 项目 | 要求或注意事项 |
-| --- | --- |
-| 浏览器 | 建议使用最新版 Chrome、Edge 或其他支持 WebRTC 的现代浏览器。麦克风和屏幕音频通常要求 HTTPS 安全上下文。 |
-| TeamSpeak 网络 | WebSpeak 主机必须能够访问目标 TeamSpeak 服务器。目标默认语音端口为 `9987`,也可在网页中填写其他端口。 |
-| Web 服务网络 | 服务使用 `3040/TCP`。公网部署建议通过 HTTPS 反向代理提供网页和 WebSocket。 |
-| IPv6 | 默认支持 IPv6 目标;IPv6 字面量请写为 `[2001:db8::1]#9987`。WebSpeak 所在主机/容器需要可路由 IPv6、操作系统和 Node.js 启用 IPv6,并在云安全组与防火墙中放行对应 TCP/UDP;仅有本地链路地址或没有 IPv6 路由时不可用。 |
-| WebRTC | 默认使用 `40000–40099/UDP`,请在云安全组和主机防火墙中放行。自定义范围时同步放行对应端口;启用 WebRTC 后需先关闭它才能修改端口范围。 |
-| 身份保持 | 同一浏览器身份同时只能保持一条活动连接。需要并行连接时,请取消第二条连接的“保持身份”,或使用另一个浏览器/浏览器配置文件。 |
-| 伴奏 | 仅桌面端提供,并要求启用 WebRTC。选择窗口或标签页时必须同时勾选共享音频;浏览器无法直接任意读取本地应用音频。 |
-| 数据 | Docker 数据位于 `webspeak-data` volume;发布包和源码运行的数据位于程序目录的 `data/`。升级或迁移前建议从管理后台导出数据库备份。 |
-| 会话上限 | 单实例最多允许 100 个活动网页会话。 |
-| 项目关系 | WebSpeak 是社区项目,不是 TeamSpeak 官方产品;TeamSpeak 名称及商标归其权利人所有。 |
-
-
-
----
-
-
-
-## English
-
-WebSpeak is built for individuals, communities, and server operators who want to offer TeamSpeak voice access through the web. It includes a complete visitor page, voice workspace, and administration console, with Docker, prebuilt-package, and source deployment options.
-
-
-
-### ✨ Features
-
-| Capability | Description |
-| --- | --- |
-| TeamSpeak compatibility | Supports TeamSpeak 3 and TeamSpeak 6 and automatically detects the target server protocol. |
-| IPv6 targets | IPv6 TeamSpeak targets are supported by default, including IPv6 addresses resolved from hostnames. |
-| Channels and members | Browse the complete channel tree, see members and live states in each channel, and switch channels. |
-| Realtime voice | Uses Opus audio with a compatibility transport and an optional bundled WebRTC low-latency transport. |
-| Audio controls | Select microphones and speakers, adjust input/output volume, test the microphone, mute, use VOX, and control each member's volume. |
-| Messaging and actions | Supports channel chat, server chat, private messages, poke actions, and whisper targets. |
-| Desktop accompaniment | Select an audio-enabled window or browser tab on desktop and share its sound with the current TeamSpeak channel. |
-| Identity and access | Supports remembered browser identities, a default target, visitor-defined targets, and revocable expiring invite links. |
-| Administration | Manage the default target, access policy, WebRTC, invites, active sessions, connection history, logs, diagnostics, and database backups. |
-| User experience | Chinese, English, and German interfaces, light/dark themes, and responsive desktop/mobile layouts. |
-| Self-hosting | Data stays with the operator; Docker images and Windows x64 / Linux x64 packages are provided. |
-
-
-
-### 🖼️ Screenshots
-
-These screenshots come from the Shanghai test node and show the welcome page, voice workspace, audio controls, and member actions in English.
-
-#### Welcome page
-
-
-
-
-
-#### Voice workspace
-
-
-
-
-
-#### Audio controls
-
-
-
-
-
-#### Member context menu
-
-
-
-
-
-
-
-### 🧩 Advanced features
-
-These features are optional. WebSpeak continues to work with its compatibility voice transport when they are disabled. Configure them from **Administration → Servers**; saved changes apply to new connections.
-
-
-
-#### 1. WebRTC low-latency voice
-
-WebRTC moves browser voice from the compatibility transport to a realtime media path and also enables desktop accompaniment. The current WebSpeak gateway provides it directly; no separate media server is required.
-
-1. Sign in at `/admin` and open **Advanced settings** on the **Servers** page.
-2. While WebRTC is disabled, choose the UDP start and end ports. The default range is `40000–40099`.
-3. Allow the complete UDP range in the WebSpeak host's cloud security group and firewall. With the default Docker Compose file, let the host receive these ports directly.
-4. Enable **WebRTC** and save. New visitors will negotiate WebRTC; unsupported browsers or networks fall back to the compatibility transport.
-
-The port range is locked while WebRTC is enabled. Disable and save WebRTC before changing it, then update the firewall rules. Public deployments also need HTTPS for reliable microphone and window-audio permissions.
-
-
-
-#### 2. Relay mode
-
-Use a relay when a TeamSpeak server rejects connections from outside its region or when a direct path is unstable. It is not a VPN: it forwards only the TeamSpeak UDP traffic of the current WebSpeak session, while the visitor still chooses the target server in the web page.
-
-##### 2.1 Run from source
-
-Relay mode is a dedicated WebSpeak forwarding instance: it exposes no welcome page or administration console and does not accept direct user sessions. It only accepts gateway sessions carrying a matching relay token. Use a random token of at least 16 characters and configure the same token on the relay and in the gateway administration console:
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-npm ci --ignore-scripts
-npm run prepare:sdk
-npm run build
-WEBSPEAK_MODE=relay \
-WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
-WEBSPEAK_RELAY_HOST='0.0.0.0' \
-WEBSPEAK_RELAY_PORT='39087' \
-node dist/index.js
-```
-
-On Windows PowerShell, set the variables before starting:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-node .\dist\index.js
-```
-
-##### 2.2 Run from a release package
-
-Download and extract the Windows x64 or Linux x64 package from [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest):
-
-```bash
-# Linux
-export WEBSPEAK_MODE=relay
-export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
-export WEBSPEAK_RELAY_HOST='0.0.0.0'
-export WEBSPEAK_RELAY_PORT='39087'
-./runtime/node ./dist/index.js
-```
-
-Windows PowerShell:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-.\runtime\node.exe .\dist\index.js
-```
-
-##### 2.3 Run with Docker
-
-```bash
-docker run -d --name webspeak-relay --restart unless-stopped --network host \
- -e WEBSPEAK_MODE=relay \
- -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
- -e WEBSPEAK_RELAY_PORT='39087' \
- ghcr.io/echosixhiya/webspeak:latest
-```
-
-Allow the relay host's UDP listen port (default `39087`). The relay blocks explicitly entered loopback, private, and reserved targets by default. Only set `WEBSPEAK_RELAY_ALLOW_PRIVATE=true` when a trusted internal deployment deliberately needs those targets.
-
-##### 2.4 Enable it in the WebSpeak gateway
-
-1. Open **Administration → Servers → Relay server** and add one or more nodes.
-2. Set each node's display name, endpoint (for example `relay.example.com#39087`), and matching token, then save.
-3. The welcome page lists the available nodes; visitors can choose direct access or one relay for the current connection.
-
-Disable and save the relay configuration to remove the option from the welcome page. Environment variables do not replace the public gateway configuration saved in the administration console.
-
-
-
-#### 3. Dependencies and attribution
-
-- **Relay service:** built into WebSpeak with Node.js built-ins (`node:dgram`, `node:crypto`, `node:dns/promises`, and `node:net`); it does not use GOST, sing-box, or another proxy framework.
-- **WebRTC:** uses [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`, whose upstream project is licensed under MIT.
-- **TeamSpeak protocol:** uses the project-maintained [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js) SDK fork. This handles TeamSpeak protocol connectivity; it is not the relay implementation.
-
-
-
-### 🧾 Changelog
-
-| Version | Date | Summary |
-| --- | --- | --- |
-| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Unified welcome-page connection errors, preserved and safely truncated error codes, exposed traceable server reasons, and added default IPv6 TeamSpeak target support with documented conditions. |
-| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Fixed connection-error reporting, added server-password prompts and retry, introduced formal relay deployment, multi-relay selection, and advanced-feature guidance, and improved reason reporting in administrator connection history. |
-| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Simplified Docker deployment for local TeamSpeak targets; hardened open-target validation; added a 15-second SDK connection timeout; network metrics now refresh every 3 seconds. |
-| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | Added German support, a Telegram community link, network performance and packet-loss checks; admin tests no longer create temporary clients, and language-menu spacing and accompaniment volume fluctuations were fixed. |
-| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | Added desktop accompaniment, remembered-identity guidance, and the site icon; fixed per-member volume under WebRTC. |
-| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | Fixed identity persistence and refined the theme switch. |
-| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | Fixed WebRTC voice and channel chat; improved administration, logs, and mobile layouts. |
-| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | Added bundled WebRTC, migrated the TeamSpeak SDK, and improved member sync and voice buffering. |
-| [v0.1.2](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.2) | 2026-09-02 | Major mobile, device-selection, AudioWorklet, and responsive-header improvements. |
-| [v0.1.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.1) | 2026-09-02 | First normalized browser client, admin console, invite, and operations feature set. |
-| [v0.1.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.0) | 2026-08-31 | First normalized release. |
-
-See [CHANGELOG.md](./CHANGELOG.md) for the complete history.
-
-
-
-### 🚀 Deployment
-
-| Method | Best for | Runtime |
-| --- | --- | --- |
-| **Docker Compose (recommended)** | Long-running servers, simple upgrades, and persistent data | Docker Engine + Docker Compose |
-| **Release packages** | Running without installing Node.js or build dependencies | Windows x64 or Linux x64 |
-| **From source** | Development, debugging, and customization | Node.js 22.5+, Git, and native build tools |
-
-#### Docker Compose (recommended)
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-docker compose pull
-docker compose up -d
-```
-
-After startup, open `http://:3040`. If you use a reverse proxy, set its upstream to `http://:3040`. When WebRTC is enabled, allow the UDP range shown in the administration console. Persistent data is stored in the `webspeak-data` Docker volume. Check the service with:
-
-```bash
-docker compose ps
-docker compose logs -f webspeak
-```
-
-Upgrade with:
-
-```bash
-git pull --ff-only
-docker compose pull
-docker compose up -d
-```
-
-Do not run `docker compose down -v`; it removes the database, administrator settings, and other persistent data.
-
-#### Windows / Linux release packages
-
-1. Download the matching `windows-x64.zip` or `linux-x64.tar.gz` from [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest).
-2. Extract it into a dedicated directory.
-3. Run `start-webspeak.cmd` on Windows or `./start-webspeak.sh` on Linux.
-4. Release packages include the Node.js runtime and production dependencies; do not run `npm install` inside them.
-
-#### Run from source
-
-```bash
-git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-npm ci --ignore-scripts
-npm run prepare:sdk
-npm rebuild @discordjs/opus --foreground-scripts
-npm --prefix web ci
-npm --prefix web run build
-npm run build
-npm start
-```
-
-Building `@discordjs/opus` requires Python, Make, and a C/C++ toolchain. For development, run `npm run dev` and `npm run web:dev` separately.
-
-#### First-time setup (all methods)
-
-1. Open `http://:3040/admin`.
-2. Sign in with the default username `admin` and password `admin`, then immediately set a new password of at least 12 characters as prompted.
-3. Configure the default TeamSpeak target and access mode on the **Servers** page. A target can be written as `voice.example.com#9987`.
-4. Configure HTTPS for public access. If WebRTC is enabled, also allow the UDP range shown in the administration console.
-
-
-
-### ⚠️ Requirements and notes
-
-| Area | Requirement or note |
-| --- | --- |
-| Browser | Use a current Chrome, Edge, or another modern browser with WebRTC support. Microphone and shared-screen audio normally require an HTTPS secure context. |
-| TeamSpeak network | The WebSpeak host must be able to reach the target TeamSpeak server. The default voice port is `9987`, and other ports can be entered in the web interface. |
-| Web network | The service uses `3040/TCP`. Public deployments should expose the page and WebSocket through an HTTPS reverse proxy. |
-| IPv6 | IPv6 targets are supported by default; write literal targets as `[2001:db8::1]#9987`. The WebSpeak host/container needs routed IPv6 with IPv6 enabled in the OS and Node.js, and the relevant TCP/UDP traffic must be allowed by the cloud security group and firewall. Link-local-only addresses or hosts without an IPv6 route are not supported. |
-| WebRTC | The default range is `40000–40099/UDP`; allow it in the cloud security group and host firewall. For a custom range, allow the corresponding ports. Disable WebRTC before changing the range. |
-| Remembered identity | One browser identity can hold only one active remembered connection at a time. For parallel connections, disable **Remember identity** on the second connection or use another browser/profile. |
-| Accompaniment | Desktop only and requires WebRTC. When selecting a window or tab, enable audio sharing as well. Browsers cannot arbitrarily capture every local application's audio. |
-| Data | Docker data is stored in the `webspeak-data` volume. Release packages and source installs store data in the program directory's `data/` folder. Export a database backup from the admin console before upgrades or migration. |
-| Session limit | One instance accepts up to 100 active browser sessions. |
-| Project relationship | WebSpeak is a community project and is not an official TeamSpeak product. TeamSpeak names and trademarks belong to their respective owners. |
-
-
-
----
-
-
-
-## Deutsch
-
-WebSpeak ist ein selbst gehosteter TeamSpeak-3-/TeamSpeak-6-Webclient und ein Sprach-Gateway. Nutzer können direkt im Browser Kanälen beitreten, sprechen und chatten; Administratoren verwalten Zielserver und Zugriff über die Webkonsole.
-
-
-
-### ✨ Funktionen
-
-| Funktion | Beschreibung |
-| --- | --- |
-| TeamSpeak-Kompatibilität | Unterstützt TeamSpeak 3 und TeamSpeak 6 und erkennt das Protokoll des Zielservers automatisch. |
-| IPv6-Ziele | IPv6-TeamSpeak-Ziele werden standardmäßig unterstützt, auch über IPv6-Adressen aus der Namensauflösung. |
-| Kanäle und Mitglieder | Zeigt die Kanalstruktur, Mitglieder und ihren aktuellen Status an. |
-| Echtzeit-Sprache | Opus-Audio mit kompatiblem Transport und optionalem integriertem WebRTC für geringere Latenz. |
-| Audiosteuerung | Mikrofon und Lautsprecher auswählen, Lautstärke anpassen, testen und einzelne Mitglieder regeln. |
-| Nachrichten und Interaktion | Kanal- und Serverchat, private Nachrichten, Anstupsen und Flüsterziele. |
-| Begleitton auf dem Desktop | Audio eines freigegebenen Fensters oder Browser-Tabs mit dem TeamSpeak-Kanal teilen. |
-| Identität und Zugriff | Geräteidentität speichern, Standardziele verwalten, eigene Ziele erlauben und zeitlich begrenzte Einladungen erstellen. |
-| Administrationskonsole | Ziele, Zugriff, WebRTC, Sitzungen, Verbindungen, Protokolle, Diagnosen und Datenbanksicherungen verwalten. |
-| Responsive Oberfläche | Deutsche, englische und chinesische Oberfläche, helle/dunkle Designs sowie Desktop- und Mobilansicht. |
-| Selbst gehostet | Die Daten bleiben beim Betreiber; Docker-, Windows-x64- und Linux-x64-Pakete sind verfügbar. |
-
-
-
-### 🖼️ Screenshots
-
-Diese Screenshots stammen vom Shanghai-Testknoten und zeigen die Willkommensseite, den Sprachbereich, die Audiosteuerung und das Mitglieder-Menü auf Deutsch.
-
-#### Willkommensseite
-
-
-
-
-
-#### Sprachbereich
-
-
-
-
-
-#### Audiosteuerung
-
-
-
-
-
-#### Mitglieder-Menü
-
-
-
-
-
-
-
-### 🧩 Erweiterte Funktionen
-
-Diese Funktionen sind optional. Ohne sie arbeitet WebSpeak weiterhin mit dem kompatiblen Sprachtransport. Die Einstellungen befinden sich unter **Administration → Server** und gelten für neue Verbindungen.
-
-
-
-#### 1. WebRTC-Sprache mit niedriger Latenz
-
-WebRTC verwendet für Browser-Sprache einen Echtzeit-Medienpfad und ermöglicht außerdem Desktop-Begleitton. Der aktuelle WebSpeak-Gateway stellt WebRTC selbst bereit; ein zusätzlicher Medienserver ist nicht erforderlich.
-
-1. Unter `/admin` anmelden und auf der Seite **Server** die **Erweiterten Einstellungen** öffnen.
-2. Bei deaktiviertem WebRTC Start- und Endport für UDP festlegen. Der Standardbereich ist `40000–40099`.
-3. Den gesamten UDP-Bereich in Sicherheitsgruppe und Firewall des WebSpeak-Hosts freigeben. Bei der Standard-Docker-Compose-Datei müssen diese Ports direkt am Host erreichbar sein.
-4. **WebRTC** aktivieren und speichern. Neue Besucher handeln WebRTC aus; nicht unterstützte Browser oder Netzwerke wechseln automatisch zum kompatiblen Transport.
-
-Der Portbereich ist bei aktiviertem WebRTC gesperrt. Zum Ändern WebRTC zuerst deaktivieren und speichern, danach Firewall-Regeln anpassen. Für öffentliche Bereitstellungen ist außerdem HTTPS für Mikrofon- und Fenster-Audio-Berechtigungen erforderlich.
-
-
-
-#### 2. Relay-Modus
-
-Ein Relay hilft, wenn ein TeamSpeak-Server Verbindungen aus anderen Regionen ablehnt oder der direkte Weg instabil ist. Es ist kein VPN, sondern leitet nur den TeamSpeak-UDP-Verkehr der aktuellen WebSpeak-Sitzung weiter.
-
-##### 2.1 Aus dem Quellcode starten
-
-Der Relay-Modus ist eine dedizierte WebSpeak-Weiterleitungsinstanz: Er stellt keine Willkommensseite und keine Administrationskonsole bereit und akzeptiert keine direkten Benutzersitzungen. Er akzeptiert nur Gateway-Sitzungen mit passendem Relay-Token. Ein zufälliges Token mit mindestens 16 Zeichen verwenden und dasselbe Token im Relay sowie in der WebSpeak-Administrationskonsole eintragen:
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-npm ci --ignore-scripts
-npm run prepare:sdk
-npm run build
-WEBSPEAK_MODE=relay \
-WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
-WEBSPEAK_RELAY_HOST='0.0.0.0' \
-WEBSPEAK_RELAY_PORT='39087' \
-node dist/index.js
-```
-
-Unter Windows PowerShell die Variablen vor dem Start setzen:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-node .\dist\index.js
-```
-
-##### 2.2 Aus einem Release-Paket starten
-
-Das Windows-x64- oder Linux-x64-Paket aus den [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) herunterladen und entpacken:
-
-```bash
-# Linux
-export WEBSPEAK_MODE=relay
-export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
-export WEBSPEAK_RELAY_HOST='0.0.0.0'
-export WEBSPEAK_RELAY_PORT='39087'
-./runtime/node ./dist/index.js
-```
-
-Windows PowerShell:
-
-```powershell
-$env:WEBSPEAK_MODE = "relay"
-$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
-$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
-$env:WEBSPEAK_RELAY_PORT = "39087"
-.\runtime\node.exe .\dist\index.js
-```
-
-Das UDP-Listening-Port des Relay-Hosts freigeben (Standard `39087`). Explizit eingetragene Loopback-, private und reservierte Ziele werden standardmäßig abgelehnt. `WEBSPEAK_RELAY_ALLOW_PRIVATE=true` nur in einer vertrauenswürdigen internen Umgebung setzen, wenn solche Ziele absichtlich benötigt werden.
-
-##### 2.3 Mit Docker starten
-
-Für Docker denselben veröffentlichten WebSpeak-Container im Relay-Modus starten:
-
-```bash
-docker run -d --name webspeak-relay --restart unless-stopped --network host \
- -e WEBSPEAK_MODE=relay \
- -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
- -e WEBSPEAK_RELAY_PORT='39087' \
- ghcr.io/echosixhiya/webspeak:latest
-```
-
-##### 2.4 Im WebSpeak-Gateway aktivieren
-
-1. **Administration → Server → Relay-Server** öffnen und einen oder mehrere Knoten hinzufügen.
-2. Für jeden Knoten Anzeigenamen, Endpunkt (zum Beispiel `relay.example.com#39087`) und passendes Token eintragen und speichern.
-3. Auf der Willkommensseite können Besucher eine direkte Verbindung oder einen der verfügbaren Relays auswählen.
-
-Relay deaktivieren und speichern, um die Option von der Willkommensseite zu entfernen. Umgebungsvariablen ersetzen nicht die im Administrationsbereich gespeicherte öffentliche Gateway-Konfiguration.
-
-
-
-#### 3. Abhängigkeiten und Hinweise zur Herkunft
-
-- **Relay-Dienst:** Bestandteil von WebSpeak und mit Node.js-Standardmodulen (`node:dgram`, `node:crypto`, `node:dns/promises`, `node:net`) implementiert; GOST, sing-box oder ein anderes Proxy-Framework wird nicht verwendet.
-- **WebRTC:** verwendet [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`; das Upstream-Projekt steht unter MIT-Lizenz.
-- **TeamSpeak-Protokoll:** verwendet den projektgepflegten [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js)-SDK-Fork. Dieser ist für die TeamSpeak-Protokollverbindung zuständig, nicht für den Relay-Dienst.
-
-
-
-### 🧾 Änderungsprotokoll
-
-| Version | Datum | Zusammenfassung |
-| --- | --- | --- |
-| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Verbindungsfehler auf der Willkommensseite vereinheitlicht, Fehlercodes erhalten und sicher gekürzt, nachvollziehbare Serverursachen angezeigt sowie IPv6-TeamSpeak-Ziele standardmäßig mit dokumentierten Bedingungen unterstützt. |
-| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Verbindungsfehleranzeigen korrigiert, Passwortabfrage und Wiederholung ergänzt, dedizierten Relay-Modus, Auswahl mehrerer Relay-Knoten und Anleitungen für erweiterte Funktionen hinzugefügt sowie die Ursachendarstellung im Verbindungsverlauf verbessert. |
-| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Docker-Bereitstellung für lokale TeamSpeak-Ziele vereinfacht; Zielprüfung im offenen Modus gehärtet; 15-Sekunden-Timeout für SDK-Verbindungen ergänzt; Netzwerkmetriken werden alle 3 Sekunden aktualisiert. |
-| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | Deutsche Oberfläche, Telegram-Link sowie Netzwerk- und Paketverlustprüfung hinzugefügt; Admin-Tests erzeugen keine temporären Clients mehr, außerdem wurden Sprachmenü-Leerraum und Begleitton-Schwankungen behoben. |
-| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | Desktop-Begleitton, Hinweise zur Identität und Website-Symbol hinzugefügt; individuelle Lautstärke unter WebRTC korrigiert. |
-| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | Identitätsspeicherung korrigiert und Designumschaltung verbessert. |
-| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | WebRTC und Kanalchat korrigiert; Administrationsseite, Protokolle und Mobilansicht verbessert. |
-| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | Integriertes WebRTC, aktualisiertes TeamSpeak-SDK und bessere Mitgliedersynchronisierung. |
-
-Vollständige Historie: [CHANGELOG.md](./CHANGELOG.md).
-
-
-
-### 🚀 Bereitstellung
-
-| Methode | Geeignet für | Umgebung |
-| --- | --- | --- |
-| **Docker Compose (empfohlen)** | Dauerbetrieb, einfache Updates und persistente Daten | Docker Engine + Docker Compose |
-| **Release-Paket** | Betrieb ohne Node.js und Build-Werkzeuge | Windows x64 oder Linux x64 |
-| **Aus dem Quellcode** | Entwicklung und Anpassungen | Node.js 22.5+, Git und native Build-Werkzeuge |
-
-#### Docker Compose
-
-```bash
-git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
-cd WebSpeak-client-for-TeamSpeak
-docker compose pull
-docker compose up -d
-```
-
-Nach dem Start ist WebSpeak unter `http://:3040` erreichbar. Bei einem Reverse Proxy muss das Upstream-Ziel `http://:3040` sein. Für WebRTC muss der im Adminbereich angezeigte UDP-Portbereich freigegeben werden. Die persistenten Daten liegen im Docker-Volume `webspeak-data`.
-
-#### Release-Pakete
-
-Lade das passende Paket von [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest), entpacke es in ein eigenes Verzeichnis und starte unter Windows `start-webspeak.cmd` bzw. unter Linux `./start-webspeak.sh`.
-
-#### Erste Konfiguration
-
-Öffne `/admin`, melde dich zunächst mit `admin` / `admin` an und ändere das Passwort. Konfiguriere anschließend das Standard-TeamSpeak-Ziel und die gewünschte Zugriffsmethode.
-
-
-
-### ⚠️ Voraussetzungen und Hinweise
-
-| Bereich | Hinweis |
-| --- | --- |
-| Browser | Aktuelles Chrome, Edge oder ein moderner WebRTC-fähiger Browser wird empfohlen. Für Mikrofon- und Bildschirm-Audio ist normalerweise HTTPS erforderlich. |
-| TeamSpeak-Netzwerk | Der WebSpeak-Host muss den Zielserver erreichen können. Der Standard-Sprachport ist `9987`; andere Ports können im Webinterface eingetragen werden. |
-| IPv6 | IPv6-Ziele werden standardmäßig unterstützt; literale Ziele als `[2001:db8::1]#9987` eintragen. Der WebSpeak-Host/Container benötigt geroutetes IPv6 mit aktiviertem IPv6 in Betriebssystem und Node.js; Sicherheitsgruppe und Firewall müssen den relevanten TCP-/UDP-Verkehr erlauben. Nur lokale Link-Local-Adressen oder fehlende IPv6-Routen werden nicht unterstützt. |
-| WebRTC | Der Standardbereich ist `40000–40099/UDP`; Firewall und Sicherheitsgruppe müssen den gesamten Bereich erlauben. Bei einem benutzerdefinierten Bereich sind die entsprechenden Ports freizugeben. |
-| Gespeicherte Identität | Eine Browseridentität kann nur eine aktive gespeicherte Verbindung gleichzeitig halten. Für parallele Verbindungen die Option deaktivieren oder ein anderes Browserprofil verwenden. |
-| Begleitton | Nur auf Desktop-Browsern verfügbar und WebRTC erforderlich. Bei der Freigabe eines Fensters oder Tabs muss auch Audio freigegeben werden. |
-| Selbsthosting | WebSpeak ist kein offizielles TeamSpeak-Produkt. Namen und Marken gehören den jeweiligen Rechteinhabern. |
-
-
-
-
+- [简体中文](./docs/README.zh-CN.md)
+- [English](./docs/README.en.md)
+- [Deutsch](./docs/README.de.md)
## 社区 · Community
@@ -853,35 +50,28 @@ Lade das passende Paket von [GitHub Releases](https://github.com/EchoSixHIYA/Web
-**群号 / Group ID:`869500475`**
+**QQ群 / QQ group:`869500475`**
-[通过群聊链接直接加入 / Join directly through the group link](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=yhumUMDD9PmyYFWdXWUb_x7hM5trFQY8&authKey=Pw3HBGT7GwMinTQnuFGfnpf0aRSzXOJKcAiujVP1%2BXMpjheAKrncTRivicBJxpjV&noverify=0&group_code=869500475)
+[通过群聊链接直接加入 / Join directly](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=yhumUMDD9PmyYFWdXWUb_x7hM5trFQY8&authKey=Pw3HBGT7GwMinTQnuFGfnpf0aRSzXOJKcAiujVP1%2BXMpjheAKrncTRivicBJxpjV&noverify=0&group_code=869500475)
-中文:在群内获取部署帮助、版本通知和使用交流。
-English: Join for deployment help, release announcements, and user discussion.
-Deutsch: Hilfe bei der Bereitstellung, Versionsankündigungen und Austausch in der Community.
-Telegram: [Join the Telegram group](https://t.me/+8qShpTcuN9A3MWY9)
+[Telegram 群组 / Telegram group](https://t.me/+8qShpTcuN9A3MWY9)
-
-
## 友链项目 · Friend projects
-#### [NeteaseTSBot](https://github.com/yichen11818/NeteaseTSBot)
+### [NeteaseTSBot](https://github.com/yichen11818/NeteaseTSBot)
-中文:面向 TeamSpeak 3/6 的多平台音乐点播机器人,支持网易云音乐、QQ 音乐和 Bilibili 音频播放,并提供 Web 控制台。
-English: A multi-platform music bot for TeamSpeak 3/6 with Netease Cloud Music, QQ Music, and Bilibili playback, plus a web console.
-Deutsch: Ein plattformübergreifender Musikbot für TeamSpeak 3/6 mit Wiedergabe von Netease Cloud Music, QQ Music und Bilibili sowie Webkonsole.
-
-
+面向 TeamSpeak 3/6 的多平台音乐点播机器人,支持网易云音乐、QQ 音乐和 Bilibili 音频播放,并提供 Web 控制台。
+A multi-platform music bot for TeamSpeak 3/6 with Netease Cloud Music, QQ Music, and Bilibili playback, plus a web console.
+Ein plattformübergreifender Musikbot für TeamSpeak 3/6 mit Netease Cloud Music, QQ Music und Bilibili sowie Webkonsole.
## 许可证 · License · Lizenz
-**中文:** WebSpeak 使用 [GNU Affero General Public License v3.0 only](./LICENSE) 发布。你可以使用、研究、修改和再分发本项目;如果修改后的版本通过网络向用户提供服务,需要按照 AGPL-3.0 向这些用户提供对应源代码。
+WebSpeak 使用 [GNU Affero General Public License v3.0 only](./LICENSE) 发布。你可以使用、研究、修改和再分发本项目;如果修改后的版本通过网络向用户提供服务,需要按照 AGPL-3.0 向这些用户提供对应源代码。
-**English:** WebSpeak is released under the [GNU Affero General Public License v3.0 only](./LICENSE). You may use, study, modify, and redistribute the project. If a modified version is made available to users over a network, the corresponding source code must be offered to those users under AGPL-3.0.
+WebSpeak is released under the [GNU Affero General Public License v3.0 only](./LICENSE). If a modified version is offered to users over a network, its corresponding source code must be offered under AGPL-3.0.
-**Deutsch:** WebSpeak wird unter der [GNU Affero General Public License v3.0 only](./LICENSE) veröffentlicht. Bei Bereitstellung einer veränderten Version über ein Netzwerk muss der entsprechende Quellcode den Nutzern unter AGPL-3.0 angeboten werden.
+WebSpeak wird unter der [GNU Affero General Public License v3.0 only](./LICENSE) veröffentlicht. Bei Bereitstellung einer veränderten Version über ein Netzwerk muss der entsprechende Quellcode unter AGPL-3.0 angeboten werden.
-
+
diff --git a/docs/README.de.md b/docs/README.de.md
new file mode 100644
index 0000000..1f3c08f
--- /dev/null
+++ b/docs/README.de.md
@@ -0,0 +1,224 @@
+# WebSpeak · Deutsch
+
+[Projektstartseite](../README.md) · [简体中文](./README.zh-CN.md) · [English](./README.en.md)
+
+WebSpeak ist ein selbst gehosteter Webclient und ein Sprach-Gateway für TeamSpeak 3 und TeamSpeak 6. Nutzer können ohne Desktop-Client im Browser Kanälen beitreten; Administratoren verwalten Zielserver, Zugriff und Laufzeitstatus über die Webkonsole.
+
+## Live-Demo
+
+Adresse:
+
+Die öffentliche Demo läuft in Hongkong. Netzwerkbedingungen und Auslastung können instabil sein; Latenz, Verbindungsabbrüche oder kurze Ausfälle beschreiben nicht jede eigene Bereitstellung.
+
+## ✨ Funktionen
+
+| Funktion | Beschreibung |
+| --- | --- |
+| TeamSpeak-Kompatibilität | Unterstützt TeamSpeak 3 und TeamSpeak 6 und erkennt das Zielprotokoll automatisch. |
+| IPv6-Ziele | IPv6-TeamSpeak-Ziele und über DNS aufgelöste IPv6-Adressen werden standardmäßig unterstützt. |
+| Kanäle und Mitglieder | Kanalstruktur und aktuelle Mitglieder anzeigen und Kanäle wechseln. |
+| Echtzeit-Sprache | Opus-Audio mit kompatiblem Transport und optional integriertem WebRTC für geringere Latenz. |
+| Audiosteuerung | Mikrofon und Lautsprecher auswählen, Lautstärke regeln, testen, stummschalten, VOX und individuelle Mitgliedslautstärke. |
+| Nachrichten und Aktionen | Kanal- und Serverchat, private Nachrichten, Anstupsen und Flüsterziele. |
+| Desktop-Begleitton | Audio eines freigegebenen Fensters oder Browser-Tabs im aktuellen Kanal teilen. |
+| Identität und Zugriff | Gespeicherte Identität, eigene Ziele und widerrufbare Einladungslinks mit Ablaufzeit. |
+| Administration | Ziele, Zugriff, WebRTC, Relays, Einladungen, Sitzungen, Protokolle, Diagnosen und Backups verwalten. |
+| Oberfläche | Deutsche, englische und chinesische Oberfläche, helle/dunkle Designs sowie responsive Desktop-/Mobilansicht. |
+| Selbsthosting | Daten bleiben beim Betreiber; Docker-, Windows-x64- und Linux-x64-Bereitstellung sind verfügbar. |
+
+## 🖼️ Screenshots
+
+Die Screenshots zeigen die deutsche Willkommensseite, den Sprachbereich, die Audiosteuerung und das Mitgliedermenü.
+
+### Willkommensseite
+
+
+
+### Sprachbereich
+
+
+
+### Audiosteuerung
+
+
+
+### Mitgliedermenü
+
+
+
+## 🧩 Erweiterte Funktionen
+
+Diese Funktionen sind optional. Ohne sie arbeitet WebSpeak weiterhin mit dem kompatiblen Sprachtransport. Die Einstellungen befinden sich unter **Administration → Server** und gelten für neue Verbindungen.
+
+### 1. WebRTC-Sprache mit niedriger Latenz
+
+WebRTC verwendet für Browser-Sprache einen Echtzeit-Medienpfad und ermöglicht außerdem Desktop-Begleitton. Das aktuelle WebSpeak-Gateway stellt WebRTC selbst bereit; ein zusätzlicher Medienserver ist nicht erforderlich.
+
+1. Unter `/admin` anmelden und auf der Seite **Server** die **Erweiterten Einstellungen** öffnen.
+2. Bei deaktiviertem WebRTC Start- und Endport für UDP festlegen. Der Standardbereich ist `40000–40099`.
+3. Den gesamten UDP-Bereich in Sicherheitsgruppe und Firewall des WebSpeak-Hosts freigeben.
+4. **WebRTC** aktivieren und speichern. Nicht unterstützte Browser oder Netzwerke wechseln automatisch zum kompatiblen Transport.
+
+Der Portbereich ist bei aktiviertem WebRTC gesperrt. Zum Ändern WebRTC zuerst deaktivieren und speichern, danach die Firewall-Regeln anpassen. Für öffentliche Bereitstellungen ist HTTPS erforderlich.
+
+### 2. Relay-Modus
+
+Ein Relay hilft, wenn ein TeamSpeak-Server Verbindungen aus einer anderen Region ablehnt oder der direkte Weg instabil ist. Es ist kein VPN, sondern leitet nur den TeamSpeak-Verkehr der aktuellen WebSpeak-Sitzung weiter.
+
+Eine Relay-Instanz ist ein dedizierter Weiterleitungsdienst ohne Besucher- oder Administrationsseite. Sie akzeptiert nur Gateway-Sitzungen mit passendem Token. Ein zufälliges Token mit mindestens 16 Zeichen verwenden.
+
+#### Aus dem Quellcode starten
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm run build
+WEBSPEAK_MODE=relay \
+WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+WEBSPEAK_RELAY_HOST='0.0.0.0' \
+WEBSPEAK_RELAY_PORT='39087' \
+node dist/index.js
+```
+
+Windows PowerShell:
+
+```powershell
+$env:WEBSPEAK_MODE = "relay"
+$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
+$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
+$env:WEBSPEAK_RELAY_PORT = "39087"
+node .\dist\index.js
+```
+
+#### Aus einem Release-Paket starten
+
+Das passende Paket aus den [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) herunterladen und entpacken:
+
+```bash
+# Linux
+export WEBSPEAK_MODE=relay
+export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
+export WEBSPEAK_RELAY_HOST='0.0.0.0'
+export WEBSPEAK_RELAY_PORT='39087'
+./runtime/node ./dist/index.js
+```
+
+Unter Windows PowerShell dieselben Variablen setzen und `.\runtime\node.exe .\dist\index.js` ausführen.
+
+#### Mit Docker starten
+
+```bash
+docker run -d --name webspeak-relay --restart unless-stopped --network host \
+ -e WEBSPEAK_MODE=relay \
+ -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+ -e WEBSPEAK_RELAY_PORT='39087' \
+ ghcr.io/echosixhiya/webspeak:latest
+```
+
+Den UDP-Listening-Port des Relay-Hosts freigeben, standardmäßig `39087`.
+
+#### Im Gateway aktivieren
+
+1. **Administration → Server → Relay-Server** öffnen und einen oder mehrere Knoten hinzufügen.
+2. Für jeden Knoten einen Anzeigenamen, einen Endpunkt wie `relay.example.com#39087` und das passende Token eintragen und speichern.
+3. Besucher können auf der Willkommensseite Direktzugriff oder einen konfigurierten Relay-Knoten auswählen.
+
+Relay deaktivieren und speichern, um die Option von der Willkommensseite zu entfernen.
+
+### 3. Abhängigkeiten und Hinweise zur Herkunft
+
+- Der Relay-Dienst ist Bestandteil von WebSpeak und verwendet Node.js-Standardbibliotheken; GOST, sing-box oder ein anderes Proxy-Framework werden nicht verwendet.
+- WebRTC verwendet [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`; das Upstream-Projekt steht unter MIT-Lizenz.
+- Die TeamSpeak-Protokollverbindung verwendet den projektgepflegten [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js)-SDK-Fork.
+
+## 🧾 Änderungsprotokoll
+
+| Version | Datum | Zusammenfassung |
+| --- | --- | --- |
+| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Verbindungsfehler auf der Willkommensseite verbessert, Fehlercodes erhalten und sicher gekürzt sowie IPv6-Ziele standardmäßig unterstützt. |
+| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Passwortabfrage, dedizierter Relay-Modus, Auswahl mehrerer Relays und Ursachendarstellung in der Administration ergänzt. |
+| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Docker-Bereitstellung vereinfacht, lokale TeamSpeak-Ziele unterstützt, 15-Sekunden-Timeout ergänzt und kontinuierliche Netzwerküberwachung eingeführt. |
+| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | Deutsch, Telegram, Netzwerkleistung und Gesamtlautstärke ergänzt; Lautstärkeschwankungen beim Begleitton behoben. |
+| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | Desktop-Begleitton, Hinweise zur gespeicherten Identität und Website-Symbol ergänzt; WebRTC-Mitgliederlautstärke korrigiert. |
+| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | Identitätsspeicherung korrigiert und Designumschaltung verbessert. |
+| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | WebRTC und Kanalchat korrigiert sowie Administration, Protokolle und Mobilansicht verbessert. |
+| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | Integriertes WebRTC, aktualisiertes TeamSpeak-SDK und bessere Mitgliedersynchronisierung und Sprachpufferung. |
+
+Vollständige Historie: [CHANGELOG.md](../CHANGELOG.md).
+
+## 🚀 Bereitstellung
+
+| Methode | Geeignet für | Umgebung |
+| --- | --- | --- |
+| Docker Compose (empfohlen) | Dauerbetrieb, einfache Updates und persistente Daten | Docker Engine + Docker Compose |
+| Release-Paket | Betrieb ohne Node.js und Build-Werkzeuge | Windows x64 oder Linux x64 |
+| Aus dem Quellcode | Entwicklung und Anpassungen | Node.js 22.5+, Git und native Build-Werkzeuge |
+
+### Docker Compose (empfohlen)
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+docker compose pull
+docker compose up -d
+```
+
+Nach dem Start ist WebSpeak unter `http://:3040` erreichbar. Bei einem Reverse Proxy auf diese Adresse zeigen; für WebRTC den im Adminbereich angezeigten UDP-Bereich freigeben. Die Daten liegen im Volume `webspeak-data`.
+
+```bash
+docker compose ps
+docker compose logs -f webspeak
+```
+
+Upgrade:
+
+```bash
+git pull --ff-only
+docker compose pull
+docker compose up -d
+```
+
+`docker compose down -v` nicht ausführen, da dadurch Datenbank und Administratoreinstellungen gelöscht werden.
+
+### Release-Paket
+
+Das passende `windows-x64.zip` oder `linux-x64.tar.gz` aus den [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) herunterladen, in ein eigenes Verzeichnis entpacken und `start-webspeak.cmd` bzw. `./start-webspeak.sh` starten. Die Pakete enthalten Node.js und Produktionsabhängigkeiten.
+
+### Aus dem Quellcode
+
+```bash
+git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm rebuild @discordjs/opus --foreground-scripts
+npm --prefix web ci
+npm --prefix web run build
+npm run build
+npm start
+```
+
+Für den Bau von `@discordjs/opus` werden Python, Make und eine C/C++-Toolchain benötigt.
+
+### Erste Konfiguration
+
+1. `http://:3040/admin` öffnen.
+2. Mit `admin` / `admin` anmelden und sofort ein neues Passwort mit mindestens 12 Zeichen setzen.
+3. Unter **Server** TeamSpeak-Ziel und Zugriffsmethode konfigurieren, zum Beispiel `voice.example.com#9987`.
+4. Für öffentliche Nutzung HTTPS einrichten; bei aktiviertem WebRTC den im Adminbereich angezeigten UDP-Bereich freigeben.
+
+## ⚠️ Voraussetzungen und Hinweise
+
+| Bereich | Hinweis |
+| --- | --- |
+| Browser | Aktuelles Chrome, Edge oder ein moderner WebRTC-fähiger Browser wird empfohlen. Mikrofon- und Fenster-Audio benötigen normalerweise HTTPS. |
+| TeamSpeak-Netzwerk | Der WebSpeak-Host muss den Zielserver erreichen können; der Standard-Sprachport ist `9987`. |
+| Webnetzwerk | Der Dienst verwendet `3040/TCP`; öffentlich sollte ein HTTPS-Reverse-Proxy für Seite und WebSocket verwendet werden. |
+| IPv6 | Literale Ziele als `[2001:db8::1]#9987` eintragen. Host/Container benötigen geroutetes IPv6, aktiviertes IPv6 in Betriebssystem und Node.js sowie passende Firewall-Regeln. |
+| WebRTC | Standardbereich `40000–40099/UDP`; den gesamten Bereich freigeben und WebRTC vor einer Änderung deaktivieren. |
+| Gespeicherte Identität | Eine Browseridentität kann nur eine aktive gespeicherte Verbindung halten. Für parallele Verbindungen deaktivieren oder ein anderes Browserprofil verwenden. |
+| Begleitton | Nur auf dem Desktop verfügbar und WebRTC erforderlich. Bei Fenster- oder Tab-Freigabe auch Audio freigeben. |
+| Daten | Docker verwendet `webspeak-data`; Release-Pakete und Quellcode verwenden `data/`. Vor Updates sichern. |
+| Sitzungslimit | Eine Instanz akzeptiert bis zu 100 aktive Browser-Sitzungen. |
diff --git a/docs/README.en.md b/docs/README.en.md
new file mode 100644
index 0000000..87f7373
--- /dev/null
+++ b/docs/README.en.md
@@ -0,0 +1,225 @@
+# WebSpeak · English
+
+[Project home](../README.md) · [简体中文](./README.zh-CN.md) · [Deutsch](./README.de.md)
+
+WebSpeak is a self-hosted browser client and voice gateway for TeamSpeak 3 and TeamSpeak 6. Visitors can join channels without installing a desktop client, while administrators manage the target servers, access policy, and runtime state from the web console.
+
+## Live demo
+
+URL:
+
+The public demo is hosted in Hong Kong and its network conditions and load may be unstable. Latency, disconnections, or temporary downtime do not represent every self-hosted deployment.
+
+## ✨ Features
+
+| Capability | Description |
+| --- | --- |
+| TeamSpeak compatibility | Supports TeamSpeak 3 and TeamSpeak 6 and automatically detects the target protocol. |
+| IPv6 targets | IPv6 TeamSpeak targets and IPv6 addresses resolved from hostnames are supported by default. |
+| Channels and members | Browse the channel tree, see live member states, and switch channels. |
+| Realtime voice | Opus audio with a compatibility transport and optional bundled WebRTC low-latency transport. |
+| Audio controls | Select microphones and speakers, adjust volume, test the microphone, mute, use VOX, and control member volume. |
+| Messaging and actions | Channel chat, server chat, private messages, poke actions, and whisper targets. |
+| Desktop accompaniment | Select an audio-enabled window or browser tab and share its sound with the current channel. |
+| Identity and access | Remembered identity, visitor-defined targets, and revocable expiring invite links. |
+| Administration | Manage targets, access policy, WebRTC, relays, invites, sessions, logs, diagnostics, and backups. |
+| User experience | Chinese, English, and German UI, light/dark themes, and responsive desktop/mobile layouts. |
+| Self-hosting | Data stays with the operator; Docker, Windows x64, and Linux x64 deployment options are provided. |
+
+## 🖼️ Screenshots
+
+The screenshots show the English welcome page, voice workspace, audio controls, and member menu.
+
+### Welcome page
+
+
+
+### Voice workspace
+
+
+
+### Audio controls
+
+
+
+### Member menu
+
+
+
+## 🧩 Advanced features
+
+These features are optional. WebSpeak continues to work with the compatibility voice transport when they are disabled. Configure them under **Administration → Servers**; saved changes apply to new connections.
+
+### 1. WebRTC low-latency voice
+
+WebRTC moves browser voice to a realtime media path and also enables desktop accompaniment. The current WebSpeak gateway provides it directly; no separate media server is required.
+
+1. Sign in at `/admin` and open **Advanced settings** on the **Servers** page.
+2. While WebRTC is disabled, choose the UDP start and end ports. The default range is `40000–40099`.
+3. Allow the complete UDP range in the WebSpeak host's security group and firewall.
+4. Enable **WebRTC** and save. New visitors will negotiate WebRTC; unsupported browsers and networks fall back to the compatibility transport.
+
+The port range is locked while WebRTC is enabled. Disable and save WebRTC before changing it, then update the firewall rules. Public deployments also need HTTPS.
+
+### 2. Relay mode
+
+Use a relay when a TeamSpeak server rejects connections from another region or when the direct path is unstable. It is not a VPN: it forwards only the TeamSpeak traffic of the current WebSpeak session, while the visitor still chooses the target server in the web page.
+
+A relay instance is a dedicated forwarding service with no visitor page or administration console. It accepts only gateway sessions with a matching token. Use a random token of at least 16 characters.
+
+#### Run from source
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm run build
+WEBSPEAK_MODE=relay \
+WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+WEBSPEAK_RELAY_HOST='0.0.0.0' \
+WEBSPEAK_RELAY_PORT='39087' \
+node dist/index.js
+```
+
+Windows PowerShell:
+
+```powershell
+$env:WEBSPEAK_MODE = "relay"
+$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
+$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
+$env:WEBSPEAK_RELAY_PORT = "39087"
+node .\dist\index.js
+```
+
+#### Run from a release package
+
+Download and extract the appropriate package from [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest):
+
+```bash
+# Linux
+export WEBSPEAK_MODE=relay
+export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
+export WEBSPEAK_RELAY_HOST='0.0.0.0'
+export WEBSPEAK_RELAY_PORT='39087'
+./runtime/node ./dist/index.js
+```
+
+On Windows PowerShell, set the same variables and run `.\runtime\node.exe .\dist\index.js`.
+
+#### Run with Docker
+
+```bash
+docker run -d --name webspeak-relay --restart unless-stopped --network host \
+ -e WEBSPEAK_MODE=relay \
+ -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+ -e WEBSPEAK_RELAY_PORT='39087' \
+ ghcr.io/echosixhiya/webspeak:latest
+```
+
+Allow the relay host's UDP listen port, `39087` by default.
+
+#### Enable it in the gateway
+
+1. Open **Administration → Servers → Relay server** and add one or more nodes.
+2. Set a custom display name, endpoint such as `relay.example.com#39087`, and matching token for each node, then save.
+3. Visitors can choose direct access or one of the configured relays on the welcome page.
+
+Disable and save the relay configuration to remove the relay option from the welcome page.
+
+### 3. Dependencies and attribution
+
+- The relay service is built into WebSpeak with Node.js standard libraries; it does not use GOST, sing-box, or another proxy framework.
+- WebRTC uses [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`, whose upstream project is licensed under MIT.
+- TeamSpeak protocol connectivity uses the project-maintained [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js) SDK fork.
+
+## 🧾 Changelog
+
+| Version | Date | Summary |
+| --- | --- | --- |
+| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | Improved welcome-page connection errors, preserved and safely truncated error codes, and added default IPv6 target support. |
+| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | Added server-password prompts, formal relay mode, multiple relay selection, and administrator connection-reason reporting. |
+| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | Simplified Docker deployment, supported local TeamSpeak targets, added a 15-second connection timeout, and made network monitoring continuous. |
+| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | Added German, Telegram, network performance, and master-volume features; fixed accompaniment volume fluctuation. |
+| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | Added desktop accompaniment, remembered-identity guidance, and the site icon; fixed WebRTC member volume. |
+| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | Fixed identity persistence and refined the theme toggle. |
+| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | Fixed WebRTC and channel chat and refined administration, logs, and mobile layouts. |
+| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | Added bundled WebRTC, migrated the TeamSpeak SDK, and improved member synchronization and voice buffering. |
+
+See the complete history in [CHANGELOG.md](../CHANGELOG.md).
+
+## 🚀 Deployment
+
+| Method | Best for | Environment |
+| --- | --- | --- |
+| Docker Compose (recommended) | Long-running servers, simple upgrades, and persistent data | Docker Engine + Docker Compose |
+| Release package | Running without Node.js or build dependencies | Windows x64 or Linux x64 |
+| From source | Development, debugging, and customization | Node.js 22.5+, Git, and native build tools |
+
+### Docker Compose (recommended)
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+docker compose pull
+docker compose up -d
+```
+
+Open `http://:3040` after startup. If using a reverse proxy, point it to that address. When WebRTC is enabled, allow the UDP range shown in the administration console. Data is stored in the `webspeak-data` volume.
+
+```bash
+docker compose ps
+docker compose logs -f webspeak
+```
+
+Upgrade:
+
+```bash
+git pull --ff-only
+docker compose pull
+docker compose up -d
+```
+
+Do not run `docker compose down -v`; it removes the database and administrator settings.
+
+### Release package
+
+Download the matching `windows-x64.zip` or `linux-x64.tar.gz` from [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest), extract it into a dedicated directory, and run `start-webspeak.cmd` on Windows or `./start-webspeak.sh` on Linux. Packages include the Node.js runtime and production dependencies.
+
+### From source
+
+```bash
+git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm rebuild @discordjs/opus --foreground-scripts
+npm --prefix web ci
+npm --prefix web run build
+npm run build
+npm start
+```
+
+Building `@discordjs/opus` requires Python, Make, and a C/C++ toolchain.
+
+### First-time setup
+
+1. Open `http://:3040/admin`.
+2. Sign in with `admin` / `admin` and immediately set a new password of at least 12 characters.
+3. Configure the TeamSpeak target and access mode under **Servers**, for example `voice.example.com#9987`.
+4. Configure HTTPS for public access; when WebRTC is enabled, allow the UDP range shown in the console.
+
+## ⚠️ Requirements and notes
+
+| Area | Requirement or note |
+| --- | --- |
+| Browser | Use a current Chrome, Edge, or other modern browser with WebRTC support. Microphone and window audio normally require HTTPS. |
+| TeamSpeak network | The WebSpeak host must reach the target TeamSpeak server; the default voice port is `9987`. |
+| Web network | The service uses `3040/TCP`; public deployments should expose the page and WebSocket through an HTTPS reverse proxy. |
+| IPv6 | Write literal targets as `[2001:db8::1]#9987`. The host/container needs routed IPv6, IPv6 enabled in the OS and Node.js, and the relevant firewall rules. |
+| WebRTC | The default range is `40000–40099/UDP`; allow it and disable WebRTC before changing the range. |
+| Remembered identity | One browser identity can hold one active remembered connection. Disable it for parallel connections or use another browser profile. |
+| Accompaniment | Desktop only and requires WebRTC. Enable audio sharing when selecting a window or tab. |
+| Data | Docker data is in `webspeak-data`; release packages and source installs use `data/`. Back up before upgrades. |
+| Session limit | One instance accepts up to 100 active browser sessions. |
+
diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md
new file mode 100644
index 0000000..116ac96
--- /dev/null
+++ b/docs/README.zh-CN.md
@@ -0,0 +1,225 @@
+# WebSpeak · 简体中文
+
+[返回项目首页](../README.md) · [English](./README.en.md) · [Deutsch](./README.de.md)
+
+WebSpeak 是一个可自行部署的 TeamSpeak 3 / TeamSpeak 6 网页客户端与语音网关。用户无需安装桌面客户端即可从浏览器加入频道,管理员可以在控制台管理目标服务器、访问方式和运行状态。
+
+## 在线 Demo
+
+地址:
+
+公共 Demo 位于香港,网络和负载可能不稳定。延迟、断线或暂时不可用不代表自行部署后的实际表现。
+
+## ✨ 特性
+
+| 能力 | 说明 |
+| --- | --- |
+| TeamSpeak 兼容 | 支持 TeamSpeak 3 与 TeamSpeak 6,并自动探测目标服务器协议。 |
+| IPv6 目标 | 默认支持 IPv6 TeamSpeak 目标和域名解析出的 IPv6 地址。 |
+| 频道与成员 | 浏览频道树、查看实时成员状态并切换频道。 |
+| 实时语音 | 使用 Opus,支持兼容传输和可选的内置 WebRTC 低延迟传输。 |
+| 音频控制 | 选择麦克风与扬声器、调节音量、测试麦克风、闭麦、VOX 和成员独立音量。 |
+| 消息与互动 | 支持频道消息、服务器消息、私聊、戳一戳和耳语目标。 |
+| 桌面端伴奏 | 在桌面浏览器选择带音频的窗口或标签页,将声音分享给当前频道。 |
+| 身份与访问 | 支持身份保持、访客自定义目标和可撤销、可过期的邀请链接。 |
+| 管理控制台 | 管理目标、访问策略、WebRTC、中继、邀请、会话、日志、诊断和备份。 |
+| 界面体验 | 提供中文、English、Deutsch、浅色/深色主题及响应式桌面/移动布局。 |
+| 自托管 | 数据由部署者保存,提供 Docker、Windows x64 和 Linux x64 方案。 |
+
+## 🖼️ 界面截图
+
+以下截图展示中文界面的欢迎页、语音工作区、音量控制和成员操作菜单。
+
+### 欢迎页
+
+
+
+### 语音工作区
+
+
+
+### 音量控制
+
+
+
+### 成员菜单
+
+
+
+## 🧩 高级功能
+
+高级功能均为可选项;关闭时仍可使用兼容语音传输。配置入口在管理员控制台的“服务器”页,保存后对新连接生效。
+
+### 1. WebRTC 低延迟语音
+
+WebRTC 将浏览器语音切换到实时媒体通道,也支持桌面端伴奏。媒体服务由当前 WebSpeak 网关直接提供,不需要另设媒体服务器。
+
+1. 登录 `/admin`,打开“服务器”页的“高级参数”。
+2. 关闭 WebRTC 时设置 UDP 起止端口,默认范围为 `40000–40099`。
+3. 在 WebSpeak 主机的安全组和防火墙中放行整个 UDP 范围。
+4. 勾选“启用 WebRTC”并保存,用户重新进入后即可协商;不支持时会回退到兼容传输。
+
+WebRTC 启用后端口范围会锁定。要修改端口,先关闭 WebRTC 并保存,再修改端口并同步防火墙规则。公网使用还需要 HTTPS。
+
+### 2. 中继模式
+
+中继适用于 TeamSpeak 拒绝境外连接或直连不稳定的情况。它不是 VPN,只转发当前 WebSpeak 会话的 TeamSpeak 数据;目标服务器仍由用户在网页中选择。
+
+中继实例是专用转发服务,不提供前台和管理员后台,只接受带匹配令牌的 WebSpeak 网关会话。令牌至少使用 16 个字符的随机值。
+
+#### 源码启动
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm run build
+WEBSPEAK_MODE=relay \
+WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+WEBSPEAK_RELAY_HOST='0.0.0.0' \
+WEBSPEAK_RELAY_PORT='39087' \
+node dist/index.js
+```
+
+Windows PowerShell:
+
+```powershell
+$env:WEBSPEAK_MODE = "relay"
+$env:WEBSPEAK_RELAY_TOKEN = "replace-with-a-long-random-token"
+$env:WEBSPEAK_RELAY_HOST = "0.0.0.0"
+$env:WEBSPEAK_RELAY_PORT = "39087"
+node .\dist\index.js
+```
+
+#### 发布包启动
+
+从 [Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) 下载并解压对应平台的包:
+
+```bash
+# Linux
+export WEBSPEAK_MODE=relay
+export WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token'
+export WEBSPEAK_RELAY_HOST='0.0.0.0'
+export WEBSPEAK_RELAY_PORT='39087'
+./runtime/node ./dist/index.js
+```
+
+Windows PowerShell 使用同名环境变量后运行 `.\runtime\node.exe .\dist\index.js`。
+
+#### Docker 启动
+
+```bash
+docker run -d --name webspeak-relay --restart unless-stopped --network host \
+ -e WEBSPEAK_MODE=relay \
+ -e WEBSPEAK_RELAY_TOKEN='replace-with-a-long-random-token' \
+ -e WEBSPEAK_RELAY_PORT='39087' \
+ ghcr.io/echosixhiya/webspeak:latest
+```
+
+放行中继主机的 UDP 监听端口,默认是 `39087`。
+
+#### 在网关中启用
+
+1. 管理员控制台 → “服务器” → “中继服务器”,添加一个或多个节点。
+2. 为每个节点填写自定义名称、地址(例如 `relay.example.com#39087`)和匹配令牌并保存。
+3. 访客欢迎页即可选择直连或其中一个中继。
+
+关闭并保存中继配置后,访客页面不会显示中继选项。
+
+### 3. 依赖与归属
+
+- 中继服务是 WebSpeak 自带实现,使用 Node.js 标准库,不依赖 GOST、sing-box 或其他代理框架。
+- WebRTC 使用 [werift](https://github.com/shinyoshiaki/werift-webrtc) `0.24.4`,上游采用 MIT 许可证。
+- TeamSpeak 协议使用项目维护的 [EchoSixHIYA/teamspeak-js](https://github.com/EchoSixHIYA/teamspeak-js) SDK fork。
+
+## 🧾 更新日志
+
+| 版本 | 日期 | 摘要 |
+| --- | --- | --- |
+| [v0.2.1](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.1) | 2026-09-13 | 优化首页连接错误显示,保留并安全截断错误代码;默认支持 IPv6 TeamSpeak 目标。 |
+| [v0.2.0](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.2.0) | 2026-09-10 | 增加服务器密码提示、正式中继部署模式、多中继选择和管理员日志原因显示。 |
+| [v0.1.8](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.8) | 2026-09-08 | 简化 Docker 部署,支持同机 TeamSpeak,增加 15 秒连接超时和持续网络监测。 |
+| [v0.1.7](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.7) | 2026-09-06 | 增加德语、Telegram、网络性能面板和整体音量;修复伴奏音量波动。 |
+| [v0.1.6](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.6) | 2026-09-04 | 增加桌面端伴奏、身份保持提醒和网站图标;修复 WebRTC 成员独立音量。 |
+| [v0.1.5](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.5) | 2026-09-04 | 修复身份保存逻辑并优化主题切换。 |
+| [v0.1.4](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.4) | 2026-09-03 | 修复 WebRTC、频道聊天并优化管理页、日志和移动端布局。 |
+| [v0.1.3](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/tag/v0.1.3) | 2026-09-03 | 引入内置 WebRTC、迁移 TeamSpeak SDK 并改善成员同步和语音缓冲。 |
+
+完整记录见 [CHANGELOG.md](../CHANGELOG.md)。
+
+## 🚀 部署方案
+
+| 方案 | 适用场景 | 环境 |
+| --- | --- | --- |
+| Docker Compose(推荐) | 长期运行、升级简单、数据持久化 | Docker Engine + Docker Compose |
+| 发布包 | 不安装 Node.js 和构建依赖 | Windows x64 或 Linux x64 |
+| 源码运行 | 开发、调试和二次开发 | Node.js 22.5+、Git 和本地编译工具 |
+
+### Docker Compose(推荐)
+
+```bash
+git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+docker compose pull
+docker compose up -d
+```
+
+启动后访问 `http://<你的主机>:3040`。使用反向代理时将上游指向该地址;启用 WebRTC 时放行控制台显示的 UDP 端口范围。数据保存在 `webspeak-data` volume 中。
+
+```bash
+docker compose ps
+docker compose logs -f webspeak
+```
+
+升级:
+
+```bash
+git pull --ff-only
+docker compose pull
+docker compose up -d
+```
+
+不要执行 `docker compose down -v`,否则会删除数据库和管理员设置。
+
+### 发布包
+
+从 [GitHub Releases](https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak/releases/latest) 下载对应的 `windows-x64.zip` 或 `linux-x64.tar.gz`,解压后运行 Windows 的 `start-webspeak.cmd` 或 Linux 的 `./start-webspeak.sh`。发布包自带 Node.js 运行时和生产依赖。
+
+### 源码运行
+
+```bash
+git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
+cd WebSpeak-client-for-TeamSpeak
+npm ci --ignore-scripts
+npm run prepare:sdk
+npm rebuild @discordjs/opus --foreground-scripts
+npm --prefix web ci
+npm --prefix web run build
+npm run build
+npm start
+```
+
+构建 `@discordjs/opus` 需要 Python、Make 和 C/C++ 编译工具。
+
+### 首次配置
+
+1. 打开 `http://<你的主机>:3040/admin`。
+2. 使用默认账号 `admin` / `admin` 登录,并立即设置至少 12 位的新密码。
+3. 在“服务器”页配置 TeamSpeak 目标和访问方式,例如 `voice.example.com#9987`。
+4. 公网使用时配置 HTTPS;启用 WebRTC 时放行控制台显示的 UDP 范围。
+
+## ⚠️ 要求和注意事项
+
+| 项目 | 要求或注意事项 |
+| --- | --- |
+| 浏览器 | 建议使用最新版 Chrome、Edge 或其他支持 WebRTC 的现代浏览器。麦克风和窗口音频通常要求 HTTPS。 |
+| TeamSpeak 网络 | WebSpeak 主机必须能够访问目标 TeamSpeak;默认语音端口为 `9987`。 |
+| Web 服务网络 | 服务使用 `3040/TCP`,公网建议通过 HTTPS 反向代理提供网页和 WebSocket。 |
+| IPv6 | IPv6 字面量写为 `[2001:db8::1]#9987`。主机/容器需要可路由 IPv6、启用 IPv6 的操作系统和 Node.js,以及相应防火墙放行。 |
+| WebRTC | 默认使用 `40000–40099/UDP`,启用后需放行整个范围;修改范围前先关闭 WebRTC。 |
+| 身份保持 | 同一浏览器身份同时只能保持一条活动连接;并行连接请关闭第二条的身份保持或使用其他浏览器配置文件。 |
+| 伴奏 | 仅桌面端提供且要求 WebRTC;选择窗口或标签页时还要勾选共享音频。 |
+| 数据 | Docker 数据在 `webspeak-data` volume;发布包和源码运行数据在 `data/`。升级前建议备份。 |
+| 会话上限 | 单实例最多允许 100 个活动网页会话。 |
+