WebSpeak · English
Project home · 简体中文 · Deutsch · Русский · 日本語
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.
Latest release: read the 0.2.8 changelog on this page.
Skin authors should start with the current skin development guide, which combines the .wskin package format, current runtime APIs, permission boundaries, and authoring workflow. The repository also includes the WebSpeak skin development skill for agents.
Live demo
- Shanghai: https://shanghai.webspeak.online
- Hong Kong: https://webspeak.online
Network conditions and load may vary at either demo. Latency, disconnections, or temporary downtime do not represent every self-hosted deployment.
✨ Features
| Capability | Description |
|---|---|
| TeamSpeak compatibility | Supports TeamSpeak 3 and TeamSpeak 6, automatically detecting the target protocol from the reported version. |
| Cross-platform P2P screen sharing | Browser users and native TeamSpeak 6 clients can start and watch each other's screen shares; WebRTC/ICE carries media directly while WebSpeak relays negotiation signaling only. |
| 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. |
| Browser-side noise suppression | Optional microphone noise suppression runs at the browser capture stage, without adding server-side audio processing. |
| 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, revocable expiring invite links, and TeamSpeak 3 identity import, conversion, validation, and export. |
| Administration | Manage targets, access policy, public media address, IPv6 candidates, voice STUN, relays, invites, sessions, logs, diagnostics, and backups. |
| Engineering structure | In 0.2.6, gateway voice, session events, audio, and screen-share coordination were split into modules; frontend voice and admin pages were decomposed into components, composables, and services, with lifecycle and reconnect tests. |
| Skins | Protected Day, Night, and ILLUSIA skins, plus instance-managed .wskin appearances with administrator enable/default controls. |
| User experience | Chinese, English, German, Russian, and Japanese UI with responsive desktop/mobile layouts. |
| Self-hosting | Data stays with the operator; packages include Windows x64 and Linux x64/ARM64, Docker supports amd64/arm64, and Android APKs target arm64-v8a, armeabi-v7a, and x86_64. |
TeamSpeak version compatibility
Voice uses the standard TeamSpeak client protocol and needs no Query credentials. Optional TeamSpeak administration uses separate WebQuery / ServerQuery credentials.
- TeamSpeak 3: protocol detection recognizes the leading
3.xversion. Older server releases should be validated with the specific deployment because not every historical release has been independently tested. - TeamSpeak 6: supported, including screen sharing with native TeamSpeak 6 clients.
- Auto-detection: the gateway reads the server's
versionresponse and records the detected protocol in connection diagnostics. - The gateway uses the upstream
@honeybbq/teamspeak1.0 SDK; WebSpeak targets TeamSpeak 3 and TeamSpeak 6.
Optional TeamSpeak administration
WebSpeak administration and visitor voice do not depend on this feature. In fixed-server mode, open /admin/ts-admin to configure the TS management connection.
- Enable WebQuery on the TS server and have an authorized TS administrator create an API key. Enter the WebQuery HTTP/HTTPS URL and key. This is the TS Query endpoint, not the WebSpeak website. TS3 (3.12+) and TS6 are supported.
- Virtual server ID
0selects the fixed target's voice port. For a restricted key, enter its authorized server ID. Read-only keys support viewing; changes require writable scope and the corresponding TS permissions. - Alternatively, choose ServerQuery SSH, or ServerQuery TCP for TS3. Enter the Query host (blank uses the fixed target), Query port, username and password; SSH also requires a trusted host-key fingerprint. This is the TS Query service, not an operating-system SSH login. TCP is unencrypted and suitable only for trusted networks. HTTPS certificates must be trusted by the gateway.
- Save and connect or refresh to inspect the server, channels, members, server groups and bans. Actions include server settings, channel creation/renaming/deletion, moving/kicking/banning members by identity, group assignment and removing bans. Actions require confirmation and TS permission checks; lists refresh manually.
Credentials are encrypted on the server and never returned by the API. Back up both the database and master.key. A failed management connection does not affect WebSpeak administration or ordinary voice. UID bans avoid banning other users sharing the gateway IP.
🖼️ 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.
- Sign in at
/adminand open Advanced settings on the Servers page. - While WebRTC is disabled, choose the UDP start and end ports. The default range is
40000–40099. - Allow the complete UDP range in the WebSpeak host's security group and firewall.
- 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.
Voice WebRTC behind a reverse proxy or TCP tunnel
The WebRTC advanced settings now include a public media address, IPv6 candidates, and a voice STUN server. The media address must be a gateway IP or hostname reachable over UDP, without a scheme, path or port. It overrides the address inferred from Origin, X-Forwarded-Host, or Host; DNS names are resolved into IP candidates. IPv6 is opt-in and retains IPv4 candidates.
Set a UDP STUN URL such as stun:turn.teamspeak.com:3478 to use the same discovery service in the browser and gateway. Empty preserves the previous behavior: the gateway library uses its built-in STUN service while the browser has none. The gateway requires an IPv4-reachable UDP STUN hostname or IPv4 address; IPv6 literals and TURN credentials are not accepted. IPv6 media candidates work independently of STUN. Save and reconnect to apply changes.
HTTP/WebSocket reachability does not imply media reachability. Allow the complete configured UDP range and preserve port numbers when using static port forwarding. STUN discovers mappings but cannot relay audio or traverse every NAT. Deployments with only a TCP tunnel and no usable UDP/IPv6 path still fall back to compatibility transport.
Screen-share ICE candidates
Screen-share media still prefers a direct browser-to-browser path; WebSpeak only relays negotiation signaling. By default it uses TeamSpeak's public STUN services to discover server-reflexive candidates; STUN does not carry media. If the deployment has an authorized external TURN service, set WEBSPEAK_SCREEN_SHARE_ICE_SERVERS before starting WebSpeak with a JSON array, for example:
[{"urls":"stun:turn.teamspeak.com:3478"},{"urls":"turns:turn.example.com:5349","username":"<username>","credential":"<credential>"}]
With TURN configured, media may use that external TURN service but never the WebSpeak gateway; without it, only direct ICE paths and STUN are used.
Cross-platform P2P screen sharing
Browser users and native TeamSpeak 6 clients can discover, start, and watch each other's screen shares. Screen media between browsers, and between a browser and a native client, is sent over a WebRTC/ICE peer-to-peer path whenever possible; WebSpeak handles session authorization, share state, and SDP/ICE signaling, but does not carry the screen media. The UI includes live status, viewer count, player volume, fullscreen, and exit controls. Share settings support up to 1080p and 60 FPS, with live WebRTC statistics for diagnosis.
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 runs both the legacy UDP compatibility forwarder and a separate voice gateway, with no visitor page or administration console. The ingress gateway signs and delegates a one-time voice ticket with the shared token; the browser then connects directly to the relay, and the relay connects to TeamSpeak. The page stays on the ingress gateway URL. Use a random token of at least 16 characters.
Run from source
git clone --depth 1 https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
cd WebSpeak-client-for-TeamSpeak
npm ci --ignore-scripts
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:
$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:
# 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
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
The voice gateway listens on 127.0.0.1:3041 by default. Give the relay an HTTPS hostname and reverse-proxy it to 127.0.0.1:3041 with Caddy or an equivalent proxy, for example:
relay.example.com {
reverse_proxy 127.0.0.1:3041
}
In the ingress gateway's relay settings, set Voice gateway address to that HTTPS origin (for example, https://relay.example.com). The page remains on its original gateway, then opens a WSS connection to this relay hostname. WebRTC is enabled by default on the relay; also allow UDP 40000-40099 and set WEBSPEAK_RELAY_WEBRTC_PUBLIC_HOST to a public relay IP or directly reachable hostname. Update firewall rules if you change the WebRTC UDP range. Keep UDP 39087 open for compatibility with older forwarding.
Enable it in the gateway
- Open Administration → Servers → Relay server and add one or more nodes.
- Set a display name, UDP endpoint such as
relay.example.com#39087, HTTPS voice gateway origin such ashttps://relay.example.com, and matching token for each node, then save. - 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
0.24.4, whose upstream project is licensed under MIT. - TeamSpeak protocol connectivity uses the project-maintained EchoSixHIYA/teamspeak-js SDK fork.
🧾 Changelog
v0.2.8 · 2026-10-17
Screen sharing and connection reliability
- Fixed negotiation and video-track handling for screen sharing between browsers and native TeamSpeak clients.
- Improved handling of rapid channel switches to reduce inconsistent client state.
- Fixed content rendering in some skin components and localization in the KAAK skin.
Interface improvements
- Audio device names now display in full and wrap when space is limited, making long names easier to distinguish.
- Fixed avatar fallback text being selected unintentionally.
v0.2.7 · 2026-10-13
A more open skin system
- A more open skin editor and runtime now let authors customize the style and position of any component and add widgets.
- After entering the voice panel, open a new administrator-console window in the same browser and sign in to activate the skin editor.
- The KAAK skin is included as a development example.
- Updated the skin development Agent Skill.
Enhancements
- Server addresses can now be resolved through SRV records and TeamSpeak Nickname entries.
- Free mode supports managing multiple server tabs; these controls are unavailable in fixed-server mode.
- Added a screen-share bitrate option.
- WebSpeak now saves entered channel passwords in the browser.
- Locked channels now show a lock icon.
- Chat history is now stored persistently.
Bug fixes
- Fixed address parsing.
- Fixed focus conflicts between volume controls and dragging member cards.
- Fixed user status being incorrectly parsed as unknown.
v0.2.6 · 2026-10-08
Relative to 0.2.5, broadly refactored gateway voice, shared protocol, frontend voice workspace, and admin modules; fixed #6/#7/#10, implemented #9/#12 settings, and fixed the existing-TS6-share discovery case reported in PR #13. Improved Opus/session lifecycles and mobile controls. Packages: Windows x64, Linux x64/ARM64, Docker amd64/arm64, and Android arm64-v8a/armeabi-v7a/x86_64.
v0.2.5 · 2026-09-27
Added .wskin skins, administrator enable/default controls, and protected Day/Night/ILLUSIA built-ins; removed the unfinished Aurora Voice sample, fixed skin-load flashes, dark-control contrast, and voice-room artwork layering, and added the official skin-development Agent Skill.
v0.2.4 · 2026-09-22
Added cross-platform P2P screen sharing between browsers and native TeamSpeak 6 clients; added STUN/external-TURN configuration, live player and viewer state, 1080p/60 FPS capture settings, and WebRTC statistics; refined screen-share interactions and added visitor numbering.
v0.2.3 · 2026-09-19
Added channel member scheduling and permission-aware direct moves; added avatar, mute-state, and remembered-identity support; refreshed feature screenshots and documentation for all five languages.
v0.2.2 · 2026-09-17
Added browser-side microphone noise suppression, Russian and Japanese UI, and per-language welcome text; refined volume interaction and error messages/codes on top of PR #2.
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 · 2026-09-10
Added server-password prompts, formal relay mode, multiple relay selection, and administrator connection-reason reporting.
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 · 2026-09-06
Added German, Telegram, network performance, and master-volume features; fixed accompaniment volume fluctuation.
v0.1.6 · 2026-09-04
Added desktop accompaniment, remembered-identity guidance, and the site icon; fixed WebRTC member volume.
v0.1.5 · 2026-09-04
Fixed identity persistence and refined the theme toggle.
v0.1.4 · 2026-09-03
Fixed WebRTC and channel chat and refined administration, logs, and mobile layouts.
v0.1.3 · 2026-09-03
Added bundled WebRTC, migrated the TeamSpeak SDK, and improved member synchronization and voice buffering.
🚀 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/ARM64 |
| From source | Development, debugging, and customization | Node.js 22.12+, Git, and native build tools |
Docker Compose (recommended)
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://<your-host>: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.
docker compose ps
docker compose logs -f webspeak
Upgrade:
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, linux-x64.tar.gz, or linux-arm64.tar.gz from GitHub Releases. Extract it and run the included launcher. Packages include the Node.js runtime and production dependencies. Docker images support amd64/arm64.
Android APKs for arm64-v8a, armeabi-v7a, and x86_64 are also attached. They use debug signing for sideload testing; they are not Google Play packages, and real-device voice still needs validation.
From source
git clone https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
cd WebSpeak-client-for-TeamSpeak
npm ci --ignore-scripts
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
- Open
http://<your-host>:3040/admin. - Sign in with
admin/adminand immediately set a new password of at least 12 characters. - Configure the TeamSpeak target and access mode under Servers, for example
voice.example.com#9987. - 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. |
Contributors and contributions
This list acknowledges the upstream SDK author, contributions through merged GitHub PRs, and original work adapted into independently distributed skin packages.
- HoneyBBQ — Author of the upstream teamspeak-js (
@honeybbq/teamspeak) SDK, which provides the TeamSpeak protocol client used by WebSpeak. - LainHE — merged PRs #2, #8, #28, #31–#35, #37, #38 and #40, covering browser error translations, scaling and home layout, screen-share bitrate and viewer avatars, relay target validation and recovery, trusted proxy handling, connection-failure propagation, audio fault reporting, and WebRTC failure cleanup.
- TimmySheep — merged PRs #13 and #15–#24, covering existing TS6 share discovery, share aspect ratio, mobile voice/wake/skin-menu behavior, identity channel options, PWA/theme work, chat history, member audio states, and microphone permission.
- yichen11818 — PR #25 added registered TeamSpeak nickname connections and preserved nickname targets; PR #51 improved KAAK workspace retention and reconnection after the first connection. PR #27 and PR #52 supplied the original Discord skin design and implementation (commit author yumi), later adapted by the WebSpeak project into an independently distributed
.wskinskin.
Functional plugin development (dev)
Plugin API, server/instance scopes, Watch Together example, and GitHub distribution:



