Skip to content

Android recorder configuration

AndroidRecorderConfiguration #

Android specific configuration for recording.

audio_source #

Defines the audio source.

An audio source defines both a default physical source of audio signal, and a recording configuration. Some effects are available or not depending on this source.

Most of the time, you should use AndroidAudioSource.DEFAULT_SOURCE or AndroidAudioSource.MIC.

manage_bluetooth #

manage_bluetooth: bool = True

Try to start a bluetooth audio connection to a headset (Bluetooth SCO).

mute_audio #

mute_audio: bool = False

Whether to mute all audio streams like alarms, music, ring, etc.

This is useful when you want to record audio without any background noise. The streams are restored to their previous state after recording is stopped and will stay at current state on pause/resume.

use_legacy #

use_legacy: bool = False

Whether to use the Android MediaRecorder.

While advanced recorder (the default) unlocks additionnal features, the legacy recorder is stability oriented.