There are different ESP32 Audio boards available that can be programmed with the Espressif ADF Framework. The ADF Framework contains an abstraction layer to support different codec audio chips (ES8388 ...
A cheap USB-programmable analog output is great for setting intensities, power levels, or general analog signalling in many experimental contexts. There are lots of solutions when you want one or two ...