AndroidAudioRecordingSession
class AndroidAudioRecordingSession(context: Context, requestedDevice: AudioDevice.Input?, format: AudioFormat = DefaultAndroidRecordingAudioFormat) : BaseAudioRecordingSession
Android implementation of BaseAudioRecordingSession.
Emulator note: Recordings made through the Android emulator's QEMU audio bridge can sound noisy or grainy because the bridge resamples the host microphone signal (see GitHub issue #1). For best emulator quality:
request a format that matches the host (
AudioQuality.High= 48 kHz / Int16 / mono / interleaved is the safest default), andlaunch the AVD with
--audio-backend coreaudio(macOS) or--audio-backend pulse(Linux) so the bridge bypasses extra resampling.
Real production audio quality should always be validated on a physical device.
Constructors
Link copied to clipboard
constructor(context: Context, requestedDevice: AudioDevice.Input?, format: AudioFormat = DefaultAndroidRecordingAudioFormat)