Search Results for

    Show / Hide Table of Contents

    Class UniVoiceMirrorSetupSample

    To get this setup sample to work, ensure that you have done the following:

    • Import Mirror and add the UNIVOICE_NETWORK_MIRROR compilation symbol to your project
    • If you want to use RNNoise filter, import RNNoise4Unity into your project and add UNIVOICE_FILTER_RNNOISE4UNITY
    • Add this component to the first scene of your Unity project

    *** More info on adding and activating non packaged dependencies is here: https://github.com/adrenak/univoice?tab=readme-ov-file#activating-non-packaged-dependencies ***

    This is a basic integration script that uses the following to setup UniVoice:

    • , an implementation of IAudioServer<T>
    • , an implementation of IAudioClient<T>
    • , an implementation of IAudioInput that captures audio from a mic
    • EmptyAudioInput, an implementation of IAudioInput that is basically an idle audio input used when there is no input device
    • , an implementation of IAudioFilter that removes noise from captured audio.
    • , an implementation of IAudioFilter that encodes captured audio using Concentus (C# Opus) to reduce the size of audio frames
    • , an implementation of IAudioFilter that decodes incoming audio using Concentus to decode and make the audio frame playable.
    Inheritance
    System.Object
    UniVoiceMirrorSetupSample
    Namespace: Adrenak.UniVoice.Samples
    Assembly: cs.temp.dll.dll
    Syntax
    public class UniVoiceMirrorSetupSample : MonoBehaviour

    Properties

    AudioServer

    The server object.

    Declaration
    public static IAudioServer<int> AudioServer { get; }
    Property Value
    Type Description
    IAudioServer<System.Int32>

    ClientSession

    The client session.

    Declaration
    public static ClientSession<int> ClientSession { get; }
    Property Value
    Type Description
    ClientSession<System.Int32>

    HasSetUp

    Whether UniVoice has been setup successfully. This field will return true if the setup was successful. It runs on both server and client.

    Declaration
    public static bool HasSetUp { get; }
    Property Value
    Type Description
    System.Boolean
    In This Article
    Back to top UniVoice documentation