AndroidRecorderConfiguration
Android specific configuration for recording.
Properties
-
audio_source(AndroidAudioSource) –Defines the audio source.
-
manage_bluetooth(bool) –Try to start a bluetooth audio connection to a headset (Bluetooth SCO).
-
mute_audio(bool) –Whether to mute all audio streams like alarms, music, ring, etc.
-
use_legacy(bool) –Whether to use the Android MediaRecorder.
Properties#
audio_source
class-attribute
instance-attribute
#
audio_source: AndroidAudioSource = DEFAULT_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
class-attribute
instance-attribute
#
manage_bluetooth: bool = True
Try to start a bluetooth audio connection to a headset (Bluetooth SCO).
mute_audio
class-attribute
instance-attribute
#
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.