Documentation

​
​

Development

User Acquisition

Monetization

Industry

Vivox Unity SDK

Vivox Unity SDK

Vivox
​
​
Vivox Unity SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
      • Integration with the Vivox Unity SDK
      • Initialize the SDK
        • Sign in with the Authentication package
        • Sign in with Custom IDs
        • Using Vivox Access Tokens together with UAS
      • Sign in to a game
      • Sign out of a game
    • Create voice and text channels
    • Messaging
    • Player management
    • Device management
    • Audio management
    • Mobile development
    • Text-to-speech
    • Speech-to-text
    • Real-time recording
    • Server-side-recording
    • Troubleshooting
  • Tutorials
  • Reference
  1. Vivox Unity SDK documentation
  2. Vivox Unity Developer Guide

Initialize the voice client object

How to initialize the Vivox voice client object.
Read time 1 minute
Last updated 6 months ago

You must create and initialize the voice client before other Vivox SDK actions can take place. During the voice client initialization process, the Vivox SDK sets up and starts all of its different subsystems. This can cause additional shared libraries to be loaded, and allows developers to customize a variety of Vivox SDK options before connecting to Vivox services. For example, a developer can select between audio ducking settings and logging level.
await VivoxService.Instance.InitializeAsync(VivoxConfigurationOptions config)
has optional parameters that you can use to choose the configuration of the Vivox Core SDK.
The following code displays an example of how to create and initialize the voice client on Windows, macOS, Android, and iOS:
using System;using UnityEngine;using Unity.Services.Authentication;using Unity.Services.Core;using Unity.Services.Vivox;async void Start(){ await UnityServices.InitializeAsync(); await AuthenticationService.Instance.SignInAnonymouslyAsync(); await VivoxService.Instance.InitializeAsync();}
Important
If the client is already initialized and the application attempts to initialize the client again, it encounters a
5041:VxErrorAlreadyInitialized
error. For information on this error refer to the Vivox SDK error codes.
For more details on the Unity Authentication Service, refer to Sign-in with the Authenticaiton package. For alternative authentication approaches, refer to Sign-in with Custom IDs, or if you are already using Vivox Access Tokens in your application, refer to Using VATs with UAS.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page