SyncVerse add-on, in beta
Voice chat for your SyncVerse rooms
Players in a room hear each other, each voice coming from that player's avatar. Start with Simple: one Unity component and no extra server. Switch to Pro when rooms get bigger, players need echo cancellation, or you want voice in the browser.
This panel is a live SyncVerse room. It is shared with syncverse.aqaddoura.com, sye.aqaddoura.com, three.syncverse.aqaddoura.com and ChatVerse, so the people in it may be on any of those pages.
Simple or Pro
Both tiers are one setting on the same component: Tier = Simple or Tier = Pro. Push-to-talk, mute,
deafen, per-player volume, avatar positions and the speaking event behave the same in both.
| Tier | Simple (default) | Pro (beta) |
|---|---|---|
| How audio travels | Opus packets as unreliable view state on the room WebSocket you already have | WebRTC (UDP, with TCP and TURN fallbacks) through a LiveKit media server (SFU) |
| Extra server | None | The SyncVerse voice server, self-hosted next to SyncVerse Cloud. Audio does not go to a third party. |
| Good for | 2 to 8 players: jams, party games | 8 to 50 in one voice room: social spaces, mobile networks |
| Echo cancellation | WebGL only (the browser's). On desktop and mobile, use headphones or push-to-talk. | Wherever WebRTC runs: the browser, Unity WebGL, and native through the LiveKit Unity SDK |
| Latency | Rides on TCP: a lost packet holds up the ones behind it | UDP with loss recovery, usually 100 to 200 ms mouth to ear |
| Clients | Unity on all platforms | Web (@syncverse/voice) and Unity WebGL. Unity native is a draft. |
| What it costs you | Counts as normal room traffic | Voice minutes and people in voice at once (see pricing) |
| Turn it on | Add the component | Dashboard, project Settings, Voice Pro. Then set the tier. |
With FallbackToSimple on (the default), a Unity client that is refused Pro or cannot connect within 10 seconds
uses Simple instead.
From microphone to the avatar's position
Your game joins a SyncVerse room as usual. Voice rides along on that room, or on a voice room tied to it.
Simple: through the room connection
About 35 kbps per talker per listener, nothing while silent.
- Capture and detect speech Microphone at 16 kHz in 20 ms frames, then voice activity detection or push-to-talk.
- Encode Opus (Concentus, managed C#), two frames per packet, 25 packets a second.
- Send on your voice peer view Unreliable view state. The server relays it and drops it for listeners whose connection is backed up.
-
Play from the avatar
Jitter buffer, Opus decode with loss concealment, then a spatial
AudioSource(a Web Audio panner on WebGL).
Pro: WebRTC through the voice server
Each SyncVerse room gets its own voice room on the LiveKit server.
-
Ask for a voice token
POST /api/voice/tokenwith the room ticket the client already has. Tickets last 30 seconds, so the SDKs do it right after joining. - Get a narrow token Valid for one room of one project, microphone only: no camera, screen or data. A voice session keeps reconnects working for up to 6 hours.
- Connect over WebRTC UDP first. When UDP is blocked, ICE over TCP port 7881 or TURN. The server forwards each speaker only to listeners in that room.
-
Place voices on avatars
Each voice carries the SyncVerse player id (
sv.player), so clients can play it from the right avatar.
A few lines in Unity or on the web
In Unity, add the voice package next to the SyncVerse SDK and use GameObject > SyncVerse > Voice Chat. When the player joins a room, the component opens the microphone and starts sending while they speak.
- Transmit modes Voice activity (default), push-to-talk, open mic.
-
Per player
SetPlayerVolume,SetPlayerMuted, andOnPlayerSpeakingChangedfor speaker icons. -
3D or flat
SpatialBlend,MinDistanceandMaxDistance. Set the blend to 0 for radio-style voice. -
Web
@syncverse/voicejoins Pro voice from any page that uses@syncverse/client.
var voice = SyncVerseVoice.Instance;
voice.Mode = TransmitMode.PushToTalk; // or VoiceActivity (default), OpenMic
voice.PushToTalkHeld = talkAction.IsPressed ();
voice.SetPlayerVolume (player.Id, 0.5f);
voice.SetPlayerMuted (player.Id, true);
// Speaker icons on nameplates
voice.OnPlayerSpeakingChanged += (id, speaking) =>
nameplates[id].ShowSpeaker (speaking);
// Optional: where each player's voice comes from
voice.AvatarResolver = p => avatars[p.Id].head;
// Same component. Set the tier before joining:
// the first voice token needs the room ticket (about 30 s).
var voice = SyncVerseVoice.Instance;
voice.Tier = VoiceTier.Pro;
voice.FallbackToSimple = true; // default: Simple if Pro fails
voice.OnTierChanged += tier => Debug.Log ("voice tier " + tier);
voice.OnProVoiceError += e => Debug.Log ("Pro voice: " + e);
// e.g. voice_disabled, voice_minutes_exhausted
import { SyncVerseSession } from "@syncverse/client";
import { SyncVerseVoice } from "@syncverse/voice";
const session = new SyncVerseSession({ appId: "sv_app_...", roomName: "lobby" });
let voice: SyncVerseVoice | null = null;
session.on("joined", async (room) => {
voice?.leave();
// Mints a token with the room ticket. The mic stays off.
voice = await SyncVerseVoice.join(room, { appId: "sv_app_..." });
voice.on("speaking", (playerId, speaking) => showSpeaker(playerId, speaking));
});
// A click also unlocks audio playback in the browser.
talkButton.onclick = () => voice?.setMicEnabled(!voice.micEnabled);
session.start();
// Unity: Packages/manifest.json, "dependencies"
"com.syncverse.unity": "https://github.com/simple-yet-efficient/syncverse-unity.git#v0.2.0",
"com.syncverse.voice": "https://github.com/simple-yet-efficient/syncverse-voice.git"
// Web
npm install @syncverse/client @syncverse/voice
Unity 2021.3 or newer. Pro must be turned on for the project first (Dashboard, project Settings, Voice Pro).
Where each tier runs
Simple runs on every Unity player platform. Pro runs in browsers today; native Unity players need the LiveKit Unity SDK.
Windows
- Simple
- Yes
- Pro
- Draft
No echo cancellation in Simple: headphones or push-to-talk.
macOS
- Simple
- Yes
- Pro
- Draft
Same as Windows.
Linux
- Simple
- Yes
- Pro
- Draft
Same as Windows.
Android
- Simple
- Yes
- Pro
- Draft
The RECORD_AUDIO prompt shows when the mic starts.
iOS
- Simple
- Yes
- Pro
- Draft
Needs a Microphone Usage Description in Player Settings.
Unity WebGL
- Simple
- Yes
- Pro
- Yes
The browser's echo cancellation in both tiers. Audio starts after the first click.
Web (JS / TS)
- Simple
- No
- Pro
- Yes
@syncverse/voice with @syncverse/client.
Unity editor
- Simple
- Yes
- Pro
- Draft
Pro native uses the LiveKit Unity SDK (draft backend).
Free during beta
Voice uses the SyncVerse account, dashboard and App ID you already have. One project gets rooms, chat and voice. Limits apply while the voice server shares a box with the rest of the platform.
Free during beta, limits apply
Paid plans come later. The Free plan's numbers today:
- Simple voice
- room traffic
- Pro voice minutes per project
- 3,000 / month
- People in Pro voice at once, per project
- 10
- People per Pro voice room
- 10
- Rooms: players at once, per project
- 20
- Players per room
- 16
Questions
What is VoiceVerse?
VoiceVerse is the voice chat add-on for SyncVerse, a room-based multiplayer server with a Unity SDK. Players in a SyncVerse room hear each other, placed at their avatars. It has two tiers: Simple sends Opus audio over the room connection, and Pro uses WebRTC through a LiveKit server hosted by SyncVerse Cloud.
Do I need to run a voice server?
No. Simple needs no extra server: audio travels over the room connection SyncVerse already has. Pro uses the SyncVerse voice server (LiveKit, self-hosted by us next to SyncVerse Cloud), which you turn on per project in the dashboard.
Which tier should I pick?
Start with Simple for 2 to 8 players in a room. Move to Pro for bigger voice rooms (8 to 50 is what it is built for), for echo cancellation, for players on unstable mobile networks, or for voice in a web page.
Does it work in the browser?
Yes. Unity WebGL builds can use both tiers. Plain web pages use Pro through the @syncverse/voice npm package
together with @syncverse/client.
Is there echo cancellation?
In Pro, wherever WebRTC runs. In Simple, only in WebGL, where the browser provides it. On desktop and mobile with Simple, use headphones or push-to-talk.
How much bandwidth does voice use?
Simple uses about 35 kbps per talker per listener and nothing while a player is silent. A Pro voice track is about 40 kbps on the wire while speaking.
Is it ready for production?
Not yet. The Unity package is version 0.1.0: it compiles on Unity 2021.3 and 6000.3 for WebGL, Windows, macOS, Linux, Android and iOS, and its 68 automated tests pass, but it has not had a full two-player test in a game yet. Pro is in beta on a shared server.
Can I use voice and text chat in the same project?
Yes. VoiceVerse and ChatVerse use the same SyncVerse account, App ID and rooms, so one project gets multiplayer sync, text chat and voice.