Controll an android phone with Arduino

I see :thinking: do you have any idea about how regular bluetooth speakers can interact with a phone for exemple ?

Like what's the difference between the bluetooth connection of an esp32 and a pair of headphones ?