Voice Interface Sample - C# SDK

The Voice C# interface sample demonstrates implementation and basically functionality of using Voice.

Preview Only

The Voice interface allows you to create and manage voice chat rooms for your users. The Voice sample uses both server and client implementation to demonstrate how to log in, change audio devices, create a room, and more. Check out the Using the C# SDK for more information on the Sample Projects.

VoiceServer

The voice server must be running in order for the client to function.

VServer1.png

VoiceClient

After you have the voice server setup, you can run the following functions with the voice client.

Logging in

To begin, you are presented with a login screen. You can select the type of login you want to use. We recommend using either the AccountPortal type to login directly with the Account Portal, or the Developer type to login with credentials assigned by the Developer Authentication Tool.

VClient1.png

You are then presented with the voice sample UI.

VClient2.png

Changing audio devices

There are 2 dropdown boxes that list the input and output audio devices that are accessible on your machine. You can freely select the devices you want to use with voice. When your connected devices change, the listed devices will update to reflect that.

VClient3.png

Creating a room

You can create a room by leaving the "Room name" field empty, and then clicking "Create room".

VClient4.png

Joining a room

You can join an existing room by pasting the room name into the "Room name" field and then clicking "Join room".

VClient5.png

Speaking

When there is more than one user in the room, you will be able to speak. The sample shows the current speaking state of each user represented by a speaker icon.

VClient6.png

Muting and unmuting yourself

You can click the "Mute" button to mute yourself, VClient7.png Then "Unmute" to unmute yourself. VClient8.png

Muting and unmuting other users

If you are the owner of the room, you will see additional options for other users. One such option allows you to mute and unmute other users. This overrides the user's client mute state. Clicking this will forcibly mute the selected user, VClient9.png And then clicking it again will remove the forced mute from them. VClient10.png

Kicking other users

Likewise, if you are the owner of the room, you are able to kick users from the room by clicking the "Kick" button. A kicked user cannot rejoin.

Leaving the room

When you've had enough speaking with people, you can click "Leave room" to leave. VClient11.png Once you've left, you can create a new room or join another one.