AudioSourceConfig

data class AudioSourceConfig(val sampleRate: Int, val channelConfig: Int, val byteFormat: Int)

Constructors

Link copied to clipboard
constructor(sampleRate: Int, channelConfig: Int, byteFormat: Int)

Properties

Link copied to clipboard

Audio byte format.

Link copied to clipboard

Audio channel configuration. From AudioRecord API: " AudioFormat#CHANNEL_IN_MONO is guaranteed to work on all devices."

Link copied to clipboard

Audio capture sample rate in Hz. From AudioRecord API: "44100Hz is currently the only rate that is guaranteed to work on all devices, but other rates such as 22050, 16000, and 11025 may work on some devices."

Functions

Link copied to clipboard