How to record audio by bluetooth devices,such as headset

I want to record audio by my bluthtooth headset,what should I do?

Hello!

Please let me know if this guide helps.

Regards,
Jon

no,i have tried it. my bluetooth headset can receive audio,but sound cant be recorded by headset.

no,i have tried it. my bluetooth headset can receive audio,but sound cant be recorded by headset.

Hello!

Please can you describe exactly how you are trying to record the audio? What tool you are using and what commands you are using?

Regards,
Jon

I have connected Tx2 with my bluetooth headset,i can hear sound.But when i want to record some audioes,it doesnt work.
i have tried
arecord -D hw:tegrasndt186ref,0 -r 48000 -d 5 -f S32_LE -t wav input.wav ,
but there is no sound recorded
i also have tried to use some software too,such as Audacity,it doesnt work ,too

Hello!

The tegrasndt186ref soundcard is for the internal audio processing engine (APE) soundcard on Tegra and so if you are using a M.2 or SDIO based device, it will be a different soundcard. What BT device are you using?

The following command will show you a list of soundcards and we should be able to identify the correct soundcard from this …

$ arecord -l

Regards,
Jon

the output is

tx2@tx2-desktop:~ arecord -l **** List of CAPTURE Hardware Devices **** card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 0: ADMAIF1 CIF ADMAIF1-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 1: ADMAIF2 CIF ADMAIF2-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 2: ADMAIF3 CIF ADMAIF3-2 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 3: ADMAIF4 CIF ADMAIF4-3 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 4: ADMAIF5 CIF ADMAIF5-4 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 5: ADMAIF6 CIF ADMAIF6-5 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 6: ADMAIF7 CIF ADMAIF7-6 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 7: ADMAIF8 CIF ADMAIF8-7 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 8: ADMAIF9 CIF ADMAIF9-8 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 9: ADMAIF10 CIF ADMAIF10-9 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 10: ADMAIF11 CIF ADMAIF11-10 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 11: ADMAIF12 CIF ADMAIF12-11 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 12: ADMAIF13 CIF ADMAIF13-12 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 13: ADMAIF14 CIF ADMAIF14-13 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 14: ADMAIF15 CIF ADMAIF15-14 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 15: ADMAIF16 CIF ADMAIF16-15 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 16: ADMAIF17 CIF ADMAIF17-16 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 17: ADMAIF18 CIF ADMAIF18-17 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 18: ADMAIF19 CIF ADMAIF19-18 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: tegrasndt186ref [tegra-snd-t186ref-mobile-rt565x], device 19: ADMAIF20 CIF ADMAIF20-19 [] Subdevices: 1/1 Subdevice #0: subdevice #0 tx2@tx2-desktop:~

Hello!

OK so the bluetooth device does not show up with ALSA natively. Looks like people have used bluealsa backend for this and I am guessing that it shows up with pulseaudio …

$ pacmd list-sources | grep "index:\|name:"

It might be possible to use ‘parec’ to capture the bluetooth audio, but this is not something I have tried. Let me check on this.

Regards,
Jon

1 Like

Would love an answer to this as well. Having trouble installing BlueZ (one of the dependencies of BlueALSA) but you’re right in that it shows up in pulseaudio but not ALSA itself