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.

Two tiers, one API

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.

VoiceVerse Simple and Pro compared
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.

How it works

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.

Player A's voice goes over the room WebSocket to the SyncVerse server, which relays it to players B and C. Player A room server Player B Player C Opus
  1. Capture and detect speech Microphone at 16 kHz in 20 ms frames, then voice activity detection or push-to-talk.
  2. Encode Opus (Concentus, managed C#), two frames per packet, 25 packets a second.
  3. Send on your voice peer view Unreliable view state. The server relays it and drops it for listeners whose connection is backed up.
  4. 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.

The client trades its room ticket for a voice token at the SyncVerse API, then sends audio over WebRTC to the voice server, which forwards it to the other players. Player A API voice SFU B, C, ... ticket in, token out WebRTC
  1. Ask for a voice token POST /api/voice/token with the room ticket the client already has. Tickets last 30 seconds, so the SDKs do it right after joining.
  2. 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.
  3. 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.
  4. Place voices on avatars Each voice carries the SyncVerse player id (sv.player), so clients can play it from the right avatar.
Code

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, and OnPlayerSpeakingChanged for speaker icons.
  • 3D or flat SpatialBlend, MinDistance and MaxDistance. Set the blend to 0 for radio-style voice.
  • Web @syncverse/voice joins 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;

Unity 2021.3 or newer. Pro must be turned on for the project first (Dashboard, project Settings, Voice Pro).

Platforms

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).

Pricing

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
FAQ

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.

Add voice to a room you already have