createAudioTrack

fun createAudioTrack(name: String = "", options: LocalAudioTrackOptions = audioTrackCaptureDefaults): LocalAudioTrack

Creates an audio track, recording audio through the microphone with the given options.

Parameters

name

The name of the track.

options

The capture options to use for this track, or Room.audioTrackCaptureDefaults if none is passed.

Throws

will be thrown if Manifest.permission.RECORD_AUDIO permission is missing.