How voice works
Peer to peer WebRTC: the mesh, signalling, ICE, push to talk, channels and mutes.
Voice goes browser to browser over WebRTC. Our servers only pass the small setup messages between players; no audio reaches them and nothing is recorded. How to use it: Voice chat.
How it works now
- Browser to browser over WebRTC: one connection per pair, no mixing server. In a game, teammates first, at most 7 of them and 15 connections in all; the Group channel is a second mesh.
- Setup messages ride the game's own socket, or the group's HTTP calls and poll. No audio reaches our servers and nothing is recorded.
- STUN finds a direct path for most pairs; TURN is a provider's, used only when its key is set.
- Opus with the browser's defaults; echo cancellation, noise suppression and automatic gain on.
- One channel active at a time: Team, All, Nearby or Group.
- Press to speech: 99 to 281 ms, median 276 (15 Nov 2026, a loaded machine).
- Signed-in players only, in games on our servers and on the group page.
Last checked: 16 Nov 2026.
Key decisions
| Decision | Why | Rejected | Date |
| Peer to peer, team voice first | No audio reaches our servers and nothing is recorded | None recorded | 11 Nov 2026 |
| A silent track while you aren't talking | A stream that stops and starts is played late: the listener's buffer grew to about a second after a few lines | Stopping the track between lines | 15 Nov 2026 |
| Push to talk swaps the track on connections already up | The first word goes out at once, with no renegotiation | None recorded | 15 Nov 2026 |
| Microphone on Auto never takes a Bluetooth mic when there's another | A headset's own mic switches it to its headset profile and every sound drops to low quality | None recorded | 16 Nov 2026 |
| No voice in games hosted on a player's computer | The host's tab would pass on players' addresses | None recorded | Not known |
| One tab holds group voice | A second tab joined as the same member and cut the first one's call | One call per tab | 16 Nov 2026 |
Changes that mattered
Known limits and next
- Your upload grows with the people who hear you: one stream per connection. The bitrate per stream is the browser's Opus default and not measured yet.
- A pair with no direct path needs the provider's TURN; without it, after 3 tries that player shows "Voice couldn't connect on this network".
- As in any WebRTC call, players you connect to can see your network address.
The mesh
- Each player in voice connects straight to each player they may hear: one WebRTC connection per pair, no mixing server.
- In a game the room hands every member their list: teammates in voice (spectators: other spectators), or everyone in voice there where Nearby is on. Teammates first, at most 7 of them, and 15 connections in all.
- The Group channel is a second mesh, between the group's members wherever they are: the group page, this game or another one.
- The list goes out again whenever it changes: a team switch, a join or leave, a channel change, a staff move. A browser connects to everyone new on it and drops anyone who left, so a team switch tears down the old team's connections and builds the new ones.
- Each time you turn voice on you get a fresh session number. Messages name it, so a reused player id or an old message never reaches the wrong connection.
Signalling
| Mesh | Carried by | Messages |
| Game | The game's own socket to its room | voice (on or off, your channel) and rtc (to, session, data) from you; voice (your session, whether you may talk, your list) and rtc (from, session, data) back |
| Group | The group's HTTP calls and its poll | POST /api/groups/{code}/voice and /rtc; waiting messages ride the next poll, kept 30 s, 40 a member |
- The lower id makes the offer, the other answers. Network candidates go inside the offer and the answer (gathered for up to 2.5 s first), so a connection takes two messages.
- The server passes a message on only when both players are in voice and linked and the session matches. It strips it to a description (16,000 characters at most) or a candidate (1,000), and never logs it.
- Limits a player: 300 setup messages per 10 s in a game, 120 in a group; voice on or off 8 times a minute; 30 channel changes a minute.
Getting through networks
- STUN by default: stun.l.google.com:19302 and stun.cloudflare.com:3478. That finds a direct path for most pairs.
- TURN is a provider's, not ours: Cloudflare Realtime TURN, with credentials made per request that last 4 hours, or any other service's list. The owner turns it on with a key; no code change. Browsers get the list from
/api/voice/ice, signed in only. - A connection that isn't up in 15 s, or whose network check fails, is offered again, 3 tries in all. Then that player shows "Voice couldn't connect on this network".
Sound
- Opus, the codec every browser uses for WebRTC audio. The code sets no bitrate, DTX or FEC: those are the browser's defaults.
- The microphone opens with echo cancellation, noise suppression and automatic gain on.
- While you aren't talking each connection carries a silent track, never nothing. A stream that stops and starts is played late: the listener's buffer grows on each gap, measured at about a second after a few lines.
Push to talk
- The connections are up before you talk. Pressing the key opens the microphone (even with no one on your channel yet: a connection that comes up later gets it at once) and swaps its track in for the silent one on the connections your channel reaches (no renegotiation), so the first word goes out at once.
- Key up swaps the silence back at once. The microphone itself stops 1.5 s later, so a quick second line needs no new open.
- A tap (up within 250 ms) keeps the mic on until the next tap.
- Open mic: the microphone stays open while anyone can hear you, and the track goes on while your level is over the sensitivity line: RMS 0.005 at 0 up to 0.12 at 1 (0.005 × 24 to the power of the setting; default 0.35, about 0.015), held 300 ms after it drops.
- Press to speech, measured 15 Nov 2026 on a loaded machine: 99 to 281 ms, median 276.
Channels
One channel is active at a time, by page: the game's (Team or All, or Nearby where it's on) on the game page, the group's everywhere else. Both calls stay connected; the other one is silent and its microphone track is silence, so a switch is instant with no reconnect.
- Team: connections to your team, the default. Spectators are a team of their own.
- All: everyone in the game who hears All. Switch with Y (rebindable in Keys) or a click on the pill's channel. The room links an enemy only while one of you talks on All and the other hears it, so the first switch takes about a second to connect.
- Hear All channel (on by default): you hear Team and All at once. Off, you hear only the channel you talk on. You always talk on exactly one.
- Nearby: everyone in voice in the room, each listener turning you down by distance.
- Group: the group mesh only.
No one on your channel shows the hollow pill; Team never falls back to All.
Microphones and headsets
- A Bluetooth headset switches to its headset profile (HFP) while its own microphone is open, and every sound, music and the game included, drops to low quality.
- So Microphone on Auto never takes a Bluetooth microphone when there's another: the laptop's built-in one or a USB one first, picked by the names the browser gives devices. A headset's mic is used only when it's the only one.
- Before the site may use the microphone, browsers hide device names. The first open takes the default, then moves to the better one at once if the default was a headset.
- A mic Auto picked that stays under RMS 2e-5 for 1.5 s (a laptop mic with the lid shut) is marked dead for this browser and the next best one opens.
- When a device comes or goes, an open microphone reopens if your choice is now another device, and one that's unplugged reopens at once. The new track replaces the old one on every connection, with no renegotiation. Voices move to your picked output, or to the new system default.
- Voice runs with the site, not the game page: browsing with your game still running keeps the call up, and a game ending leaves the group call as it was.
Who's talking
Every audio packet carries its sound level (the RTP audio level header). 20 times a second each browser reads the latest packet from each connection: a level over 0.012 counts as talking, held 300 ms. Your own mark comes from your microphone's level. Nothing about who's talking goes through our servers. The top bar and the game's corner read one list, the game's talkers and the group's: your mic, then up to three talkers coloured by channel, then +N.
Alone, tabs and reloads
- Alone: K and a locked-on mic open the microphone even when no one can hear you yet; the pill turns hollow, and a player who connects later gets your track at once. Open mic still waits for a listener, so a headset isn't held in its low-quality mode for nobody.
- One tab: group voice follows the browser, so one tab holds it: the first to open it, or whichever gets a click or key on a game or group page. It checks in every 2 s and counts as gone after 10. Before, a second tab joined as the same member and cut the first one's call.
- After a reload: browsers play no sound on a page that hasn't had a click or key press yet. A blocked voice turns the pill and the top bar's mic amber, "Press any key to hear voice", until the first key or click.
- Where K works: every page in voice except the editor and Settings. Off the game page it talks to your group.
- A 1 v 1: in a public game the second player joins the other team, so no one hears you on Team until a teammate turns voice on. Switch to All to talk to the other player.
More: Voice fixes: alone, two tabs, reloads.
Mutes
| Mute | Where it's enforced |
| Your own (J) | Your browser: the microphone is let go at once and the key does nothing |
| A player | Your browser plays nothing from them and shows no mark. Kept with your account (this browser's, signed out). Blocked players too. |
| Mute all | Your browser |
| A moderator's mute | The server: listen only until it ends |
| The first day | The server: accounts under a day old listen only, except in private games and unlisted groups |
Listen only is checked twice. The server drops a listen-only player's offer or answer if it offers to send audio, and every browser ignores audio from a peer the server marked listen-only.
Privacy
- Audio goes straight between players. Through a TURN relay it passes the provider, still encrypted as all WebRTC audio is.
- Nothing is recorded, and voice messages never go into replays.
- As in any WebRTC call, players you connect to can see your network address.
- Only in games on our servers: not offline, and not in games hosted on a player's computer, whose tab would otherwise pass on players' addresses.
- Guests listen only, and only through the relay, so no address passes either way. With no relay to hand, a guest hears nothing and the pill says why.
Cost
There's no server in the middle, so your upload grows with the people who hear you: one Opus stream up and one down per connection, silence included. Team voice in a 4 v 4 is 3 connections each; 8 people in a Hangout with Nearby on is 7 each. The bitrate per stream is the browser's Opus default, not set in the code and not measured yet.