I’m doing the basic esp32 circuit for a voice assistant, as seen in the Egg entry (Home Assistant - Egg by toddpage - Thingiverse) and it works fine except that the volume on a basic 4ohm speaker is very low. I’ve seen how I can make it quieter with a resistor to the GAIN pin, but is there a tweak to make it louder? Is it the speaker?
The volume depends on the gain setting and also depends on your power supply. What voltage does the supply have? If you have a 5V system, you should be able to get 3.2W in your 4 Ohm speaker.
You can set the gain by connecting the gain pin to GND or VDD with a 100KOhm resistor or directly, resulting in different gain levels. If you are using TDM the gain is fixed at 12dB. Connected the gain pin with 100KOhm to GND will give you 15dB gain, the highest level.