Enabling the Gaming Voice Function

Enabling the Gaming Voice Function

This page demonstrates the following gaming voice functions with the Agora sample code Hello-Gaming-Agora-Android on Android:

  • Join a channel
  • Talk
  • Leave a channel

Step 1: Prepare the Environments

  1. Download the latest AMG SDK kit for Android. See the following software kit structure:



Hello-Gaming-Agora-Android is the sample code used on this page. You can also download it from Github.

  1. Prepare the following environments:
    • Android Studio 2.0 or later
    • Two or more Android 4.0 or later devices with audio functions
    • Get an App ID

Step 2: Compile the Sample Code

  1. Open the project with Android Studio.
  2. Edit appId in app/src/main/java/io/agora/amg/AGApplication.java.
  3. Connect the devices and click Run to compile the sample code.

Step 3: Enable the Gaming Voice Function

To enable the gaming voice function, you need two or more Android devices. In this example, we used two smartphones.

  1. Enter the same channel name on both smartphones.

  2. Click JOIN to join the same channel.

You can now talk in the channel. Follow the prompts on the screen to monitor the operational status.