Open Zazo032 opened 2 weeks ago
Thanks for the report.
What if you try to set the device? There's no automatic selection of the device but with manageBluetooth
SCO flag.
Thanks for the report. What if you try to set the device? There's no automatic selection of the device but with
manageBluetooth
SCO flag.
Do you mean through RecordConfig.device
? There doesn't seem to be a way to retrieve an InputDevice
from Android to pass it to that parameter
listInputDevices()
listInputDevices()
is documented as returning an empty list in Android: https://pub.dev/documentation/record/latest/record/AudioRecorder/listInputDevices.html
I know the id
and label
from the device I'm using through a different plugin (mic_info
), I tried with the following configuration but the recorded audio quality is still the same:
const RecordConfig(
device: InputDevice(id: '309', label: 'AirPods Pro de Cristian'),
androidConfig: AndroidRecordConfig(
manageBluetooth: false,
),
),
I just tried with listInputDevices()
by hardcoding the object from the list that corresponds to the Bluetooth device with manageBluetooth: false
, but the issue still persists
Package version
5.2.0
and5.1.2
Environment
Describe the bug
When performing an audio recording with a Galaxy device (I couldn't test other brands but this is reproducible in different Galaxy models) with a Bluetooth headset connected (I used AirPods Pro for testing but we have reports of other standard Bluetooth devices), the audio quality of the recordings is bad. The audio seems to be recorded through Bluetooth SCO and there's no way to do it through A2DP, so all audio recorded through Bluetooth devices has a low audio quality. I tried setting
manageBluetooth
tofalse
but then the audio is recorded through the device microphone and not through the Bluetooth one. SettingnumChannels
to1
,useLegacy
totrue
or modifying theaudioSource
also doesn't seem to have any effect in the recording quality.Record configuration
Steps to reproduce
Steps to reproduce the behavior:
example
project on an Android device (only tested it in Galaxy devices)Bluetooth device settings
![Screenshot_20241106_154228_Settings](https://github.com/user-attachments/assets/d91b4342-dd40-4936-9325-cea926a37e46)Expected behavior
Audio gets recorded with the same or similar audio quality to the native recorder app.
Actual behavior
Audio gets recorded with a significantly worse quality than expected when recording through a Bluetooth microphone.
Additional context
Disabling the "Calls" option in the Bluetooth device settings is a workaround to get the expected audio recording quality.