Here is an example how to do it (The PAM8303 chip is mono, the PAM8403 is stereo):

https://www.youtube.com/watch?v=xotWNWUh7i4
https://www.xtronical.com/basics/audio/dacs-on-esp32/