If you use an Arduino Nano, for example, but only for control and in combination with analog multiplexers, you will be able to choose the sound source. For more complex control I would recommend an audio processor like TDA7439 or PT2314E. As a power amplifier I would recommend TPA3116D2 - there are both modules and finished products with it.
TDA7439
https://www.st.com/resource/en/datasheet/cd00004906.pdf
PT2314E
TPA3116D2