What about reading a bit?
Switch devices automatically
Your AirPods (2nd generation) or AirPods Pro can automatically switch between your Mac with macOS Big Sur, iPhone with iOS 14, and iPad with iPadOS 14 or later. Your devices need to be signed in with the same Apple ID using
two-factor authentication. For example, while listening to music on your Mac, you answer a call on your iPhone. Your AirPods automatically switch from the music on your Mac to the phone call on your iPhone.
In some situations, you'll see a notification about your AirPods on the screen of your Mac. When you hold the pointer over the notification, a Connect button appears. Click Connect to confirm that you want your AirPods to switch to—or stay with—your Mac.
If you want to turn automatic switching off for your Mac, open Bluetooth preferences on your Mac with your AirPods in your ears. Click the Options button next to your AirPods in the list of devices. Click Connect to This Mac, and then choose When Last Connected to This Mac. To turn this feature on again, choose Automatically.
Sound should not automatically switch from one device to another if you're in a conversation, like a phone call, a FaceTime call, or a video conference.
Sound should not automatically switch from one device to another if you're in a conversation, like a phone call, a FaceTime call, or a video conference.