Using esp32 as music proxy?

I have several bt speakers that I want to use for announcement message ,

is it possible to use esp32 as the proxy between home assistant to the speaker and stream to the speaker music/tts?

would appreciate a good advice where to start or any idea how to implement that