I am thinking about a new project where I would stream music from my Android phone via Bluetooth and an ESP32 board to my car radio's AUX IN connector.
So far so good, the setup that I have in mind so far is to use an ESP32 WROOM dev board, then an I2S decoder breakout with a headphone connector from Adafruit, and then connect all that up to my car radio's AUX IN.
But also, I would like to be able to alternatively feed music into the AUX IN connector on my radio via cable, i.e. by connecting my AUX IN to my phone directly with a cable.
To make sure only one source path is open at any one time, I was thinking maybe switch the audio source with some sort of relay or IC. That is, if there is no live Bluetooth audio connection between my phone and the ESP32, that audio connection is shut off and only the cable connection is open. And then when the ESP32 is paired with my phone, it switches off the "cable" connection so that only the Bluetooth audio gets through to my car radio.
Are there any low-footprint relays or DIPs that can switch a hi-fi stereo signal between two sources for that purpose and which I could control with the ESP32?