Kotlin

This app shows how to use the audio driver for publisher and subscriber audio. This guide demonstrates how to create a custom audio driver (NoiseAudioDevice) that:

  1. Publishes white noise (random audio signal) to the stream.
  2. Captures audio from subscribed streams and saves it to a local file.

Publishes white noise (random audio signal) to the stream. Estimated completion time: 25 mins

Want to skip this tutorial? You can jump straight to the completed Kotlin client code in the CustomAudioDriver folder of our Android sample app repo on GitHub. The repo includes a README with full documentation on how to run and explore the project. This tutorial focuses on the Kotlin version of the Android sample app. For the Java version, check the Previous sample app repo.

Requirements

To complete this tutorial, you’ll need:

Custom audio driver

Learn how to use a custom audio driver to customize publisher and subscriber stream audio. You will use the custom audio driver when you want to start and stop the audio play your own audio file, and do anything outside the default behavior of live video chat provided by the SDK.

Available on:
Kotlin Swift
Steps
1
Introduction
2
Getting Started
3
Creating a new project
4
Adding the Android SDK
5
Setting up authentication
6
Requesting permissions
7
Adding a custom audio driver
8
Capturing audio to be used by a publisher
9
Adding a custom audio renderer
10
Running the app
11
Conclusion