If you ever try to connect to your blooetuth hedphones in ubuntu you might be supprised that it does not work out of the box.
However thanks to askubuntu community this is no longer an issue. To fix this problem you need to run simple command:
mv ~/.config/pulse/ ~/.config/pulse.old systemctl --user restart pulseaudio
If your problem is not yet solved feel free to visit the OP “Original Poster” question at askubuntu.com – Ubuntu 20.04 no sound out of Bluetooth headphones.
This simple script solves the problem in 95% of cases.
Be sure to vot up the above answer if it aslo solved your issue.