Initialize the voice client object
How to initialize the Vivox voice client object.
Read time 1 minuteLast updated 2 days 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)Important: If the client is already initialized and the application attempts to initialize the client again, it encounters ausing 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();}
5041:VxErrorAlreadyInitialized