Play a sound over a speaker remotely, triggered by home assistant?

I am looking for a way to be able to play an MP3 over an outdoor speaker, triggerable remotely by home assistant.

I was thinking I could hook up an esphome node to the device below and trigger it on the DIO channels, but wondering if there is a smarter way (ESPhome media player directly? A PI running a media sever)? I will need it to drive a moderate wattage speaker, so it’s nice this product below includes the media playing/storage and the speaker amplifier.

Driving a speaker like this: