Question Hardware to switch between headphones and speakers?

Hmb556

Distinguished
Feb 20, 2014
89
2
18,635
I know this has to be a thing that exists but I don't know what to look for, right now I currently switch between headphones and speakers by just unplugging one audio cord and plugging in the other, is there like a switch I can plug them both in to and just press a button to switch them? Thanks