I've not heard of pipewire. Need to check this out because I'd love for my truly wireless earphones to be able to seamlessly switch modes on Ubuntu. I use a wired headset for work calls I need to be on quickly because it's pretty flawless, but the tether is more than a little annoying.
EDIT: It took me 5 minutes after reading the comment above to replace pulseaudio with pipewire on Ubuntu 20.04, now I have access to my earphones' high quality codecs too right from the Ubuntu sound control panel!
I used this[0] then this[1]
[0] https://ubuntuhandbook.org/index.php/2021/05/install-latest-...
[1] https://ubuntuhandbook.org/index.php/2021/05/enable-pipewire... - I only followed steps 1 and 4 and audio was switched instantly, earphones already paired. Now I have AAC, SBC, SBC-XQ...
EDIT2: Switching to/from my earphones and from 1 bud to 2 buds appears flawless so far, even for the Spotify desktop for Linux app which usually requires a `pulseaudio -k` to send the audio out of the right device usually, even if it's correctly selected in sound settings.
EDIT3: Don't forget to mask pulseaudio (yellow box, second link) or pulseaudio will load on reboot and break things, no amount of systemctl disable will stop it without masking.
EDIT4: Linked site has different theme on mobile so yellow box in EDIT3 isn't yellow.